|
[Sponsors] |
Include file not found while compiling new solver |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 6, 2011, 14:10 |
Include file not found while compiling new solver
|
#1 |
New Member
Luca Bertocchi
Join Date: Apr 2011
Posts: 3
Rep Power: 15 |
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 |
|
September 6, 2011, 15:27 |
|
#2 |
New Member
Luca Bertocchi
Join Date: Apr 2011
Posts: 3
Rep Power: 15 |
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 |
|
September 6, 2011, 16:04 |
|
#3 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
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
__________________
|
|
September 8, 2011, 13:26 |
|
#4 |
New Member
Luca Bertocchi
Join Date: Apr 2011
Posts: 3
Rep Power: 15 |
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 |
|
Tags |
compile solver |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
wmake compiling new solver | mksca | OpenFOAM Programming & Development | 14 | June 22, 2018 07:29 |
OpenFoam install script Error during paraFoam installation | SePe | OpenFOAM Installation | 10 | June 19, 2010 16:15 |
Problem installing on Ubuntu 9.10 -> 'Cannot open : No such file or directory' | mfiandor | OpenFOAM Installation | 2 | January 25, 2010 10:50 |
OpenFOAM Install Script | ljsh | OpenFOAM Installation | 82 | October 12, 2009 12:47 |
OpenFOAM15 paraFoam bug | koen | OpenFOAM Bugs | 19 | June 30, 2009 11:46 |