CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[waves2Foam] problem with third-part dependencies during installation

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 4, 2020, 01:15
Default problem with third-part dependencies during installation
  #1
New Member
 
Kostas
Join Date: May 2018
Posts: 18
Rep Power: 4
madgeogr is on a distinguished road
Hi,
I am having a difficulty on correctly installing waves2foam in OpenFoam 6 in mac Catalina. As instructed in the manual, initially I have installed the following third-party dependencies:

git --version
git version 2.25.2

whereis svn
/usr/bin/svn

gfortran --version
GNU Fortran (GCC) 5.2.0
Copyright (C) 2015 Free Software Foundation, Inc.

gsl-config --version
2.6

After sourcing OPENFOAM environment, I have initialised the download process of waves2foam through the following link:
svn co http://svn.code.sf.net/p/openfoam-extend/svn/trunk/\
Breeder_1.6/other/waves2Foam

to the utilities directory of the OpenFoam directory:
/Volumes/OpenFOAM/OpenFOAM-6/applications/utilities

at the end of which I have encountered the following flag:
Checked out revision 2139.

I then moved to the bin/bashrc and correct the paths as follow:

export WAVES_DIR=/Volumes/OpenFOAM/OpenFOAM-6/applications/utilities/waves2Foam
I also point out that I convert the prepareCase.sh into an executable before the installation process began.

Then, I ran the installation command (./Allwmake inside the waves2foam directory), and I got the following error
========================================

=====================================
COMPILE OCEANWAVE3D
=====================================

Cloning the OceanWave3D git repository ...
Cloning into 'OceanWave3D-Fortran90'...
remote: Enumerating objects: 5024, done.
remote: Total 5024 (delta 0), reused 0 (delta 0), pack-reused 5024
Receiving objects: 100% (5024/5024), 16.61 MiB | 756.00 KiB/s, done.
Resolving deltas: 100% (3755/3755), done.

Set the environmental variables for waves2Foam
Exiting compilation process

Problems with the compilation of the third party dependencies
Exiting
========================================
It says that I have some issues related to third party dependencies, but I have properly installed all the proposed ones (see beginning of this post). The problem occurs at OceanWave3D, which the compiler can access through git.
Any advice?
madgeogr is offline   Reply With Quote

Old   April 6, 2020, 11:59
Default
  #2
New Member
 
Kostas
Join Date: May 2018
Posts: 18
Rep Power: 4
madgeogr is on a distinguished road
I recompiled the code and I get a number of errors, the first one being:

waveTheories/regular/cnoidalFirst/cnoidalFirst.C:30:10: fatal error: 'gsl/gsl_sf_ellint.h' file not found
#include "gsl/gsl_sf_ellint.h"
^~~~~~~~~~~~~~~~~~~~~
1 error generated.

make: *** [/Volumes/OpenFOAM/OpenFOAM-6/platforms/darwin64ClangDPInt32Opt/applications/utilities/waves2Foam/src/waves2Foam/waveTheories/regular/cnoidalFirst/cnoidalFirst.o] Error 1
make: *** Waiting for unfinished jobs....
wmake libso .
wmakeLnInclude: linking include files to ./lnInclude


At the end of the compilation process, I get the following:

ld: library not found for -lwaves2Foam
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [/Users/kotsios/OpenFOAM/kotsios-6/platforms/darwin64ClangDPInt32Opt/bin/postProcessWaves2Foam] Error 1
make: *** [postProcessWaves2Foam] Error 2

=====================================
COMPILE BREEDER
=====================================

Nothing available for compilation in the breeder
directory.


=====================================
COMPILATION DONE
=====================================

Many files are not found, and I do not know if this is related with the fact that, in order to install OpenFoam, I did my mac case sensitive.
Are there any suggestions on how to fix this?
madgeogr is offline   Reply With Quote

Old   April 7, 2020, 06:21
Default
  #3
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Deltares, Delft, The Netherlands
Posts: 1,859
Rep Power: 33
ngj will become famous soon enoughngj will become famous soon enough
Hallo Kostas,

Note that I am not supporting waves2Foam on that OpenFoam platform. The code should compile without problems on e.g. v1812 and v1912.

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.
ngj is offline   Reply With Quote

Old   April 7, 2020, 08:09
Default
  #4
New Member
 
Kostas
Join Date: May 2018
Posts: 18
Rep Power: 4
madgeogr is on a distinguished road
Hello Niels,
thank you very much for your response. OK, I will use another platform then.
Best,
Kostas
madgeogr is offline   Reply With Quote

Old   April 13, 2020, 02:10
Default
  #5
New Member
 
Akram P A
Join Date: Apr 2020
Posts: 8
Rep Power: 2
simucentral is on a distinguished road
Could you successfully compile v1912 and waves2Foam in it?

Best Regards,
Akram

Quote:
Originally Posted by madgeogr View Post
Hello Niels,
thank you very much for your response. OK, I will use another platform then.
Best,
Kostas
simucentral is offline   Reply With Quote

Old   April 16, 2020, 14:50
Default
  #6
New Member
 
Kostas
Join Date: May 2018
Posts: 18
Rep Power: 4
madgeogr is on a distinguished road
Hi Akram,
I havent tried it yet. I intend to install it on a cluster so i am waiting to obtain access first. When I will do it I will come back to you.

Best,
Kostas
madgeogr is offline   Reply With Quote

Old   April 16, 2020, 14:57
Smile
  #7
New Member
 
Akram P A
Join Date: Apr 2020
Posts: 8
Rep Power: 2
simucentral is on a distinguished road
Hi Kostas,

Thank you for your response.

Best regards,
Akram
simucentral is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with installation florvit ANSYS 0 December 8, 2016 09:10
[ICEM] Problem in icem meshing with internal part id.gomez65 ANSYS Meshing & Geometry 0 October 29, 2016 18:30
[OpenFOAM.com] Installation Problem Manyway OpenFOAM Installation 2 July 8, 2016 13:47
Installation problem - calling blockMesh - libblockMesh.so aylalisa OpenFOAM Installation 5 November 28, 2012 09:55
CHT Problem with moving solid part MaxHeat FLUENT 1 November 28, 2012 03:06


All times are GMT -4. The time now is 08:25.