CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Community Contributions (https://www.cfd-online.com/Forums/openfoam-community-contributions/)
-   -   [waves2Foam] problem with third-part dependencies during installation (https://www.cfd-online.com/Forums/openfoam-community-contributions/225669-problem-third-part-dependencies-during-installation.html)

madgeogr April 4, 2020 01:15

problem with third-part dependencies during installation
 
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 April 6, 2020 11:59

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?

ngj April 7, 2020 06:21

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

madgeogr April 7, 2020 08:09

Hello Niels,
thank you very much for your response. OK, I will use another platform then.
Best,
Kostas

simucentral April 13, 2020 02:10

Could you successfully compile v1912 and waves2Foam in it?

Best Regards,
Akram

Quote:

Originally Posted by madgeogr (Post 764596)
Hello Niels,
thank you very much for your response. OK, I will use another platform then.
Best,
Kostas


madgeogr April 16, 2020 14:50

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

simucentral April 16, 2020 14:57

Hi Kostas,

Thank you for your response.

Best regards,
Akram

vicky78 September 19, 2020 02:25

Quote:

Originally Posted by madgeogr (Post 764143)
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?

hello,
I met the same problem. How do you solve this problem? (Problems with the compilation of the third party dependencies)

FVP January 12, 2022 04:24

Quote:

Originally Posted by vicky78 (Post 783174)
hello,
I met the same problem. How do you solve this problem? (Problems with the compilation of the third party dependencies)

Hello foamers,

I am facing the same problem as you. I am using the OF2012. Did you manage to solve it? If so, can you explain what was the problem?


All times are GMT -4. The time now is 23:18.