wiki:MussaglBuildWindows

Version 1 (modified by king, 17 years ago) ( diff )

Windows build information

Buidling Mussa on Windows

Building Mussa on Windows takes a bit of effort, which is why we provide pre-built binary installers. This section contains additional Windows specific information about building Mussa in windows.

Boost Libraries

For some reason (haven't bothered to look into the details yet), boost builds some of the libraries with .lib, but mingw looks for .a, so, it's required to copy/rename a few libraries to have the .a extension. Below is a list of command prompt commands to make copies of the files needed by Mussa.

copy C:\Boost\lib\libboost_filesystem-mgw-s.lib C:\Boost\lib\libboost_filesystem-mgw-s.a
copy C:\Boost\lib\libboost_program_options-mgw-s.lib C:\Boost\lib\libboost_program_options-mgw-s.a
copy C:\Boost\lib\libboost_serialization-mgw.lib C:\Boost\lib\libboost_serialization-mgw.a
copy C:\Boost\lib\libboost_unit_test_framework-mgw-s.lib C:\Boost\lib\libboost_unit_test_framework-mgw-s.a

Python Libraries

Because boost python bindings haven't been updated to Python 2.5 yet, the Python features of Mussa still require Python 2.3 or Python 2.4. If you get an error such as:

Linking CXX executable mussagl.exe
CMakeFiles/mussagl.dir/qui/mussagl.obj(.text+0xa56): In function `main':
C:/proj/mussa/qui/mussagl.cpp:102: undefined reference to `_imp__PyErr_Print'
CMakeFiles/mussagl.dir/qui/mussagl.obj(.text$_ZN5boost6python3api6objectC2Ev[boo
st::python::api::object::object()]+0x7): In function `ZN5boost6python6detail11up
cast_implI7_objectS3_EEPT0_PT_S5_':
C:/Boost/include/boost-1_33_1/boost/python/cast.hpp: undefined reference to `_im
p___Py_NoneStruct'

It probably means you are trying to link against Python 2.5. Download Python 2.4 and tell cmake to use Python 2.4.

Note: See TracWiki for help on using the wiki.