Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't get CMake to configure #536

Open
prechtl opened this issue Apr 9, 2017 · 2 comments
Open

Can't get CMake to configure #536

prechtl opened this issue Apr 9, 2017 · 2 comments

Comments

@prechtl
Copy link

prechtl commented Apr 9, 2017

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?

@0x1100
Copy link

0x1100 commented Apr 10, 2017

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" ...

@tobi-tobsen
Copy link

tobi-tobsen commented May 3, 2017

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 #535 which seems to be created by accident.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants