| | 1 | == Buidling Mussa on Windows == |
| | 2 | |
| | 3 | 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. |
| | 4 | |
| | 5 | == Boost Libraries == |
| | 6 | |
| | 7 | 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. |
| | 8 | |
| | 9 | {{{ |
| | 10 | copy C:\Boost\lib\libboost_filesystem-mgw-s.lib C:\Boost\lib\libboost_filesystem-mgw-s.a |
| | 11 | copy C:\Boost\lib\libboost_program_options-mgw-s.lib C:\Boost\lib\libboost_program_options-mgw-s.a |
| | 12 | copy C:\Boost\lib\libboost_serialization-mgw.lib C:\Boost\lib\libboost_serialization-mgw.a |
| | 13 | copy C:\Boost\lib\libboost_unit_test_framework-mgw-s.lib C:\Boost\lib\libboost_unit_test_framework-mgw-s.a |
| | 14 | }}} |
| | 15 | |
| | 16 | == Python Libraries == |
| | 17 | |
| | 18 | 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: |
| | 19 | |
| | 20 | {{{ |
| | 21 | Linking CXX executable mussagl.exe |
| | 22 | CMakeFiles/mussagl.dir/qui/mussagl.obj(.text+0xa56): In function `main': |
| | 23 | C:/proj/mussa/qui/mussagl.cpp:102: undefined reference to `_imp__PyErr_Print' |
| | 24 | CMakeFiles/mussagl.dir/qui/mussagl.obj(.text$_ZN5boost6python3api6objectC2Ev[boo |
| | 25 | st::python::api::object::object()]+0x7): In function `ZN5boost6python6detail11up |
| | 26 | cast_implI7_objectS3_EEPT0_PT_S5_': |
| | 27 | C:/Boost/include/boost-1_33_1/boost/python/cast.hpp: undefined reference to `_im |
| | 28 | p___Py_NoneStruct' |
| | 29 | }}} |
| | 30 | |
| | 31 | It probably means you are trying to link against Python 2.5. Download Python 2.4 and tell cmake to use Python 2.4. |