using $FOAM_USER_LIBBIN
Hi guys,
I have a rather simple question to you: as I made some changes in an OF library and compiled it with a new name into the $FOAM_USER_LIBBIN directory, OF couldn't find it. But as I copied the .so file manually into the $FOAM_LIBBIN directory, everything ran fine. It's not a great problem as long as I can use the lib, but I would like to keep my stuff apart from the unchanged OF. Do I have to add the $FOAM_USER_LIBBIN directory as a look-up path somewhere in OF (1.7.x)? Regards, Illya |
Quote:
https://github.com/OpenCFD/OpenFOAM-...tc/settings.sh There appears to be no reason why it shouldn't find your FOAM_USER_LIBBIN. If you echo the values Code:
echo $LD_LIBRARY_PATH |
I've always had the same. My paths are (shortened);
FOAM_LIBBIN = OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt FOAM_USER_LIBBIN = OpenFOAM/lrm29-1.7.x/lib/linux64GccDPOpt LD_LIBRARY_PATH = OpenFOAM/lrm29-1.7.x/lib/linux64GccDPOpt OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt but I've always had to put -L$(FOAM_USER_LIBBIN) in the EXE_LIBS part of the Make/options file when using custom libraries stored there, otherwise wmake doesn't seem to find the custom libraries. |
Quote:
Summary: if you are linking against user libs, you'll need to add -L$(FOAM_USER_LIBBIN) in the Make/options regardless of what is in the LD_LIBRARY_PATH. |
Quote:
Quote:
|
Quote:
Quote:
It is probably worth skimming this section of the manpage if you are going to be working with C/C++ at all. |
Thank you very much Mark
|
All times are GMT -4. The time now is 02:23. |