-
Notifications
You must be signed in to change notification settings - Fork 2
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
update to libjpeg-turbo 2.x #19
Comments
And the problem comes from:
Found that I can set the install name directly without reference to the old install name by passing the -id flag.
Then rebuild any library that linked with the broken id. (ie: There must be a way to tell |
Bumped to 2.1.2 in 66f0aa3 No rush to upgrade to 3.0.x which may well cause us some new problems! |
Still had to manually fix things with |
Bumped to 2.1.5.1 in b57ba2e |
After a lot of trial and error, well, mostly errors: cc47e60, 70cd71b. These magic incantations override the default $ otool -L ${JHBUILD_PREFIX}/lib/libjpeg.62.3.0.dylib
/Users/macos/gtk/inst/lib/libjpeg.62.3.0.dylib:
@rpath/libjpeg.62.dylib (compatibility version 62.0.0, current version 62.3.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1281.0.0) |
No it doesn't 😞 install_name_tool -id "$JHBUILD_PREFIX/lib/libjpeg.62.dylib" $JHBUILD_PREFIX/lib/libjpeg.62.3.0.dylib
install_name_tool -id "$JHBUILD_PREFIX/lib/libturbojpeg.0.dylib" $JHBUILD_PREFIX/lib/libturbojpeg.0.2.0.dylib |
Looks finally fixed thanks to Recommended reading: Understanding RPATH (With CMake) This was also causing problems with |
Nope, this might have worked for packaging thanks to rpath support in gtk-mac-bundler but this now causes problems earlier when building |
Bumped to 3.0.1 in dcc4512 + fixups in 49dfe00 + f0c382c The dyld path still needs fixing: install_name_tool -id "$JHBUILD_PREFIX/lib/libjpeg.62.dylib" $JHBUILD_PREFIX/lib/libjpeg.62.4.0.dylib
install_name_tool -id "$JHBUILD_PREFIX/lib/libturbojpeg.0.dylib" $JHBUILD_PREFIX/lib/libturbojpeg.0.3.0.dylib |
Correct solution detailed here: Xpra-org/xpra#4085 (comment) |
For the rpath issue, I may have found a fix: cpatulea@7841daa Seems other modules take similar flags: https://github.com/cpatulea/gtk-osx-build/blob/7841daaf6fc67ee12da813576c78a3f85274a9df/jhbuildrc-gtk-osx#L500C1-L500C17 |
Finally, it works: $ jhbuild buildone -f libjpeg
(..)
$ jhbuild shell
(..)
$ otool -L $JHBUILD_PREFIX/lib/libjpeg.dylib
/Users/totaam/gtk/inst/lib/libjpeg.dylib:
/Users/totaam/gtk/inst/lib/libjpeg.62.dylib (compatibility version 62.0.0, current version 62.4.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1319.100.3) Thanks @cpatulea ! |
Not so easy:
checkoutdir
for github archives f6e3e6fThen hit the same issues as #2 (comment):
The text was updated successfully, but these errors were encountered: