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

List:       boost-users
Subject:    Re: [Boost-users] [python] Problem detecting python
From:       Philippe Fremy <phil () freehackers ! org>
Date:       2009-08-31 12:52:42
Message-ID: 4A9BC79A.1080508 () freehackers ! org
[Download RAW message or body]


After googling a bit, it seems that __int64 is a MSVC type. So, it's
unclear to me if I am getting this error because the default python on
windows is compiled with msvc, or because boost.python only supports
msvc and not mingw.

I tried looking at different documentation, mingw seems to be
explicitely supported by boost in general.

Could someone give me a hint on how to compile boost.python with mingw
or tell me if it's impossible ?

cheers,

Philippe



Philippe Fremy wrote:
> Vladimir Prus wrote:
>> Philippe Fremy wrote:
>>
>>> Hi,
>>>
>>> bjam does not seem to pick my python installation on windows.
>>>
>>> This is running on Windows XP, toolset gcc, boost 1.39, compiling from
>>> source with no changes.
>>>
>>> D:\program\boost_1_39_0>bjam --debug-configuration -d+2 --debug-building
>>> [...]
>>> notice: [python-cfg] running command '"C:\Python25\python" -c "from sys
>>> import *; print
>>> 'version=%d.%d\nplatform=%s\nprefix=%s\nexec_prefix=%s\nexecutable=%s' %
>>> (version_info[0],version_info[1],platform,prefix,exec_prefix,executable)"
>>> 2>&1'notice: [python-cfg] ...does not invoke a working interpreter
>>>
>>> notice: [python-cfg] No working Python interpreter found.
>>>
>>> The strange thing is that if I run the same command line, it works
>>> perfectly:
>>> D:\program\boost_1_39_0>"C:\Python25\python" -c "from sys import *;
>>> print
>>> 'version=%d.%d\nplatform=%s\nprefix=%s\nexec_prefix=%s\nexecutable=%s' %
>>> (version_info[0],version_info[1],platform,prefix,exec_prefix,executable)"
>>> 2>&1
>>> version=2.5
>>>
>>> platform=win32
>>>
>>> prefix=C:\Python25
>>>
>>> exec_prefix=C:\Python25
>>>
>>> executable=C:\Python25\python.exe
>>>
>>>
>>> Any idea what confuses bjam ?
>>>
>>> I could not find any log file to see more details of what is going wrong...
>> Could you please try 1.40 alpha:
>>
>>         http://boost.cowic.de/rc/
>>
>> There are different next steps depending on whether it works or not.
> 
> It works with 1.40 !
> 
> notice: [python-cfg] running command '"C:\Python25\python" -c "from sys
> import *; print
> 'version=%d.%d\nplatform=%s\nprefix=%s\nexec_prefix=%s\nexecutable=%s' %
> (version_info[0],version_info[1],platform,prefix,exec_prefix,executable)"
> 2>&1'notice: [python-cfg] ...requested configuration matched!
> 
> notice: [python-cfg] Details of this Python configuration:
> 
> notice: [python-cfg]   interpreter command: "C:\Python25\python"
> 
> notice: [python-cfg]   include path: "C:\Python25\Include"
> 
> notice: [python-cfg]   library path: "C:\Python25\libs"
> 
> notice: [python-cfg]   DLL search path: "C:\Python25"
> 
> 
> 
> Now, I am seeing a big set of compilation errors:
> 
> C:/Python25/Include/longobject.h:47: error: `__int64' does not name a
> type
> In file included from ./boost/python/converter/arg_to_python.hpp:17,
> 
>                  from ./boost/python/call.hpp:15,
> 
>                  from ./boost/python/object_core.hpp:12,
> 
>                  from ./boost/python/object.hpp:9,
> 
>                  from ./boost/python/list.hpp:10,
> 
>                  from libs\python\src\list.cpp:5:
> 
> ./boost/python/converter/builtin_converters.hpp:119: error: missing `>'
> to terminate the template argument list
> 
> This is stock python 2.5 with mingw gcc 3.4.2 . Should I upgrade gcc ?
> Or is stock python incompatible with mingw ?
> 
> cheers,
> 
> Philippe
> 
> 
> _______________________________________________
> Boost-users mailing list
> Boost-users@lists.boost.org
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
> 



_______________________________________________
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