Hello guys, I had the same problem, and to solved using the -I<path to include dir> flag. However, the module builds fine, but cant be used in face of the _pjsua module be not found. Bellow the error I got: Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import pjsua Traceback (most recent call last): File "<stdin>", line 1, in <module> File "pjsua.py", line 37, in <module> import _pjsua ImportError: No module named _pjsua anybody can help? thanks in advance, Andr? On Fri, Jul 18, 2008 at 2:00 PM, Lucas Rosa Gal?go <lrgalego at gmail.com> wrote: >> Hi folks, >> >> I'm walking step by step here! >> I already sucessfully compile and run the pjsua in C into windows(using >> Visual Studio 2008) and Linux. >> I also compiled the python libraries into linux and used it. >> But, I'm having problems to compile the python libraries under Windows. >> I just compiled the pjsua with the Visual Studio 2008, come to the python >> dir and >> execute the comands bellow >> >> E:\Documents and >> Settings\Administrador\ >> Desktop\pjsip\pjsip-apps\src\python>e:\P > ython25\python.exe setup.py install "-c mingw32" > usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] > or: setup.py --help [cmd1 cmd2 ...] > or: setup.py --help-commands > or: setup.py cmd --help > > error: option -m not recognized > > E:\Documents and > Settings\Administrador\Desktop\pjsip\pjsip-apps\src\python>e:\P > ython25\python.exe setup.py install > running install > running build > running build_ext > error: Python was built with Visual Studio 2003; > extensions must be built with a compiler than can generate compatible > binaries. > Visual Studio 2003 was not found on this system. If you have Cygwin > installed, > you can try compiling with MingW32, by passing "-c mingw32" to setup.py. > > E:\Documents and > Settings\Administrador\Desktop\pjsip\pjsip-apps\src\python>e:\P > ython25\python.exe setup.py install -c mingw32 > usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] > or: setup.py --help [cmd1 cmd2 ...] > or: setup.py --help-commands > or: setup.py cmd --help > > error: invalid command 'mingw32' > > The mingw32 is currentily in my system path. >> Anyone has an idea of what I'm doing wrong? > > > Hi folks, > > I used the sugested command to build the python libraries but > it seens that the python isn't finding the directories of the pj > project as show bellow: > > > E:\Documents and > Settings\Administrador\Desktop\pjsip\pjsip-apps\src\python>e:\P > ython25\python.exe setup.py build_ext --compiler=mingw32 install > running build_ext > building '_pjsua' extension > E:\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -DPJ_AUTOCONF=1 > -Ie:\Python25\in > clude -Ie:\Python25\PC -c _pjsua.c -o build\temp.win32-2.5\Release\_pjsua.o > In file included from _pjsua.c:19: > _pjsua.h:26:29: pjsua-lib/pjsua.h: No such file or directory > In file included from _pjsua.c:19: > _pjsua.h:29: error: syntax error before "PyString_to_pj_str" > _pjsua.h:30: warning: return type defaults to `int' > > ... A LOT OF MORE ERROS > > I tried to copy the entire include dir to the include dir of python, then > this file were found > but another files apears as lost. > What a have do configure do fix it? > > Thanks for help. > > -- > Lucas Rosa Galego > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip at lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > > -- Andr? Ribeiro Gon?alves CTBC Multim?dia Bacharel em Ci?ncia da Computa??o Universidade Federal de Uberl?ndia Linux User: #439488