I obtained the libraries for mac os x and tried to compile an example for cpp. I got the following error on catmixa.cpp
./catmixa
dyld: Library not loaded: /Users/elwong/software/snopt7/lib/libsnopt7_cpp.dylib
Referenced from: /Users/b4be1/local/src/snopt/cppexamples/./catmixa
Reason: image not found
Trace/BPT trap: 5
It seems the library address was hard coded somewhere, as it looks for the library in a wrong folder. Could you advise me what to do? I tried to compile the cpp interface myself, it doesn't help. So I suspect it is in the fortran library.
Warm regards,
Boris
Library not loaded: /opt/local/lib/libgcc/libgfortran.3.dylib
Referenced from: /Users/b4be1/local/lib/libsnopt7.dylib/usr/local/lib/gcc/5
I am having a problem similar to Boris's first one two years ago. I have been trying to install SNOPT on my MacBook (macOS High Sierra), and 'make install' seems to be working (a bunch of files like libsnopt7.la are created in my /usr/local/snopt7/lib folder). However, 'make check' fails because the library files are not correctly referenced. I set DYLD_LIBRARY_PATH so
> echo $DYLD_LIBRARY_PATH
/usr/local/snopt7/lib
However,
> make check
if [ ! -d ./mod ]; then mkdir ./mod; fi
if [ ! -d ./src ]; then mkdir ./src; fi
/bin/sh ./libtool --mode=install --quiet /usr/bin/install -c ./lib/libsnopt7.la /usr/local/snopt7/lib
/bin/sh ./libtool --mode=finish --quiet /usr/local/snopt7/lib
/bin/sh ./libtool --mode=install --quiet /usr/bin/install -c ./lib/libsqopt7.la /usr/local/snopt7/lib
/bin/sh ./libtool --mode=finish --quiet /usr/local/snopt7/lib
if [ ! -d ./examples ]; then mkdir ./examples; fi
Checking the installation. This may take a while...
dyld: Library not loaded: /Volumes/MacintoshHD2/saunders/SOLVERS/snopt7/lib/libsnopt7.0.dylib
Referenced from: /usr/local/snopt7/examples/./sntoya
Reason: image not found
./check: line 3: 3218 Abort trap: 6 ./sntoya
dyld: Library not loaded: /Volumes/MacintoshHD2/saunders/SOLVERS/snopt7/lib/libsnopt7.0.dylib
Referenced from: /usr/local/snopt7/examples/./sntoyb
Reason: image not found
./check: line 4: 3220 Abort trap: 6 ./sntoyb
...
... (same messages for other examples)
...
Your assistance would be greatly appreciated. Thank you!
Best regards,
Shumpei
--
You received this message because you are subscribed to the Google Groups "SNOPT" group.
To unsubscribe from this group and stop receiving emails from it, send an email to snopt+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.