Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues adding Leap to existing project. #6

Open
garrettburnett opened this issue Jan 25, 2016 · 4 comments
Open

Issues adding Leap to existing project. #6

garrettburnett opened this issue Jan 25, 2016 · 4 comments

Comments

@garrettburnett
Copy link

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

@genekogan
Copy link
Owner

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.

@garrettburnett
Copy link
Author

Hi, yes. Here are some of the issues I get
image

@garrettburnett
Copy link
Author

Some of these relate to my existing classes, but these issues only occur once I include the header file.

@garrettburnett
Copy link
Author

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 = $(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"

// all addons
OF_ADDON_HEADERS = $(OFX_OCULUSRIFT_HEADERS)
OF_ADDON_LIBS = $(OFX_OCULUSRIFT_LIBS)

///////////////////////////////////////////
// MAIN

HEADER_SEARCH_PATHS = $(OF_CORE_HEADERS) $(OF_ADDON_HEADERS)
OTHER_LDFLAGS = $(OF_CORE_LIBS) $(OF_ADDON_LIBS)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants