mizumasa / ofxRealSense2

Intel® RealSense™ SDK for openframeworks
Apache License 2.0
13 stars 6 forks source link

ld: library not found for -lrealsense2.2.10.0 #2

Open pierrextardif opened 5 years ago

pierrextardif commented 5 years ago

Hi,

I'm using a RealSense D435, the SDK works when I'm building the examples from here, but when trying to run the capture example of your repo, it seems like the linkage is failing.

Terminal prints :

dyld: Library not loaded: @rpath/librealsense2.2.dylib

This is what my Link is giving me :

Ld bin/example-captureDebug.app/Contents/MacOS/example-captureDebug normal x86_64
    cd /Users/pierretardif/Documents/of_v0.10.0-patch-mojave-rc5_osx_release/addons/ofxRealSense2/example-capture
    export MACOSX_DEPLOYMENT_TARGET=10.9
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -L/Users/pierretardif/Documents/of_v0.10.0-patch-mojave-rc5_osx_release/addons/ofxRealSense2/example-capture/bin -F/Users/pierretardif/Documents/of_v0.10.0-patch-mojave-rc5_osx_release/addons/ofxRealSense2/example-capture/bin -filelist /Users/pierretardif/Library/Developer/Xcode/DerivedData/example-capture-czwpssbusmiwjlafnjkfditepjhg/Build/Intermediates.noindex/example-capture.build/Debug/example-capture.build/Objects-normal/x86_64/example-captureDebug.LinkFileList -mmacosx-version-min=10.9 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/pierretardif/Library/Developer/Xcode/DerivedData/example-capture-czwpssbusmiwjlafnjkfditepjhg/Build/Intermediates.noindex/example-capture.build/Debug/example-capture.build/Objects-normal/x86_64/example-captureDebug_lto.o -Xlinker -no_deduplicate -stdlib=libc++ ../../../libs/tess2/lib/osx/tess2.a ../../../libs/glew/lib/osx/glew.a ../../../libs/cairo/lib/osx/cairo-script-interpreter.a ../../../libs/cairo/lib/osx/cairo.a ../../../libs/cairo/lib/osx/pixman-1.a ../../../libs/fmodex/lib/osx/libfmodex.dylib ../../../libs/rtAudio/lib/osx/rtAudio.a ../../../libs/glfw/lib/osx/glfw3.a ../../../libs/FreeImage/lib/osx/freeimage.a ../../../libs/freetype/lib/osx/freetype.a ../../../libs/boost/lib/osx/boost_filesystem.a ../../../libs/boost/lib/osx/boost_system.a ../../../libs/curl/lib/osx/curl.a ../../../libs/uriparser/lib/osx/uriparser.a ../../../libs/pugixml/lib/osx/pugixml.a -framework Accelerate -framework AGL -framework AppKit -framework ApplicationServices -framework AudioToolbox -framework AVFoundation -framework Cocoa -framework CoreAudio -framework CoreFoundation -framework CoreMedia -framework CoreServices -framework CoreVideo -framework IOKit -framework OpenGL -framework QuartzCore -framework QTKit -framework Security -framework LDAP ../../../libs/openFrameworksCompiled/lib/osx/openFrameworksDebug.a ../../../addons/ofxRealSense2/libs/realsense2/lib/osx/librealsense2.2.10.0.dylib ../../../addons/ofxRealSense2/libs/realsense2/lib/osx/librealsense2.2.10.0.dylib ../../../addons/ofxRealSense2/libs/realsense2/lib/osx/librealsense2.2.10.0.dylib -weak-lrealsense2.2.10.0 -Xlinker -dependency_info -Xlinker /Users/pierretardif/Library/Developer/Xcode/DerivedData/example-capture-czwpssbusmiwjlafnjkfditepjhg/Build/Intermediates.noindex/example-capture.build/Debug/example-capture.build/Objects-normal/x86_64/example-captureDebug_dependency_info.dat -o /Users/pierretardif/Documents/of_v0.10.0-patch-mojave-rc5_osx_release/addons/ofxRealSense2/example-capture/bin/example-captureDebug.app/Contents/MacOS/example-captureDebug

I'm not too sure how to solve the problem, I have tried adding the library in the frameworks / library part of the build without success...

Screenshot 2019-04-30 at 12 22 41

I'm on OF10.0.1, on Mac os 10.14.4, xcode version Version 10.2.1 (10E1001).

Thks,

P

tobyshooters commented 4 years ago

Hey, have you found out how to solve this?

pierrextardif commented 4 years ago

Hey! From what I remembered, I did it using brew, you can check it on my github here, or on Hiro MBT github.

Let me know if it doesn't work.

Best,

P