bangnoise / ofxHapPlayer

A Hap player for OpenFrameworks
Other
147 stars 46 forks source link

libavformat branch: Compiled app missing library when moved #27

Open davivid opened 7 years ago

davivid commented 7 years ago

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

bangnoise commented 7 years ago

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.