/usr/bin/ld: cannot find -llagrangianTurbulence /usr/bin/ld: cannot find -lfluidTherm
Hi,
When I try to compile my solver with wmake the next error appears: /usr/bin/ld: cannot find -llagrangianTurbulence /usr/bin/ld: cannot find -lfluidThermophysicalModels Do somebody knows where can these libraries be found? Thank you. |
Hi,
They should be in $FOAM_LIBBIN (the value depends on where OpenFOAM is installed, what compiler/OS you are using) folder. |
Hi~
Would you please tell me how to add this path to the system's default compile search path? I have a prompted error: Quote:
Thank you! |
Quote:
Code:
LD_LIBRARY_PATH=$FOAM_LIBBIN:$LD_LIBRARY_PATH |
Thank you very much for your response!:)
I have checked the my ~/.bashrc , the last line was Quote:
Quote:
I will also update the situation. Thank you very much for your help! |
Quick Update~
I still have these prompted error Quote:
|
Firstly, what operating system are you using? As I must mention that my knowledge resides within Linux.
--- Can you post the output of the following command: Code:
echo -e ${LD_LIBRARY_PATH//:/\\n} && echo "" && echo "$FOAM_LIBBIN" If correct, the very last line shown (i.e. $FOAM_LIBBIN) should be contained within the printed list (i.e. $LD_LIBRARY_PATH). --- Also make sure that $FOAM_LIBBIN actually has the libraries you need. You can test this using: Code:
find $FOAM_LIBBIN -iname "*finitevolume*" Quote:
|
Thank you very much! As a starter of Linux, your advice and thoughts about the problem shed light on the knowledge that I should learn~:)
The OS I am using is ubuntu 15.10; Basing on your suggestion, the first thing I check is the real path of my $FOAM_LIBBIN, I check it as following Quote:
Quote:
Then I try to search the finiteVolume and meshTools lib in this path, I get: Quote:
I am really confused. Should I reinstall the OpenFOAM as the tricks of Windows? Thank you! |
Quick Update!
The problem is solved! I have made a very very stupid mistake! In my project's Make/files, once it was like these:eek::( Quote:
Quote:
Thank you floquation, for your precious time and advice on my problem! |
/usr/bin/ld:
Quote:
You can also modify your make file LIB as -I($LSRC)/finiteVolume/lnInclude \ some time LD_LIBRARY_PATH needs to be fixed every time. |
All times are GMT -4. The time now is 07:45. |