The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

pkshah (2) [Avatar] Offline
#1
I bought this book because I'm new to VR and wanted to start learning to build applications for the Rift. I'm still in the early parts of your book, but so far I have not seen detailed instructions on how to run your code examples. I'm using Xcode on a mid-2012 Macbook Pro/Retina 13-inch.

I didn't think I would need detailed instructions, but I get errors when I try to compile and run the example files in Xcode. Right now, it seems to be because I don't have oglplus installed (which I didn't know I needed to install). I'm still encountering some errors with installing oglplus properly but hope to have it figured out soon.

In any case, some guidance on prerequisite libraries that must be installed prior to using your code examples would be great for people who are totally new to this field.

And if you have any suggestions for the oglplus problem, I'd appreciate it! Here's the error I get:

"Could not detect GL version, assuming 3.0
CMake Warning at config/OGLplusLib.cmake:63 (message):
OGLplus library cannot be built!"


Thanks!
JAWZapps (2) [Avatar] Offline
#2
I'm not sure that the Mac examples are working correctly yet - I've been trying to use CMake to build them on my Mac too, but I keep getting this error (highlighted bold/italic):


The C compiler identification is AppleClang 6.0.0.6000057
The CXX compiler identification is AppleClang 6.0.0.6000057
Check for working C compiler using: Xcode
Check for working C compiler using: Xcode -- works
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Detecting C compile features
Detecting C compile features - done
Check for working CXX compiler using: Xcode
Check for working CXX compiler using: Xcode -- works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Detecting CXX compile features
Detecting CXX compile features - done
Debug build, resources will be loaded from disk
CMake Error at CMakeLists.txt:49 (set_target_properties):
set_target_properties Can not find target to add properties to: OculusVR
[i]


Using Cocoa for window creation
Using NSGL for context creation
Building GLFW only for the native architecture
OpenCV NOT found
Making executable Example_2_1_SDK in folder Examples
Making executable Example_2_2_Tracker in folder Examples
Making executable Example_2_3_Display in folder Examples
Making executable Example_2_4_HelloRift in folder Examples
Making executable Example_3_3_Tracker in folder Examples
Making executable Example_3_5_TrackerPrediction in folder Examples
Making executable Example_4_3_0_Undistorted in folder Examples
Making executable Example_4_3_1_Distorted in folder Examples
Making executable Example_5_1_Monoscopic in folder Examples
Making executable Example_5_2_Stereoscopic in folder Examples
Making executable Example_5_3_RiftRendered in folder Examples
Making executable Example_5_4_RiftSensors in folder Examples
Making executable Example_6_TextureSize in folder Examples
Making executable Example_SelfContained in folder Examples
Configuring incomplete, errors occurred!
See also "/Users/me/github/local/OculusRiftInAction/build/CMakeFiles/CMakeOutput.log".

It seems to be complaining about a missing "OculusVR" directory, but I'm new to CMake so at the moment I'm stumped.