Building python on Windows

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080718/f312aa1e/attachment.html 


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux