OSVR-Core icon indicating copy to clipboard operation
OSVR-Core copied to clipboard

Can't get CMake to configure

Open prechtl opened this issue 8 years ago • 2 comments

I downloaded the OSVR CMake project. Having a hugely difficult time getting CMake to configure this project. I had to go back and get jsoncpp and libfunctionality (& SDL2 & openCV). I think I've solved all those issues. However, I'm now trying to point at Boost. I have a previous version of Boost on my machine: boots_1_61_0. I'm pretty sure this is a legitimate version of Boost. However, in the OSVR CMake project, it's asking for me to specify my 'Boost_DIR' which is normally where there would be a boostConfig.cmake file. However, no such file exists in my Boost project. Is there a different place from where I can get Boost that is a version compatible with OSVR?

prechtl avatar Apr 09 '17 14:04 prechtl

That's the same version of Boost that I'm using so that's not where the problem comes from.

The build system should find Boost if you add its installation directory to CMAKE_PREFIX_PATH when configuring OSVR. cmake -DCMAKE_PREFIX_PATH="path_to_your_boost_installation" ...

0x1100 avatar Apr 10 '17 07:04 0x1100

You can also download boost, extract it, build it (e.g.: b2 install --prefix=d:\somepath\install\boost\ --stagedir=./stage/x64 address-model=64 --toolset=msvc-12.0 but create the dir stage/x64 before running that command).

Afterwards add a new item in the osvr cmake: Boost_LIBRARYDIR with value d:\somepath\install\boost\lib and also add a value d:\somepath\install\boost\include\boost-1_63\ for item BOOST_INCLUDE_DIR

Also consider closing https://github.com/OSVR/OSVR-Core/issues/535 which seems to be created by accident.

tobi-tobsen avatar May 03 '17 13:05 tobi-tobsen