Hello, All! I try build Boost.Puthon use MinGW g++ (GCC) 3.3.1 (mingw special 20030804-1) command line: cd C:\Lang\Projects\boost\libs\python\build\ bjam -sTOOLS=mingw -s"PYTHON_ROOT=C:\Lang\Python" -s"PYTHON_VERSION=2.3" output: ...found 1165 targets... ...updating 19 targets... gcc-C++-action ..\..\..\bin\boost\libs\python\build\boost_python.dll\mingw\debug\slice.obj In file included from C:/Lang/Projects/boost/libs/python/src/slice.cpp:1: C:/Lang/Projects/boost/boost/python/slice.hpp:29: warning: `dllexport' attribute ignored C:/Lang/Projects/boost/boost/python/slice.hpp:29: error: declaration does not declare anything C:/Lang/Projects/boost/boost/python/slice.hpp:29: error: syntax error before `) ' token C:/Lang/Projects/boost/libs/python/src/slice.cpp:18: error: prototype for ` boost::python::slice::slice()' does not match any in class ` boost::python::slice' C:/Lang/Projects/boost/boost/python/slice.hpp:20: error: candidates are: boost::python::slice::slice(const boost::python::slice&) C:/Lang/Projects/boost/boost/python/slice.hpp:240: error: boost::python::slice::slice(boost::python::detail::new_non_null_reference_t* ) C:/Lang/Projects/boost/boost/python/slice.hpp:240: error: boost::python::slice::slice(boost::python::detail::new_reference_t*) C:/Lang/Projects/boost/boost/python/slice.hpp:240: error: boost::python::slice::slice(boost::python::detail::borrowed_reference_t*) C:/Lang/Projects/boost/boost/python/slice.hpp:39: error: template<class Integer1, class Integer2, class Integer3> boost::python::slice::slice(Integer1, Integer2, Integer3) C:/Lang/Projects/boost/boost/python/slice.hpp:34: error: template<class Integer1, class Integer2> boost::python::slice::slice(Integer1, Integer2) "g++" -c -Wall -ftemplate-depth-100 -DBOOST_PYTHON_DYNAMIC_LIB -DBOOST_PYTHON_SOURCE -g -O0 -fno-inline -mno-cygwin -I"..\..\..\bin\boost\libs\python\build" -I "C:\Lang\Projects\boost" -I "C:\Lang\ActiveState\Python\include" -o"..\..\..\bin\boost\libs\python\build\boost_python.dll\mingw\debug\slice.o bj" "C:\Lang\Projects\boost\libs\python\build\../src/slice.cpp" [i skip other] After change slice.hpp line19-30: class BOOST_PYTHON_DECL slice : public object { private: // Helper function to work around bugs in MSVC 6 //BOOST_PYTHON_DECL static object new_slice(PyObject*, PyObject*, PyObject*); public: // Equivalent to slice(::) //BOOST_PYTHON_DECL slice(); slice.cpp compile ok. But I recive bjam output: ...found 1165 targets... ...updating 19 targets... gcc-C++-action ..\..\..\bin\boost\libs\python\build\boost_python.dll\mingw\debug\slice.obj gcc-Link-action ..\..\..\bin\boost\libs\python\build\boost_python.dll\mingw\debug\boost_pyth on_debug.dll ..\..\..\bin\boost\libs\python\build\boost_python.dll\mingw\debug\boost_pyth on_debug.lib spawn: Invalid argument I build static version using command: cd C:\Lang\Projects\boost\libs\python\build\ bjam -sTOOLS=mingw -s"PYTHON_ROOT=C:\Lang\ActiveState\Python" -s"PYTHON_VERS ION=2.3" -s"BUILD=debug release" lib Help my build Boost.Python library dynamic version using MinGW With best regards, nagual. E-mail: nagual@promsoft.ru
nagual wrote:
Hello, All!
I try build Boost.Puthon use MinGW
[snip]
gcc-Link-action ..\..\..\bin\boost\libs\python\build\boost_python.dll\mingw\debug\boost_pyth on_debug.dll ..\..\..\bin\boost\libs\python\build\boost_python.dll\mingw\debug\boost_pyth on_debug.lib spawn: Invalid argument
I build static version using command: cd C:\Lang\Projects\boost\libs\python\build\ bjam -sTOOLS=mingw -s"PYTHON_ROOT=C:\Lang\ActiveState\Python" -s"PYTHON_VERS ION=2.3" -s"BUILD=debug release" lib
Help my build Boost.Python library dynamic version using MinGW
Which version of bjam and Boost are you using? Where do you have mingw installed? Just in case. I should mention (as I did on another post) that there is a bug with Boost.Build+BJam release that prevents it from handling spaces for the compiler tools. If that's your situation try installing mingw to a location without spaces. HTH. -- -- Grafik - Don't Assume Anything -- Redshift Software, Inc. - http://redshift-software.com -- rrivera/acm.org - grafik/redshift-software.com - 102708583/icq
RR> Which version of bjam and Boost are you using? Where do you have mingw RR> installed? I using: C:\Lang\Projects\boost Version 1.31.0 And i updating it from CVS every day. C:\Tools\bjam.exe Boost.Jam Version 3.1.9. OS=NT. C:\Lang\gnu\MinGW I install MinGW-3.1.0-1.exe And I extract current archives gcc-*-3.3.1-20030804-1.tar.gz C:\Lang\ActiveState\Python\python.exe 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] from www.python.org RR> Just in case. I should mention (as I did on another post) that there is RR> a bug with Boost.Build+BJam release that prevents it from handling RR> spaces for the compiler tools. If that's your situation try installing RR> mingw to a location without spaces. RR> HTH. RR> -- RR> -- Grafik - Don't Assume Anything RR> -- Redshift Software, Inc. - http://redshift-software.com RR> -- rrivera/acm.org - grafik/redshift-software.com - 102708583/icq With best regards, nagual. E-mail: nagual@promsoft.ru
nagual wrote:
RR> Which version of bjam and Boost are you using? Where do you have mingw RR> installed? I using:
C:\Lang\Projects\boost Version 1.31.0 And i updating it from CVS every day.
In that case you need to compile bjam from the sources in CVS... Go to the tools/build/jam_src directory, and making sure that the MinGW bin directory is in your PATH run: build.bat mingw It will produce a bin.ntx86/bjam.exe. Copy it someplace to you liking. Or if you are willing to wait.. I'll be making a bjam 3.10.0 version available tomorrow. -- -- Grafik - Don't Assume Anything -- Redshift Software, Inc. - http://redshift-software.com -- rrivera/acm.org - grafik/redshift-software.com - 102708583/icq
RR> In that case you need to compile bjam from the sources in CVS... RR> Go to the tools/build/jam_src directory, and making sure that the MinGW RR> bin directory is in your PATH run: RR> build.bat mingw RR> It will produce a bin.ntx86/bjam.exe. Copy it someplace to you liking. All work. Thanks!
participants (2)
-
nagual
-
Rene Rivera