blitzpp / blitz

Blitz++ Multi-Dimensional Array Library for C++
https://github.com/blitzpp/blitz/wiki
Other
402 stars 83 forks source link

dyld: Library not loaded problem on macOS and macport version of blitz #150

Open billtau opened 4 years ago

billtau commented 4 years ago

I have downloaded blitz++ 1.0.2 and build it for a macOS 10.12.6 Sierra. While I can successfully build it to a custom directory (/User/xxx/local), and compile codes using this lib, everytime I run my code, it gives the following error:

dyld: Library not loaded: @rpath/libblitz.0.dylib Referenced from: /Users/xxx/tmp/cc/./run_test Reason: image not found Abort trap: 6

I built it to a custom directory using: cmake DCMAKE_INSTALL_PREFIX=custom-path .

After many googles, I have fixed this using: export DYLD_LIBRARY_PATH=path/to/blitz

This extra step of solution, however, is not very elegant. It would nice if someone could fix this installation issue, so that users wouldn't need this extra export. I have build other packages and haven't experienced this kind of problem.

The second issue is the macport version of blitz is 0.10 or something. When compiling code using this version of blitz using gcc9, it gave lots of errors. So it would be very nice if the latest version of blitz can be ported to macport.

Finally, thank you very much for your efforts for modernizing blitz. I have always loved this library.