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

OSX Homebrew lib path for Apple M1 #61

Closed
stepelu opened this issue Mar 4, 2022 · 2 comments
Closed

OSX Homebrew lib path for Apple M1 #61

stepelu opened this issue Mar 4, 2022 · 2 comments
Assignees

Comments

@stepelu
Copy link

stepelu commented Mar 4, 2022

On Apple silicon, Homebrew installs under /opt/homebrew instead of /usr/local.
Consequently, brew install jpeg-turbo results in the lib path "/opt/homebrew/opt/jpeg-turbo/lib/libturbojpeg.dylib".
Would it please be possible to check for this path as well on OSX when calling the default constructor TurboJPEG()?
As of now the user has to dig into the brew install to figure out the right path to pass to the TurboJPEG constructor.

@lilohuang
Copy link
Owner

I'm using apple silicon as well, but previously I installed turbo-jpeg from official release installer (https://sourceforge.net/projects/libjpeg-turbo/files/).

I will update the default path to accommodate home brew installation path in the following days. thanks.

lilohuang@MacBook-Pro homebrew % file /opt/homebrew/opt/jpeg-turbo/lib/libturbojpeg.dylib
/opt/homebrew/opt/jpeg-turbo/lib/libturbojpeg.dylib: Mach-O 64-bit dynamically linked shared library arm64

@lilohuang lilohuang self-assigned this Mar 5, 2022
lilohuang added a commit that referenced this issue Mar 6, 2022
Added OSX Homebrew lib path for Apple M1 #61
@lilohuang
Copy link
Owner

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

2 participants