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.
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.
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.
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:
Installed OSVR Windows Runtime
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.
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.