FXIhub / libspimage

Other
6 stars 3 forks source link

libspimage installs to /usr/local/lib64/ but hawk looks for it in /usr/local/lib/ #6

Closed sellberg closed 9 years ago

sellberg commented 9 years ago

This is a low-priority fix, but on default libspimage installs to:

/usr/local/lib64/

which is found by ccmake when configuring Hawk, but once uwrapc runs the following error occurs:

$ uwrapc dyld: Library not loaded: /usr/local/lib/libspimage.1.dylib Referenced from: /usr/local/bin/uwrapc Reason: image not found Trace/BPT trap: 5

This can probably be fixed by setting DYLD_LIBRARY_PATH / LD_LIBRARY_PATH, but it would be nicer in the long run if this is fixed automatically during ccmake configuration/compilation

Diagnostics:

$ otool -L /usr/local/bin/uwrapc /usr/local/bin/uwrapc: /usr/local/lib/libspimage.1.dylib (compatibility version 1.0.0, current version 1.0.0) /usr/local/lib/libhdf5.8.dylib (compatibility version 9.0.0, current version 9.2.0) /usr/local/lib/libtiff.5.dylib (compatibility version 8.0.0, current version 8.0.0) /usr/local/lib/libjpeg.8.dylib (compatibility version 13.0.0, current version 13.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1) /usr/local/lib/libpng16.16.dylib (compatibility version 30.0.0, current version 30.0.0)

FilipeMaia commented 9 years ago

The reason for this seems to be that the install_name for libspimage.1.dylib is incorrect (does not match its actual location). This can be checked by running otool -D on the installed libspimage.

sellberg commented 9 years ago

Solved by https://github.com/FilipeMaia/libspimage/commit/192c3bd00b5e83a705b55ff9c67353ea075e4802 => closing issue.