swak4Foam compilation can't find -lOpenFOAM
I'm trying to compile swak4Foam on OpenFoam 2.3 but after using ./Allwmake twice I get this output:
Code:
Previously compiled for OpenFOAM 2.3.0 |
Greetings Bob and welcome to the forum!
What does the following commands give you? Code:
ls -l $FOAM_LIBBIN/libOpenFOAM.so If the library cannot be found, then run: Code:
ldd $(which blockMesh) | grep libOpenFOAM As for the g++ version, please run the following command for confirming the version being used: Code:
g++ --version Best regards, Bruno |
Thanks for the reply Bruno, much appreciated. The first command yields:
Code:
ls: /home/navier01a/broos/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64Gcc49DPOpt/lib/libOpenFOAM.so: No such file or directory Code:
/home/navier01a/broos/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64Gcc49DPOpt/lib ldd $(which blockMesh) | grep libOpenFOAM as I can't find it yields: Code:
Illegal variable name. Edit: I managed to find the file libOpenFOAM.so in some other folder and copied it to Code:
/home/navier01a/broos/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64Gcc49DPOpt/lib/ Code:
Previously compiled for OpenFOAM 2.3.0 |
If I may ask a follow up question to this Bruno, how did you know that it was searching for the libOpenFOAM.so file, i.e., how do you translate the error that it's looking for -lOpenFOAM into the file you search for? If there's a general answer, it'd be very helpful if I get stuck with similar cases in the future (or for other readers I guess)
|
Hi Bob,
Since you've asked, I've added this to the FAQ: http://openfoamwiki.net/index.php/FA...ume.27_mean.3F Best regards, Bruno |
All times are GMT -4. The time now is 05:27. |