-
Notifications
You must be signed in to change notification settings - Fork 0
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
How to correctly include pre-built binary for signing? #1
Comments
Does the app build and run with the ffmpeg lib in Generally, on macOS, it's best to include all dependent libs which aren't built-in to the OS within the .app bundle. Basically, you do this during one of the Build Phases in the Xcode project settings and probably need to change the library search path of the app so that it can find it. This is not really something you do within the makefile. Check out the ofxTensorFlow2 repo https://github.com/zkmkarlsruhe/ofxTensorFlow2. Our solution here was the Note: ffmpeg I believe has many dependencies which will also need to be included for this to work on another system. I for one have tried to bundle libs built via Homebrew into an app, for instance, and not had success making it unable on other computers. In my experience, it's best to build libs in statically, when possible, and when not, to build them separately and include them as stated, |
Thanks for the info, I'll look into those links. I'm using ofxVideoRecorder addon which hasn't been updated but works well still. I haven't had any issues bundling in just the single ffmpeg executable in the bin/data folder and setting the location for it as in this example For my OF apps I usually put |
You would still need to change the lib paths via Also, you want to place libs within |
Hi there,
Thanks a lot for this project. I'm new to the world of Apple signing and notarisation and is a very helpful resource.
I've created an OpenFrameworks app which utilises ffmpeg. I include a pre-built ffmpeg binary in the app's data folder.
I have
mac.dist.include = bin/data
included in my Makefile. Initially the notarisation failed as ffmpeg hadn't been signed. So I tried to include it usingmac.dist.progs
/mac.dist.libs
in the Makefile, but couldn't figure out the correct way to get it copied across from my bin/data folder.In my Makefile I added
mac.dist.libs = bin/data/ffmpeg
but at the codesign stage ofmake app dist-dmg
I get the error:If I instead try to include
mac.dist.libs = data/ffmpeg
then I get:If I create a folder at the root of my project called
data
containing ffmpeg then it gets copied over correctly and the signing and notarization works.I can see that the issue is just where the file gets copied to and from but from reading through the makefile I can't figure it out. Do I need to override
mac.dist.dir
ormac.dist.subdir
?Is there a suggested pattern for including files from bin/data to be signed?
Any pointers appreciated
Many thanks
The text was updated successfully, but these errors were encountered: