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

CMake Error in CMakeLists.txt #4

Open
BUGLESPIDER opened this issue Apr 24, 2017 · 1 comment
Open

CMake Error in CMakeLists.txt #4

BUGLESPIDER opened this issue Apr 24, 2017 · 1 comment

Comments

@BUGLESPIDER
Copy link

First off, thank you for putting this together!

I have a noob question here on an error generating the project solution files when trying to build the plugin in Microsoft Visual Studio 12.0 for Windows, CMake 3.8.0.

(My goal is to get my DIY DK1 working in SteamVR, per will1384's notes here:
http://www.mtbs3d.com/phpBB/viewtopic.php?p=161899)

The steps I've taken are:

  1. Installed OSVR Windows Runtime

  2. OSVR-OpenHMD git clone, init, and update worked as expected (e.g. G:\OSVR-OpenHMD\vendor\ contains \OpenHMD & \hidapi)
    In my G:/ folder I have the folders:
    G:\OSVR
    G:\OSVR-Core-Snapshot-v0.6-1935-ga2cba4b6-build281-vs12-64bit
    G:\OSVR-OpenHMD
    G:\OSVR-OpenHMD-build
    They are, respectively, OSVR runtime, the latest core snapshot, the OSVR-OpenHMD file cloned from here, and an empty build folder.

  3. I followed the instructions here starting at "Building Your Plugin":
    http://resource.osvr.com/docs/OSVR-Core/TopicWritingDevicePlugin.html

At step 4, "Configure," I chose the generator I have (Visual Studio 12 2013 Win64) and use default native compilers, then Finish.
No errors:
The C compiler identification is MSVC 18.0.31101.0
The CXX compiler identification is MSVC 18.0.31101.0
Check for working C compiler: G:/Microsoft Visual Studio 12.0/VC/bin/x86_amd64/cl.exe
Check for working C compiler: G:/Microsoft Visual Studio 12.0/VC/bin/x86_amd64/cl.exe -- works
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Check for working CXX compiler: G:/Microsoft Visual Studio 12.0/VC/bin/x86_amd64/cl.exe
Check for working CXX compiler: G:/Microsoft Visual Studio 12.0/VC/bin/x86_amd64/cl.exe -- works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Detecting CXX compile features
Detecting CXX compile features - done
Configuring done

Then, on "Generate" it states "Error in generation process, project files may be invalid" with error:

CMake Error in CMakeLists.txt:
Imported target "osvr::osvrPluginKitCpp" includes non-existent path
"Boost_INCLUDE_DIR-NOTFOUND"
in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:

  • The path was deleted, renamed, or moved to another location.
  • An install or uninstall procedure did not complete successfully.
  • The installation package was faulty and references files it does not
    provide.
    Generating done

From looking online I cannot seem to figure out if I have missed, such as missing a step on including the PluginKit library, or some other configuration error in the above.

@simlrh
Copy link
Owner

simlrh commented Apr 25, 2017

You need Boost installed.

Have you looked at the pre-built binaries?

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

2 participants