ratt-ru / mt-imager

The Malta Imager -- a GPU-based imager from Daniel Muscat (U. Malta)
GNU General Public License v3.0
1 stars 2 forks source link

building mt-imager on 12.04: problems and solutions #1

Open o-smirnov opened 10 years ago

o-smirnov commented 10 years ago

Installed boost 1.55 to /usr/local/boost-1.55.

The cmake FindBoost script is pretty fucking braindead though. Ended up with the following cmake command to get it to work:

 cmake -DCMAKE_INSTALL_PREFIX=/usr/local -DBOOST_ROOT=/usr/local/boost-1.55/ -DCUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda-5.5/ -DBoost_SYSTEM_LIBRARY=/usr/local/boost-1.55/lib/libboost_system.so -DBoost_THREAD_LIBRARY=/usr/local/boost-1.55/lib/libboost_thread.so -DBoost_SYSTEM_LIBRARY_RELEASE=/usr/local/boost-1.55/lib/libboost_system.so -DBoost_THREAD_LIBRARY_RELEASE:FILEPATH=/usr/local/boost-1.55/lib/libboost_thread.so -DBoost_NO_SYSTEM_PATHS=1 ..

And yes, the stupid beast does need FILEPATH for the thread library but not for the other libraries, god only knows why...

o-smirnov commented 10 years ago

Also need to add this to CMakeLists.txt:

set(Boost_ADDITIONAL_VERSIONS "1.55" "1.55.0")