|
[Sponsors] |
[waves2Foam] Difficulties compiling: "cannot find -lwaves2Foam" |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 26, 2017, 16:40 |
Difficulties compiling: "cannot find -lwaves2Foam"
|
#1 |
New Member
EZHILSABAREESH
Join Date: Jun 2017
Posts: 2
Rep Power: 0 |
Dear All
When I ./Allwmake, I got the following error: Code:
/usr/bin/ld: cannot find -lwaves2Foam collect2: error: ld returned 1 exit status make: *** [/home/ezhilsabareesh/OpenFOAM/ezhilsabareesh-2.4.0/platforms/linux64GccDPOpt/lib/libwaves2FoamProcessing.so] Error 1 wmakeLnInclude: linking include files to ./lnInclude ===================================== COMPILE SOLVERS ===================================== Making dependency list for source file waveFoam.C SOURCE=waveFoam.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/home/ezhilsabareesh/OpenFOAM/OpenFOAM-2.4.0/src/transportModels/twoPhaseMixture/lnInclude -I/home/ezhilsabareesh/OpenFOAM/OpenFOAM-2.4.0/src/transportModels -I/home/ezhilsabareesh/OpenFOAM/OpenFOAM-2.4.0/src/transportModels/incompressible/lnInclude -I/home/ezhilsabareesh/OpenFOAM/OpenFOAM-2.4.0/src/transportModels/interfaceProperties/lnInclude -I/home/ezhilsabareesh/OpenFOAM/OpenFOAM-2.4.0/src/turbulenceModels/incompressible/turbulenceModel -I/home/ezhilsabareesh/OpenFOAM/OpenFOAM-2.4.0/src/transportModels/immiscibleIncompressibleTwoPhaseMixture/lnInclude -I/home/ezhilsabareesh/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude -I/home/ezhilsabareesh/OpenFOAM/OpenFOAM-2.4.0/src/fvOptions/lnInclude -I/home/ezhilsabareesh/OpenFOAM/OpenFOAM-2.4.0/src/meshTools/lnInclude -I/home/ezhilsabareesh/OpenFOAM/OpenFOAM-2.4.0/src/sampling/lnInclude -DOFVERSION=240 -DEXTBRANCH=0 -DXVERSION=0 -DOFPLUSBRANCH=0 -I/home/ezhilsabareesh/OpenFOAM/ezhilsabareesh-2.4.0/Applications/utilities/waves2Foam//src/waves2Foam/lnInclude -I/home/ezhilsabareesh/OpenFOAM/ezhilsabareesh-2.4.0/Applications/utilities/waves2Foam//src/waves2FoamSampling/lnInclude -I/usr/include -IlnInclude -I. -I/home/ezhilsabareesh/OpenFOAM/OpenFOAM-2.4.0/src/OpenFOAM/lnInclude -I/home/ezhilsabareesh/OpenFOAM/OpenFOAM-2.4.0/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/waveFoam.o In file included from waveFoam.C:70:0: /home/ezhilsabareesh/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/readTimeControls.H: In function ‘int main(int, char**)’: /home/ezhilsabareesh/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/readTimeControls.H:38:8: warning: unused variable ‘maxDeltaT’ [-Wunused-variable] scalar maxDeltaT = ^ g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/home/ezhilsabareesh/OpenFOAM/OpenFOAM-2.4.0/src/transportModels/twoPhaseMixture/lnInclude -I/home/ezhilsabareesh/OpenFOAM/OpenFOAM-2.4.0/src/transportModels -I/home/ezhilsabareesh/OpenFOAM/OpenFOAM-2.4.0/src/transportModels/incompressible/lnInclude -I/home/ezhilsabareesh/OpenFOAM/OpenFOAM-2.4.0/src/transportModels/interfaceProperties/lnInclude -I/home/ezhilsabareesh/OpenFOAM/OpenFOAM-2.4.0/src/turbulenceModels/incompressible/turbulenceModel -I/home/ezhilsabareesh/OpenFOAM/OpenFOAM-2.4.0/src/transportModels/immiscibleIncompressibleTwoPhaseMixture/lnInclude -I/home/ezhilsabareesh/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude -I/home/ezhilsabareesh/OpenFOAM/OpenFOAM-2.4.0/src/fvOptions/lnInclude -I/home/ezhilsabareesh/OpenFOAM/OpenFOAM-2.4.0/src/meshTools/lnInclude -I/home/ezhilsabareesh/OpenFOAM/OpenFOAM-2.4.0/src/sampling/lnInclude -DOFVERSION=240 -DEXTBRANCH=0 -DXVERSION=0 -DOFPLUSBRANCH=0 -I/home/ezhilsabareesh/OpenFOAM/ezhilsabareesh-2.4.0/Applications/utilities/waves2Foam//src/waves2Foam/lnInclude -I/home/ezhilsabareesh/OpenFOAM/ezhilsabareesh-2.4.0/Applications/utilities/waves2Foam//src/waves2FoamSampling/lnInclude -I/usr/include -IlnInclude -I. -I/home/ezhilsabareesh/OpenFOAM/OpenFOAM-2.4.0/src/OpenFOAM/lnInclude -I/home/ezhilsabareesh/OpenFOAM/OpenFOAM-2.4.0/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/waveFoam.o -L/home/ezhilsabareesh/OpenFOAM/OpenFOAM-2.4.0/platforms/linux64GccDPOpt/lib \ -limmiscibleIncompressibleTwoPhaseMixture -lincompressibleTurbulenceModel -lincompressibleRASModels -lincompressibleLESModels -lfiniteVolume -lfvOptions -lmeshTools -lsampling -L/home/ezhilsabareesh/OpenFOAM/ezhilsabareesh-2.4.0/platforms/linux64GccDPOpt/lib -lwaves2Foam -lwaves2FoamSampling -L/usr/lib64 -lgsl -lgslcblas -lOpenFOAM -ldl -lm -o /home/ezhilsabareesh/OpenFOAM/ezhilsabareesh-2.4.0/platforms/linux64GccDPOpt/bin/waveFoam /usr/bin/ld: cannot find -lwaves2Foam /usr/bin/ld: cannot find -lwaves2FoamSampling collect2: error: ld returned 1 exit status make: *** [/home/ezhilsabareesh/OpenFOAM/ezhilsabareesh-2.4.0/platforms/linux64GccDPOpt/bin/waveFoam] Error 1 Last edited by wyldckat; July 8, 2017 at 14:41. Reason: Added [CODE][/CODE] markers |
|
July 3, 2017, 00:09 |
|
#2 |
New Member
Michael Morris-Thomas
Join Date: Mar 2013
Posts: 1
Rep Power: 0 |
@Ezhil Can you show the Allwmake log for the compilation of the libraries? These are located in the waves2Foam/src directory and compiled just before the solvers. It might be that libwaves2Foam, and others, were not compiled.
|
|
July 3, 2017, 01:35 |
|
#3 |
New Member
EZHILSABAREESH
Join Date: Jun 2017
Posts: 2
Rep Power: 0 |
Dear Thomas
Thanks for your reply. This is the error I got, when compiling libraries: Code:
===================================== COMPILE OCEANWAVE3D ===================================== Cloning the OceanWave3D git repository ... ./Allwmake: line 108: git: command not found cp: cannot create regular file ‘OceanWave3D-Fortran90/.’: No such file or directory cp: cannot create regular file ‘OceanWave3D-Fortran90/.’: No such file or directory mkdir: cannot create directory ‘build’: File exists ./Allwmake: line 166: cd: OceanWave3D-Fortran90: No such file or directory make: *** No rule to make target `clean'. Stop. make: *** No rule to make target `Release'. Stop. make: *** No rule to make target `shared'. Stop. /home/ezhilsabareesh ===================================== COMPILE FENTON4FOAM ===================================== Compiling fenton4Foam ./Allwmake: line 195: cd: fenton4Foam: No such file or directory gfortran: error: fenton4Foam.f: No such file or directory gfortran: error: fft.f: No such file or directory ===================================== COMPILE LIBRARY ===================================== /usr/bin/ld: cannot find -lOceanWave3D collect2: error: ld returned 1 exit status make: *** [/home/ezhilsabareesh/OpenFOAM/ezhilsabareesh-2.4.0/platforms/linux64GccDPOpt/lib/libwaves2Foam.so] Error 1 /usr/bin/ld: cannot find -lwaves2Foam collect2: error: ld returned 1 exit status make: *** [/home/ezhilsabareesh/OpenFOAM/ezhilsabareesh-2.4.0/platforms/linux64GccDPOpt/lib/libwaves2FoamProcessing.so] Error 1 /usr/bin/ld: cannot find -lwaves2Foam collect2: error: ld returned 1 exit status make: *** [/home/ezhilsabareesh/OpenFOAM/ezhilsabareesh-2.4.0/platforms/linux64GccDPOpt/lib/libwaves2FoamSampling.so] Error 1 '/home/ezhilsabareesh/OpenFOAM/ezhilsabareesh-2.4.0/platforms/linux64GccDPOpt/lib/libwaves2FoamPorosity.so' is up to date. ===================================== COMPILE SOLVERS ===================================== g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/home/ezhilsabareesh/OpenFOAM/OpenFOAM-2.4.0/src/transportModels/twoPhaseMixture/lnInclude -I/home/ezhilsabareesh/OpenFOAM/OpenFOAM-2.4.0/src/transportModels -I/home/ezhilsabareesh/OpenFOAM/OpenFOAM-2.4.0/src/transportModels/incompressible/lnInclude -I/home/ezhilsabareesh/OpenFOAM/OpenFOAM-2.4.0/src/transportModels/interfaceProperties/lnInclude -I/home/ezhilsabareesh/OpenFOAM/OpenFOAM-2.4.0/src/turbulenceModels/incompressible/turbulenceModel -I/home/ezhilsabareesh/OpenFOAM/OpenFOAM-2.4.0/src/transportModels/immiscibleIncompressibleTwoPhaseMixture/lnInclude -I/home/ezhilsabareesh/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude -I/home/ezhilsabareesh/OpenFOAM/OpenFOAM-2.4.0/src/fvOptions/lnInclude -I/home/ezhilsabareesh/OpenFOAM/OpenFOAM-2.4.0/src/meshTools/lnInclude -I/home/ezhilsabareesh/OpenFOAM/OpenFOAM-2.4.0/src/sampling/lnInclude -DOFVERSION=240 -DEXTBRANCH=0 -DXVERSION=0 -DOFPLUSBRANCH=0 -I/home/ezhilsabareesh/OpenFOAM/ezhilsabareesh-2.4.0/Applications/utilities/waves2Foam/src/waves2Foam/lnInclude -I/home/ezhilsabareesh/OpenFOAM/ezhilsabareesh-2.4.0/Applications/utilities/waves2Foam/src/waves2FoamSampling/lnInclude -I/usr/include -IlnInclude -I. -I/home/ezhilsabareesh/OpenFOAM/OpenFOAM-2.4.0/src/OpenFOAM/lnInclude -I/home/ezhilsabareesh/OpenFOAM/OpenFOAM-2.4.0/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/waveFoam.o -L/home/ezhilsabareesh/OpenFOAM/OpenFOAM-2.4.0/platforms/linux64GccDPOpt/lib \ -limmiscibleIncompressibleTwoPhaseMixture -lincompressibleTurbulenceModel -lincompressibleRASModels -lincompressibleLESModels -lfiniteVolume -lfvOptions -lmeshTools -lsampling -L/home/ezhilsabareesh/OpenFOAM/ezhilsabareesh-2.4.0/platforms/linux64GccDPOpt/lib -lwaves2Foam -lwaves2FoamSampling -L/usr/lib64 -lgsl -lgslcblas -lOpenFOAM -ldl -lm -o /home/ezhilsabareesh/OpenFOAM/ezhilsabareesh-2.4.0/platforms/linux64GccDPOpt/bin/waveFoam /usr/bin/ld: cannot find -lwaves2Foam /usr/bin/ld: cannot find -lwaves2FoamSampling collect2: error: ld returned 1 exit status make: *** [/home/ezhilsabareesh/OpenFOAM/ezhilsabareesh-2.4.0/platforms/linux64GccDPOpt/bin/waveFoam] Error 1 Last edited by wyldckat; July 8, 2017 at 14:39. Reason: Added [CODE][/CODE] markers |
|
July 17, 2017, 13:00 |
|
#4 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,900
Rep Power: 37 |
Good afternoon,
@Ehzil: You are missing a number of the third-party dependencies. These are - but not necessarily limited to - 'git' and 'gfortran'. Kind regards, Niels
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request. Last edited by wyldckat; August 23, 2018 at 14:47. Reason: Post has been cloned from main thread, removed text referring to another thread |
|
October 12, 2020, 13:31 |
lgfortran not found
|
#5 |
New Member
Luiz Ferreira
Join Date: Oct 2020
Posts: 7
Rep Power: 5 |
I am having this problem. I have installed gfortran,gcc ang g++ (v7.5) but when I map gcc (which gcc and gcc --version) it directs to openfoam directory and gcc version of it (6.3). Finally, it can not find lgfortran at "/opt/OpenFOAM/OpenFOAM-v1912/platforms/linux64Gcc63DPInt32Opt/lib". How should I procedure?
|
|
December 28, 2020, 05:12 |
cannot find -lwaves2Foam
|
#6 | |
Member
le
Join Date: Nov 2009
Location: seoul
Posts: 34
Rep Power: 16 |
Quote:
https://github.com/ogoe/waves2Foam/c...a9fdbb242d2c28 I also have same issues. could you elaborate your comments more detail, please ! Many thanks |
||
December 28, 2020, 05:50 |
|
#7 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,900
Rep Power: 37 |
Hallo,
I do not know, whether the listed git is up to date. Try download instructions provided here: https://openfoamwiki.net/index.php/Contrib/waves2Foam Kind regards Niels
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
IAPWSIF97 water properties | dpalko | OpenFOAM Running, Solving & CFD | 80 | July 3, 2020 01:56 |
ERROR: unable to find library | HJH | CFX | 6 | February 26, 2019 06:52 |
simpleFoam parallel | AndrewMortimer | OpenFOAM Running, Solving & CFD | 12 | August 7, 2015 18:45 |
Problems with compiling in qtcreator | jd210 | OpenFOAM Programming & Development | 1 | April 7, 2014 04:40 |
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug | unoder | OpenFOAM Installation | 11 | January 30, 2008 20:30 |