[prev in list] [next in list] [prev in thread] [next in thread] 

List:       boost-users
Subject:    Re: [Boost-users] [python] Problem detecting python
From:       Sahasranaman MS <sahasr () naman ! ms>
Date:       2009-09-01 7:32:42
Message-ID: ec3874c70909010020q3d9211ecra04d7aab5a0478e4 () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


On Mon, Aug 31, 2009 at 6:22 PM, Philippe Fremy <phil@freehackers.org>wrote:

>
> Could someone give me a hint on how to compile boost.python with mingw
> or tell me if it's impossible ?
>
>
It is definitely possible.  For linking with the Python Runtime library,
you'll need a mingw compatible libpython25.a file. Since the Python you've
installed is compiled using MSVC, it will have only the MSVC .lib library
file. So you need to create your own libpython25.a file and link to it, and
it would work. Look at the step 2 here:
http://sebsauvage.net/python/mingw.html to see how to make your own .a file.
The page is slightly outdated, but the procedure remains the same. Just make
the required changes in the file names.

Hope this helps.

[Attachment #5 (text/html)]

<br><br><div class="gmail_quote">On Mon, Aug 31, 2009 at 6:22 PM, Philippe Fremy \
<span dir="ltr">&lt;<a \
href="mailto:phil@freehackers.org">phil@freehackers.org</a>&gt;</span> \
wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, \
204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<br>
Could someone give me a hint on how to compile boost.python with mingw<br>
or tell me if it&#39;s impossible ?<br>
<br></blockquote><div><br>It is definitely possible.   For linking with the Python \
Runtime library, you&#39;ll need a mingw compatible libpython25.a file. Since the \
Python you&#39;ve installed is compiled using MSVC, it will have only the MSVC .lib \
library file. So you need to create your own libpython25.a file and link to it, and \
it would work. Look at the step 2 here: <a \
href="http://sebsauvage.net/python/mingw.html">http://sebsauvage.net/python/mingw.html</a> \
to see how to make your own .a file. The page is slightly outdated, but the procedure \
remains the same. Just make the required changes in the file names.<br>

<br>Hope this helps.<br></div></div>



_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic