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

Mac OS Release - Library Incompatibility #29

Closed
jacopomazzoni opened this issue Aug 6, 2021 · 2 comments
Closed

Mac OS Release - Library Incompatibility #29

jacopomazzoni opened this issue Aug 6, 2021 · 2 comments

Comments

@jacopomazzoni
Copy link

jacopomazzoni commented Aug 6, 2021

MacOS release has compatibility problems with libjpeg.
Catalina (and i assume the more recent releases as well ) ships with libjpeg v9, relight expects v8.

I was able to build and install v8 but relight can't seem to find that version.

Any idea if placing a symlink in a specific place can fix this?
or ideally can you release a version that supports libjpeg 9?
Thanks,
Jacopo

@jacopomazzoni
Copy link
Author

jacopomazzoni commented Aug 16, 2021

I was able to get it to work downloading the source and compiling it from scratch.

These are the commands I issued:


/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

brew install python@3.9
/usr/local/opt/python@3.9/bin/python3.9 -m pip install --upgrade pip
brew install jpeg-turbo
brew install jpeg
brew install cmake
brew install qt@5
echo 'export PATH="/usr/local/opt/qt@5/bin:$PATH"' >> ~/.profile
brew install eigen
brew install boost
brew install libomp

pip3 install -U pyvips
pip3 install psutil
pip3 install opencv-python
pip3 install -U scikit-learn

git clone https://github.com/cnr-isti-vclab/relight.git
cd relight/
git submodule update --init --recursive
cmake .
make

and set the paths in preferences to
/usr/local/opt/python@3.9/bin/python3
for the python3 binary and
~/relight/scripts
for the scripts folder

it would be great if libjpeg could be bundled with the other libs in the frameworks folder
it is entirely possible that issuing brew install jpeg@8 would fix the release version but I wonder if it is behind, especially on the python scripts front

@jacopomazzoni
Copy link
Author

update even the latest code with the dependencies installed trough homebrew still crashes with this error:

libc++abi.dylib: terminating with uncaught exception of type QString
Abort trap: 6

here is a pastebin of the full crash report:
https://pastebin.com/c9EF75yU

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