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... cheers, Philippe
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. Thanks, Volodya
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:
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
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:
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
On Monday 31 August 2009 08:52:42 Philippe Fremy wrote:
Could someone give me a hint on how to compile boost.python with mingw or tell me if it's impossible ?
If you are using python built with MSVC (e.g., the Windows python binaries at python.org), you will be unable use it with mingw (due to conflicting run-time library requirements. You can still use mingw-built boost.python with mingw python. Regards, Ravi
hi, thanks for ur answer, yes i've seem i tried with 3.5 because 4.0 does
not work either, i built it following the "getting started guide" , i put
below the result using the 4.0
do i missing link something?
thnaks
pdro7@ubuntu:~/Desktop$ c++ -I /home/pdro7/Desktop/boost_1_40_0 asio1.cpp -o
asio1 boost_1_40_0/prefixes/lib/libboost_serialization.a
boost_1_40_0/prefixes/lib/libboost_system.a
boost_1_40_0/prefixes/lib/libboost_thread.a
boost_1_40_0/prefixes/lib/libboost_date_time.a
boost_1_40_0/prefixes/lib/libboost_regex.a
/tmp/ccY6pBeJ.o: In function
`boost::asio::detail::posix_tss_ptr ::context>::posix_tss_ptr()':
asio1.cpp:(.text._ZN5boost4asio6detail13posix_tss_ptrINS1_10call_stackINS1_15task_io_serviceINS1_13epoll_reactorILb0EEEEEE7contextEEC2Ev[boost::asio::detail::posix_tss_ptr collect2: ld returned 1 exit status 2009/8/31 Ravi On Monday 31 August 2009 08:52:42 Philippe Fremy wrote: Could someone give me a hint on how to compile boost.python with mingw
or tell me if it's impossible ? If you are using python built with MSVC (e.g., the Windows python binaries
at
python.org), you will be unable use it with mingw (due to conflicting
run-time
library requirements. You can still use mingw-built boost.python with mingw
python. Regards,
Ravi _______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users --
Ing Pedro Alonso Chaparro Valero
Ciudad Politecnica de la Innovación
iTEAM - Mobile Communications Group
Polytechnic University of Valencia
C\ Camino de Vera S/N, Edificio 8G
46022 Valencia, Spain
pedro chaparro wrote:
hi, thanks for ur answer, yes i've seem i tried with 3.5 because 4.0 does not work either, i built it following the "getting started guide" , i put below the result using the 4.0
do i missing link something?
thnaks pdro7@ubuntu:~/Desktop$ c++ -I /home/pdro7/Desktop/boost_1_40_0 asio1.cpp -o asio1 boost_1_40_0/prefixes/lib/libboost_serialization.a boost_1_40_0/prefixes/lib/libboost_system.a boost_1_40_0/prefixes/lib/libboost_thread.a boost_1_40_0/prefixes/lib/libboost_date_time.a boost_1_40_0/prefixes/lib/libboost_regex.a .... undefined reference to `pthread_detach' collect2: ld returned 1 exit status
You are missing the -pthreads option - Volodya
On Mon, Aug 31, 2009 at 6:22 PM, Philippe Fremy
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.
On Tue, Sep 1, 2009 at 12:50 PM, Sahasranaman MS
On Mon, Aug 31, 2009 at 6:22 PM, Philippe Fremy
wrote: Could someone give me a hint on how to compile boost.python with mingw or tell me if it's impossible ?
I think your compiler is slightly outdated. I tried this using TDM's MinGW GCC 4.3.3 If you think you can upgrade, then I'd recommend you do so before trying. Please visit http://www.tdragon.net/recentgcc/ to get a recent copy.
participants (5)
-
pedro chaparro
-
Philippe Fremy
-
Ravi
-
Sahasranaman MS
-
Vladimir Prus