CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [OpenFOAM.com] Can't find libraries for waves2Foam installation (https://www.cfd-online.com/Forums/openfoam-installation/226012-cant-find-libraries-waves2foam-installation.html)

Bulb44 April 14, 2020 16:42

Can't find libraries for waves2Foam installation
 
1 Attachment(s)
Hi! I have installed OpenFOAM on a Virtual Machine with Ubuntu, with the help of Docker. Now I am trying to install waves2Foam but it doesn't work. In particular, I always get the following error:


/usr/bin/ld: cannot find -lwaves2Foam
/usr/bin/ld: cannot find -lwaves2FoamProcessing
/usr/bin/ld: cannot find -lgsl
/usr/bin/ld: cannot find -lgslcblas
collect2: error: ld returned 1 exit status



I think that this is the problem and I am trying to understand where to find those libraries, with no success. In any case, I put here my log file, in case the error is something else.


Could you help me, please?

Thanks,


B

AliSalimi October 9, 2020 16:04

the fortran should be included in The OpenFOAM*.*/ThirdParty*.*/makeGcc line 290/ --enable languages:c,c++,fortran
the last one is not there by default.

so after adding the fortran to the line, go to ThirdParty*.* directory and ./Allwclean and then ./Allwmake.

This will solve your problem.

fsifsi December 28, 2020 09:33

cannot find -lgfortran
 
Quote:

Originally Posted by AliSalimi (Post 784925)
the fortran should be included in The OpenFOAM*.*/ThirdParty*.*/makeGcc line 290/ --enable languages:c,c++,fortran
the last one is not there by default.

so after adding the fortran to the line, go to ThirdParty*.* directory and ./Allwclean and then ./Allwmake.

This will solve your problem.

I have same problem when install waves2foam in of1812 as:
cannot find -lgfortran
cannot find -lwaves2Foam

Could you explain your comments in detail please.
Thanks

cesa September 14, 2021 10:17

Quote:

Originally Posted by AliSalimi (Post 784925)
the fortran should be included in The OpenFOAM*.*/ThirdParty*.*/makeGcc line 290/ --enable languages:c,c++,fortran
the last one is not there by default.

so after adding the fortran to the line, go to ThirdParty*.* directory and ./Allwclean and then ./Allwmake.

This will solve your problem.




Hello, could you please elaborate more? Should I change and recompile the ThirdParty from OpenFOAM (~/OpenFOAM/ThirdParty-v1912) or the ThirdParty inside waves2foam? (~/OpenFOAM/user-v1912/applications/utilities/waves2foam/ThirdParty)?


Also, if I need to run ./Allwmake inside ~/OpenFOAM/ThirdParty-v1912 will it affect any simulations running on OF-v1912? Thanks!


All times are GMT -4. The time now is 20:57.