simlrh / OSVR-OpenHMD

OSVR plugin providing Oculus Rift DK1 & DK2 orientation tracking via OpenHMD
MIT License
21 stars 6 forks source link

CMake Error in CMakeLists.txt #4

Open BUGLESPIDER opened 7 years ago

BUGLESPIDER commented 7 years ago

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:

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 commented 7 years ago

You need Boost installed.

Have you looked at the pre-built binaries?