| 71 | === Q: CMake complains about missing boost libraries === |
| 72 | |
| 73 | A: You probably get an error like this: |
| 74 | {{{ |
| 75 | $ cm |
| 76 | [...] |
| 77 | -- *** Build type is Debug *** |
| 78 | CMake Error at [...]/FindBoost.cmake:xxxx (message): |
| 79 | Unable to find the requested Boost libraries. |
| 80 | [...] |
| 81 | The following Boost libraries could not be found: |
| 82 | |
| 83 | boost_thread |
| 84 | boost_filesystem |
| 85 | boost_system |
| 86 | boost_date_time |
| 87 | [...] |
| 88 | }}} |
| 89 | In this case the boost libraries were probably built for a different version of MinGW and thus have a different name (e.g. {{{boost_thread-mgw45-mt-1_46_1}}} instead of {{{boost_thread-mgw47-mt-1_46_1}}}). Enable debugging of the Find-Boost-Script and look for the expected library name: |
| 90 | {{{ |
| 91 | $ cm -DBoost_DEBUG=true |
| 92 | [...] |
| 93 | -- [ [...]/FindBoost.cmake:xxxx ] Searching for THREAD_LIBRARY_RELEASE: boost_thread-mgw47-mt-1_46_1;[...] |
| 94 | [...] |
| 95 | }}} |
| 96 | Go to the dependencies directory and rename the boost libraries accordingly (or build new dependencies using the correct version of MinGW). |
| 97 | |