Include file not found while compiling new solver
Hi, I'm trying to compile mine custom solver to a cluster (on my laptop it compiles and works fine).
Some errors occurs and I'm not able to sort it out... Here I post the output: SOURCE=rhopUCavitatingDyMFoamDowson.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -ggdb3 -I/home/lb711/OpenFOAM/OpenFOAM-1.6/src/finiteVolume/lnInclude -I/home/lb711/OpenFOAM/OpenFOAM-1.6/src/dynamicFvMesh/lnInclude -I/home/lb711/OpenFOAM/OpenFOAM-1.6/src/dynamicMesh/lnInclude -IcompressibilityModels/compressibilityModel -IlnInclude -I. -I/home/lb711/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude -I/home/lb711/OpenFOAM/OpenFOAM-1.6/src/OSspecific//lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/rhopUCavitatingDyMFoamDowson.o In file included from /home/lb711/OpenFOAM/OpenFOAM-1.6/src/finiteVolume/lnInclude/fvCFD.H:6, from rhopUCavitatingDyMFoamDowson.C:32: /home/lb711/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude/Time.H:47:21: error: cpuTime.H: No such file or directory In file included from /home/lb711/OpenFOAM/OpenFOAM-1.6/src/finiteVolume/lnInclude/fvCFD.H:20, from rhopUCavitatingDyMFoamDowson.C:32: /home/lb711/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude/argList.H:83:20: error: sigFpe.H: No such file or directory /home/lb711/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude/argList.H:84:20: error: sigInt.H: No such file or directory And so on.... Could it be possibly and error on the nineth line: /home/lb711/OpenFOAM/OpenFOAM-1.6/src/OSspecific//lnInclude where, maybe, it should be /home/lb711/OpenFOAM/OpenFOAM-1.6/src/OSspecific/POSIX/lnInclude ? I think so, but I don't know how to change the path, can anyone help me? Thank you! Luca |
I fixed it by changing properly the Make/options file. But now there is another problem:
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -ggdb3 -I/home/lb711/OpenFOAM/OpenFOAM-1.6/src/finiteVolume/lnInclude -I/home/lb711/OpenFOAM/OpenFOAM-1.6/src/dynamicFvMesh/lnInclude -I/home/lb711/OpenFOAM/OpenFOAM-1.6/src/dynamicMesh/lnInclude -I/home/lb711/OpenFOAM/OpenFOAM-1.6/src/OSspecific/POSIX/lnInclude -IcompressibilityModels/compressibilityModel -IlnInclude -I. -I/home/lb711/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude -I/home/lb711/OpenFOAM/OpenFOAM-1.6/src/OSspecific//lnInclude -fPIC Make/linux64GccDPOpt/rhopUCavitatingDyMFoamDowson.o Make/linux64GccDPOpt/compressibilityModel.o Make/linux64GccDPOpt/newCompressibilityModel.o Make/linux64GccDPOpt/linear.o Make/linux64GccDPOpt/Wallis.o Make/linux64GccDPOpt/Chung.o -L/home/lb711/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt \ -ldynamicFvMesh -ldynamicMesh -lfiniteVolume -lOpenFOAM -liberty -ldl -lm -o /home/lb711/OpenFOAM/lb711-1.6/applications/bin/linux64GccDPOpt/rhopUCavitatingDyMFoamDowson /usr/bin/ld: cannot find -liberty collect2: ld returned 1 exit status What is -liberty? Thanks! Luca |
Greetings Luca and welcome to the forum!
"-liberty" indicates that "libiberty.so" is missing. Usually this is part of the binutils package. The desired package in Ubuntu is named "binutils-dev"; in openSUSE might be "binutils-devel", I can't remember... Suggestion: when in doubt, search the forum! Best regards, Bruno |
Thank you, I solved this problem!
now, obviously I have a lot of other error messages... as usual! ;) I'm looking forward to fix they using the forum and google... Luca |
All times are GMT -4. The time now is 06:44. |