-
-
Notifications
You must be signed in to change notification settings - Fork 161
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
CI problem with GH actions and macOS #343
Comments
Got a hint from the Github Actions community, which seem to be a nice work around for SIP: https://github.community/t/unable-to-set-special-environment-variable/252620/4 |
OK, compilation is now working on Github Actions, but the result is not universally running on latest macOS (this time on a M1) Runtime error: ~/Downloads $ ./calibration
dyld[34291]: Library not loaded: /usr/local/opt/opencv/lib/libopencv_gapi.405.dylib
Referenced from: /Users/decades/Downloads/calibration
Reason: tried: '/usr/local/opt/opencv/lib/libopencv_gapi.405.dylib' (no such file), '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib//libopencv_gapi.405.dylib' (no such file)
Abort trap: 6
Too bad. Promising, but too many external references and risks. |
The same binary works fine on an Intel MBP. I guess this is due to the different locations brew installs things on M1 and Intel. Since GH Actions does not have an M1 image, binaries created for "macos-latest" will only run on Intel hardware, as long as they are having external dependencies resolved by brew. While the app (compiled on an Intel hardware) tries to find the opencv binaries under |
Thanks for the report, I'll include the reference to this issue to the readme. |
I am encountering the same issue. |
You recommend to set
DYLD_FALLBACK_LIBRARY_PATH
https://github.com/twistedfall/opencv-rust#:~:text=On%20macOS%20you%27re,xctoolchain/usr/lib/%22
Unfortunately Apple's System Integrity Protection disallows to set this environment variable and Github's images don't disable SIP.
Refer to:
https://apple.stackexchange.com/questions/212945/unable-to-set-dyld-fallback-library-path-in-shell-on-osx-10-11-1
actions/runner-images#650
Please also check this little GH script:
The DYLD_FALLBACK_LIBRARY_PATH variable is always empty, even set correctly.
Would there be another way to satisfy the requirement of providing the lib path to the compiler?
The text was updated successfully, but these errors were encountered: