SoQt linking error on Mavericks (10.9.3)
Mark Brethen
mark.brethen at gmail.com
Sat Jun 28 16:49:09 PDT 2014
On Jun 28, 2014, at 5:58 PM, Brandon Allbery <allbery.b at gmail.com> wrote:
>
> On Sat, Jun 28, 2014 at 4:30 PM, Mark Brethen <mark.brethen at gmail.com> wrote:
> @MAC_FRAMEWORK_TRUE@ cd $(DESTDIR)$(MAC_FRAMEWORK_PREFIX)/$(MAC_FRAMEWORK_NAME).framework && ln -sf Versions/Current/$(MAC_FRAMEWORK_NAME) $(MAC_FRAMEWORK_NAME) && install_name_tool -id $(MAC_FRAMEWORK_NAME).framework/Versions/$(MAC_FRAMEWORK_VERSION)/$(MAC_FRAMEWORK_NAME) $(MAC_FRAMEWORK_NAME) && cd -;
>
> I think in very old OS X, that kind of thing worked. In this case, either you want @rpath or you just want a full path --- so you would probably prefix /opt/local/Library/Frameworks/ to the names, if that's where the frameworks are getting installed. (If not then I guess you prefix @rpath/ to them.)
>
> --
> brandon s allbery kf8nh sine nomine associates
> allbery.b at gmail.com ballbery at sinenomine.net
> unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
I patched it to:
@MAC_FRAMEWORK_TRUE@ cd $(DESTDIR)$(MAC_FRAMEWORK_PREFIX)/$(MAC_FRAMEWORK_NAME).framework && ln -sf Versions/Current/$(MAC_FRAMEWORK_NAME) $(MAC_FRAMEWORK_NAME) && install_name_tool -id $(MAC_FRAMEWORK_PREFIX)/$(MAC_FRAMEWORK_NAME).framework/Versions/$(MAC_FRAMEWORK_VERSION)/$(MAC_FRAMEWORK_NAME) $(MAC_FRAMEWORK_NAME) && cd -;
Now:
brethen-mbp:Libraries marbre$ ls -al
total 14776
drwxr-xr-x 5 root wheel 170 Jun 28 18:41 .
drwxr-xr-x 6 root wheel 204 Jun 28 18:41 ..
-rwxr-xr-x 1 root wheel 7555692 Jun 28 18:39 libCoin.60.1.3.dylib
lrwxr-xr-x 1 root wheel 20 Jun 28 18:39 libCoin.60.dylib -> libCoin.60.1.3.dylib
lrwxr-xr-x 1 root wheel 20 Jun 28 18:39 libCoin.dylib -> libCoin.60.1.3.dylib
brethen-mbp:Libraries marbre$ otool -L libCoin.60.1.3.dylib
libCoin.60.1.3.dylib:
/opt/local/Library/Frameworks/Inventor.framework/Versions/C/Inventor (compatibility version 62.0.0, current version 62.3.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)
/System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL (compatibility version 1.0.0, current version 1.0.0)
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 855.16.0)
/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 120.0.0)
I'll apply a similar patch to SoQt and see if the linking error is fixed.
Thanks,
Mark
More information about the macports-dev
mailing list