|
[Sponsors] |
[waves2Foam] Can't compile on OpenFOAM v-1912 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 12, 2021, 19:10 |
Can't compile on OpenFOAM v-1912
|
#1 |
New Member
Carlos Eduardo Simões de Almeida
Join Date: May 2021
Location: Lisboa, Portugal
Posts: 16
Rep Power: 4 |
Hello everyone,
I'm not able to compile waves2foam on OpenFOAM v-1912, I tried a lot of solutions posted in other threads, but it won't compile. I'm attaching my make.log file containing the errors and warnings I get when I try to compile it, can someone kindly see what is wrong? Best regards, Carlos |
|
September 28, 2021, 02:47 |
|
#2 |
New Member
Carlos Eduardo Simões de Almeida
Join Date: May 2021
Location: Lisboa, Portugal
Posts: 16
Rep Power: 4 |
I still haven't figured this out. Maybe it just won't compile with OF-v1912?
Here's some of the last lines in my terminal after the compilation is "over": wmkdepend: could not open 'foamTime.H' for source file 'relaxationZoneLayout.C': No such file or directory /usr/bin/ld: cannot find -lwaves2Foam collect2: error: ld returned 1 exit status make[1]: *** [/home/carlos/OpenFOAM/OpenFOAM-v1912/wmake/makefiles/general:143: /home/carlos/OpenFOAM/carlos-v1912/platforms/linux64GccDPInt32Opt/bin/relaxationZoneLayout] Error 1 make: *** [/home/carlos/OpenFOAM/OpenFOAM-v1912/wmake/makefiles/apps:29: relaxationZoneLayout] Error 2 It seems like there's no relaxationZoneLayout file on /home/carlos/OpenFOAM/carlos-v1912/platforms/linux64GccDPInt32Opt/bin, but why is that? I'm attaching also a make.log file again. Can anyone help? Best regards, Carlos |
|
September 28, 2021, 13:27 |
|
#3 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,900
Rep Power: 37 |
Hi Carlos,
I just tried to compile 1912 on my own computer without any problem. Your log-file does not contain any errors, so there is no way to help. Anyway, the basic library libwaves2Foam.so is missing, which is either caused by (i) missing third-party dependencies or (ii) lack of rights at the output location. 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. |
|
September 28, 2021, 19:25 |
|
#4 |
New Member
Carlos Eduardo Simões de Almeida
Join Date: May 2021
Location: Lisboa, Portugal
Posts: 16
Rep Power: 4 |
Hello Niels,
Thank you for your response. (i) I've checked it and all the third party dependencies (gfortran, git, SVN and GLS) are installed. (ii) Could this be related to where my OpenFOAM is installed (it's on ~/OpenFOAM)? I don't know why I shouldn't have rights at the output location. I tried to compile it again, following exactly the manual instructions: $ mkdir -p $FOAM_RUN/../applications/utilities $ cd $FOAM_RUN/../applications/utilities svn co http://svn.code.sf.net/p/openfoam-extend/svn/trunk/\ Breeder_1.6/other/waves2Foam $ cd waves2Foam $ ./Allwmake And again it didn't work. I'm attaching again the makelog file, this time with the compilation errors. I'm trying to compile it again, this time part by part (ThirdParty, src, solvers...) and I'll post the results here. Best regards, Carlos |
|
September 29, 2021, 13:38 |
|
#5 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,900
Rep Power: 37 |
Hi Carlos,
Look at line 5239 in the log file and you will find that libwaves2Foam.so is not made, because libgfortran cannot be found. This is the core of the problem and once that is resolved, you are good to go. Check that you have it in your search path. 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. |
|
October 1, 2021, 00:08 |
|
#6 |
New Member
Carlos Eduardo Simões de Almeida
Join Date: May 2021
Location: Lisboa, Portugal
Posts: 16
Rep Power: 4 |
Hello Niels,
Thank you very much, I was able to compile waves2Foam now. For anyone who might be going through this issue too: I already had gfortran installed, but the problem was that libgfortran.so wasn't in /usr/lib, it was on /usr/lib/gcc/x86_64-linux-gnu/ and on /usr/lib64/. You have to link it too the right place. Best regards, Carlos |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How can I compile new solver(in my case hy2Foam) in OpenFOAM v8? | adorabat | OpenFOAM Programming & Development | 9 | October 28, 2021 15:33 |
Map of the OpenFOAM Forum - Understanding where to post your questions! | wyldckat | OpenFOAM | 10 | September 2, 2021 05:29 |
OpenFOAM Training: Programming CFD Course 12-13 and 19-20 April 2016 | cfd.direct | OpenFOAM Announcements from Other Sources | 0 | January 14, 2016 10:19 |
OpenFOAM v3.0.1 Training, London, Houston, Berlin, Jan-Mar 2016 | cfd.direct | OpenFOAM Announcements from Other Sources | 0 | January 5, 2016 03:18 |
Modified OpenFOAM Forum Structure and New Mailing-List | pete | Site News & Announcements | 0 | June 29, 2009 05:56 |