Example code for using the Oculus Rift with Coin3D
"git clone https://github.com/OculusCommunitySDK/OculusRiftExamples.git OculusRiftExamples"
"cd OculusRiftExamples"
"git submodule init"
"git submodule update"
Copy Coin in /libraries/Coin_3.1.3_vs10 and coin3d.dll to build/Debug (sorry, was too lazy to find out how to do this with Cmake)
mkdir build && cd build
cmake .. -G "Unix Makefiles"
make -j 4
./source/Example00/Example00
The steps are the same until the CMake invokation. Instead of the "Unix Makefiles" generator, you need to specify the generator for whatever build tool you're using. Call CMake with your desired target project type, and then use the build tool with the created project files.
The code has been tested using the following CMake generators
- "Eclipse CDT4 - Unix Makefiles"
- "Eclipse CDT4 - Ninja"
- "Unix Makefiles"
- "Ninja"
Note that the CMake Eclipse generators will complain about a build directory that is a child of the source directory, but I have not experienced any issues with this.
- "Visual Studio 11 Win64"
For this I was using the CMake GUI rather than the command line, but it shouldn't be an issue.
- "Xcode"
- If you get an error about missing Qt .dlls add ../[QT_VERSION]/bin to your PATH