ofxHapPlayer icon indicating copy to clipboard operation
ofxHapPlayer copied to clipboard

libavformat branch: Compiled app missing library when moved

Open davivid opened this issue 7 years ago • 1 comments

Hello,

I'm using the libavformat branch on MacOS Sierra. The compiled app works fine in the project folder but if I move this elsewhere it fails to start. The crash log seems to inidcate it cant find libsnappy.1.dylib ? log.txt

davivid avatar Mar 30 '17 08:03 davivid

Ah yeah, I need to think about this - and either provide instructions in the README, or perhaps change to static libraries.

For now, you'll have to copy the ffmpeg and snappy folders from ofxHapPlayer/lib to the Frameworks folder of your application (in the Finder, right-click on your built application and select Show Package Contents to find the Frameworks folder), and add an rpath for them (in Xcode, select your project, then the application target and Build Settings, and type rpath in the search box to the right, and add @executable_path/../Frameworks for your application in the Runpath Search Paths setting).

Let me know if you hit any problems - I will make it simpler.

bangnoise avatar Mar 30 '17 09:03 bangnoise