Hi all,
I am trying to create a basic app that uses Oculus Rift and Leap Motion.
I managed to create 2 independent and working apps (1 with OR and 1 wit LM) and now I am trying to combine them but I am having some issues.
The addons I am using are ofxLeapmotion2 and ofxOculusDK2.
At first I had a lot of errors and a big fail when launching the app. Then I added in the config file the path of the Leap addon and the library.
Now the app succeeds but it crashes and I get an error message in cout:
dyld: Library not loaded: @loader_path/libLeap.dylib
Referenced from: /Applications/of_v0.8.4_osx_release/apps/IDEASTHESIA - PROJECT - 2/example-OculusRiftRendering/bin/OculusRenderingBasicDebug.app/Contents/MacOS/OculusRenderingBasicDebug
Reason: image not found
and this
Anyone any idea?
Thanks!!!
Here is the config.
//THE PATH TO THE ROOT OF OUR OF PATH RELATIVE TO THIS PROJECT.
//THIS NEEDS TO BE DEFINED BEFORE CoreOF.xcconfig IS INCLUDED
OF_PATH = ../../..
//THIS HAS ALL THE HEADER AND LIBS FOR OF CORE
#include "../../../libs/openFrameworksCompiled/project/osx/CoreOF.xcconfig"
///////////////////////////////////////////
// ADDONS
// path to the addons dir
ADDONS_PATH = $(OF_PATH)/addons
// ofxOculusRift
OFX_OCULUSRIFT_HEADERS = $(ADDONS_PATH)/ofxOculusDK2/src $(ADDONS_PATH)/ofxOculusDK2/libs/LibOVR/Include $(ADDONS_PATH)/ofxOculusDK2/libs/LibOVR/Src
OFX_OCULUSRIFT_LIBS = "$(ADDONS_PATH)/ofxOculusDK2/libs/LibOVR/Lib/MacOS/Release/libovr.a"
//Leap
OFX_LEAP_HEADERS = $(ADDONS_PATH)/ofxLeapMotion2/src $(ADDONS_PATH)/ofxLeapMotion2/libs/Include $(ADDONS_PATH)/ofxLeapMotion2/libs/lib/osx
OFX_LEAP_LIBS = "$(ADDONS_PATH)/ofxLeapMotion2/libs/lib/osx/libLeap.dylib"
// all addons
OF_ADDON_HEADERS = $(OFX_OCULUSRIFT_HEADERS) $(OFX_LEAP_HEADERS)
OF_ADDON_LIBS = $(OFX_OCULUSRIFT_LIBS) $(OFX_LEAP_LIBS)
///////////////////////////////////////////
// MAIN
HEADER_SEARCH_PATHS = $(OF_CORE_HEADERS) $(OF_ADDON_HEADERS)
OTHER_LDFLAGS = $(OF_CORE_LIBS) $(OF_ADDON_LIBS)