Building python on Windows

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

 



Try this "python setup.py build_ext --compiler=mingw32 install" It worked
for me.

2008/7/18 Lucas Rosa Gal?go <lrgalego at gmail.com>:

> 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?
>
> Since now, thanks for the attention.
>
> Regardless,
>
> --
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080718/c6ca757d/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