Issues adding Leap to existing project.
Opened this issue · 4 comments
Hello, I am able to run the example leap project perfectly. However, when trying run the Leap project I get a significant amount of errors. I feel like I'm follow all of the installation instructions correctly. This is my Run Script:
cp -f ../../../addons/ofxLeapMotion2/libs/lib/osx/libLeap.dylib "$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/MacOS/libLeap.dylib"; install_name_tool -change ./libLeap.dylib @executable_path/libLeap.dylib "$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/MacOS/$PRODUCT_NAME";
cp -f ../../../libs/fmodex/lib/osx/libfmodex.dylib "$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/MacOS/libfmodex.dylib"; install_name_tool -change ./libfmodex.dylib @executable_path/libfmodex.dylib "$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/MacOS/$PRODUCT_NAME";
Also, the only other thing I thing could be an issue is that my project actually sits in the following directory:
OFROOT/addons/projectName
can you post the errors you are seeing? also unless you've changed the OFROOT in the project files, a project has to be 3 levels down from OFROOT (e.g. OFROOT/addons/projectFolder/projectName or OFROOT/apps/projectFolder/projectName) which i suspect is your issue.
Some of these relate to my existing classes, but these issues only occur once I include the header file.
This is what my .xconfig looks like. I also absolutely need my project to sit in my addons folder. Is there something I'm missing??? I am still having issues getting this to work outside of the example.
//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 =
OFX_OCULUSRIFT_LIBS = "$(ADDONS_PATH)/ofxOculusDK2/libs/LibOVR/Lib/MacOS/Release/libovr.a"
// all addons
OF_ADDON_HEADERS = $(OFX_OCULUSRIFT_HEADERS)
OF_ADDON_LIBS = $(OFX_OCULUSRIFT_LIBS)
///////////////////////////////////////////
// MAIN
HEADER_SEARCH_PATHS =
OTHER_LDFLAGS =