Skip to content
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

dyld[23765]: Library not loaded: /opt/homebrew/opt/glew/lib #360

Open
maheshj01 opened this issue May 23, 2022 · 6 comments
Open

dyld[23765]: Library not loaded: /opt/homebrew/opt/glew/lib #360

maheshj01 opened this issue May 23, 2022 · 6 comments

Comments

@maheshj01
Copy link

maheshj01 commented May 23, 2022

I am trying to import glew in my opengl project, The build succeeds but there is a run time error

dyld[1206]: Library not loaded: /opt/homebrew/opt/glew/lib/libGLEW.2.2.dylib
Referenced from: /Users/mahesh/Library/Developer/Xcode/DerivedData/shaders_tutorial-dmpbkihfzacdojeludtugemxgahg/Build/Products/Debug/shaders_tutorial
 Reason: tried: '/Users/mahesh/Library/Developer/Xcode/DerivedData/shaders_tutorial-dmpbkihfzacdojeludtugemxgahg/Build/Products/Debug/libGLEW.2.2.dylib' (no such file), 
'/usr/lib/system/introspection/libGLEW.2.2.dylib' (no such file), '/opt/homebrew/opt/glew/lib/libGLEW.2.2.dylib' (code signature in
 <5B17918D-3F6B-34E1-AB68-489FA9ECB892> '/opt/homebrew/Cellar/glew/2.2.0_1/lib/libGLEW.2.2.0.dylib' not valid for use in
 process: mapped file has no Team ID and is not a platform binary (signed with custom identity or adhoc?)),
 '/usr/local/lib/libGLEW.2.2.dylib' (no such file), '/usr/lib/libGLEW.2.2.dylib' (no such file),
 '/Users/mahesh/Library/Developer/Xcode/DerivedData/shaders_tutorial-dmpbkihfzacdojeludtugemxgahg/Build/Products/Debug/libGLEW.2.2.0.dylib' (no such file),
'/usr/lib/system/introspection/libGLEW.2.2.0.dylib' (no such file), '/opt/homebrew/Cellar/glew/2.2.0_1/lib/libGLEW.2.2.0.dylib' (code signature in <5B17918D-3F6B-34E1-AB68-489FA9ECB892> '/opt/homebrew/Cellar/glew/2.2.0_1/lib/libGLEW.2.2.0.dylib' not valid
 for use in process: mapped file has no Team ID and is not a platform binary (signed with custom identity or adhoc?)), 
'/usr/local/lib/libGLEW.2.2.0.dylib' (no such file), '/usr/lib/libGLEW.2.2.0.dylib' (no such file)
(lldb) 

I have linked the following binaries in Xcode

image

I have also included the GL libraries in my incliude folder which is added to headers search Path in xcode

image

I am using a m1 mac,

Let me know if you need any further info

@nigels-com
Copy link
Owner

Appears to be a Mac security feature?
https://developer.apple.com/forums/thread/695481

-- Nigel

@maheshj01
Copy link
Author

thanks for your response @nigels-com. Is there a way to deal with this issue?

@nigels-com
Copy link
Owner

Might be worth updating your homebrew install.
Homebrew/brew#9082

@eccentric13
Copy link

I have the same issue in Xcode configured Opencv 4.5.5_2.

@maheshj01
Copy link
Author

Unfortunately, upgrading homebrew did not make a difference and the issue persists.

@nigels-com
Copy link
Owner

There is some troubleshooting information on the Homebrew discussions:
Homebrew/discussions#3124

I'm not able to reproduce this, my Mac is not as recent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants