D3DEnergetic / FIDASIM

A Neutral Beam and Fast-ion Diagnostic Modeling Suite
http://d3denergetic.github.io/FIDASIM/
Other
29 stars 19 forks source link

Feature request: portability of installation directory #189

Closed lamorton closed 4 years ago

lamorton commented 4 years ago

I found that if I move the FIDASIM directory (wanted to reorganize my repositories on my MacBook by topic) then the application no longer runs. The error message is:

dyld: Library not loaded: /Users/lmorton/FIDASIM/deps/hdf5/lib/libhdf5_hl.10.dylib
            Referenced from: /Users/lmorton/Code/FIDASIM/fidasim
            Reason: image not found
Abort trap: 6

The absolute path to the dependencies is stuck looking at the old location under /User/lmorton/FIDASIM/dep when the new directory is under /Users/lmorton/Code/FIDASIM/dep/.

Ultimately, I worked around the issue by placing a symlink from the old location to the new.

Things I tried that did not work:

lstagner commented 4 years ago

All the paths are hard-coded at compile time so if you move the directory you will have to recompile the everything.

To do this you need to run

make clean_all

to remove all the previously compiled files. Then you can compile normally. To see all the makefile options run make help.

Also make sure you are using the v2.0 release and not the development version