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

[waves2Foam] waves2Foam on an Ubuntu 18.04 with OpenFOAM 1712

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

Like Tree8Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 6, 2018, 08:58
Default waves2Foam on an Ubuntu 18.04 with OpenFOAM 1712
  #1
New Member
 
Jorge Gadelho
Join Date: Feb 2013
Posts: 22
Rep Power: 13
JGadelho is on a distinguished road
Hello all,


I am trying to install waves2Foam on an Ubuntu 18.04 (upgraded from 16.04 server) with OpenFOAM 1712 installed from the source code (without docker). I am facing several errors compiling OceanWave3D and the solvers. I think the errors are related to incorrect paths.



Can anyone help me finding the mistake?
Thank you!



The installation log file is as follows:
(Some parts have been cut because of size purposes)



Code:

jorge@naval1164:~/OpenFOAM/jorge-v1712/applications/utilities/waves2Foam$ ./Allwmake 
v1712

=====================================
    ENVIRONMENTAL VARIABLES
=====================================
EXTBRANCH=0
FOAMEXTENDPROJECT=0
OFPLUSBRANCH=1
WAVES_APPBIN=/home/jorge/OpenFOAM/jorge-v1712/platforms/linux64GccDPInt32Opt/bin
WAVES_DIR=/home/jorge/OpenFOAM/jorge-v1712/applications/utilities/waves2Foam
WAVES_GSL_INCLUDE=/usr/include
WAVES_GSL_LIB=/usr/lib64
WAVES_LIBBIN=/home/jorge/OpenFOAM/jorge-v1712/platforms/linux64GccDPInt32Opt/lib
WAVES_POST=/home/jorge/OpenFOAM/jorge-v1712/applications/utilities/waves2Foam/applications/utilities/postProcessing
WAVES_PRE=/home/jorge/OpenFOAM/jorge-v1712/applications/utilities/waves2Foam/applications/utilities/preProcessing
WAVES_SOL=/home/jorge/OpenFOAM/jorge-v1712/applications/utilities/waves2Foam/applications/solvers/solvers1712_PLUS
WAVES_SRC=/home/jorge/OpenFOAM/jorge-v1712/applications/utilities/waves2Foam/src
WAVES_TUT=/home/jorge/OpenFOAM/jorge-v1712/applications/utilities/waves2Foam/tutorials
WAVES_UTIL=/home/jorge/OpenFOAM/jorge-v1712/applications/utilities/waves2Foam/applications/utilities
WAVES_XVERSION=0
WM_PROJECT_VERSION_NUMBER=1712

=====================================
    COMPILE LAPACK-3.3.1
=====================================

lapack-3.3.1 has already been compiled

=====================================
    COMPILE SPARSKIT2
=====================================

SPARSKIT2 has already been compiled

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

Pull changes from the OceanWave3D git repository ...
Saved working directory and index state WIP on master: bb7d99e bug fix for calling OceanWave3D
On branch master
Your branch is up to date with 'origin/master'.

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

    modified:   common.mk
    modified:   makefile

no changes added to commit (use "git add" and/or "git commit -a")
Dropped refs/stash@{0} (17dad5b68cfa12ee58874c92c66a6c4875de935c)
rm -f /home/jorge/OpenFOAM/jorge-v1712/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build/*.o 
rm -f /home/jorge/OpenFOAM/jorge-v1712/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build/*.mod 
rm -f /home/jorge/OpenFOAM/jorge-v1712/platforms/linux64GccDPInt32Opt/bin/OceanWave3D
ls: cannot access '*.mod': No such file or directory
mv: cannot stat '*.mod': No such file or directory
'thirdpartylibs/LIB_VTK_IO/static/lib_vtk_io.mod' -> '/home/jorge/OpenFOAM/jorge-v1712/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build/lib_vtk_io.mod'
gfortran -O3 -fPIC -ffpe-trap=invalid,zero,overflow -ffree-line-length-none -fstack-protector-all -c src/variabledefs/precision.f90 -o /home/jorge/OpenFOAM/jorge-v1712/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build/precision.o -I/home/jorge/OpenFOAM/jorge-v1712/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build
precision.mod
renamed 'precision.mod' -> '/home/jorge/OpenFOAM/jorge-v1712/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build/precision.mod'
'thirdpartylibs/LIB_VTK_IO/static/lib_vtk_io.mod' -> '/home/jorge/OpenFOAM/jorge-v1712/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build/lib_vtk_io.mod'
gfortran -O3 -fPIC -ffpe-trap=invalid,zero,overflow -ffree-line-length-none -fstack-protector-all -c src/variabledefs/constants.f90 -o /home/jorge/OpenFOAM/jorge-v1712/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build/constants.o -I/home/jorge/OpenFOAM/jorge-v1712/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build
constants.mod
renamed 'constants.mod' -> '/home/jorge/OpenFOAM/jorge-v1712/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build/constants.mod'
'thirdpartylibs/LIB_VTK_IO/static/lib_vtk_io.mod' -> '/home/jorge/OpenFOAM/jorge-v1712/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build/lib_vtk_io.mod'
gfortran -O3 -fPIC -ffpe-trap=invalid,zero,overflow -ffree-line-length-none -fstack-protector-all -c src/variabledefs/datatypes.f90 -o /home/jorge/OpenFOAM/jorge-v1712/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build/datatypes.o -I/home/jorge/OpenFOAM/jorge-v1712/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build
datatypes.mod
renamed 'datatypes.mod' -> '/home/jorge/OpenFOAM/jorge-v1712/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build/datatypes.mod'
'thirdpartylibs/LIB_VTK_IO/static/lib_vtk_io.mod' -> '/home/jorge/OpenFOAM/jorge-v1712/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build/lib_vtk_io.mod'
gfortran -O3 -fPIC -ffpe-trap=invalid,zero,overflow -ffree-line-length-none -fstack-protector-all -c src/variabledefs/HSL_LU.f90 -o /home/jorge/OpenFOAM/jorge-v1712/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build/HSL_LU.o -I/home/jorge/OpenFOAM/jorge-v1712/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build
hsl_lu.mod
renamed 'hsl_lu.mod' -> '/home/jorge/OpenFOAM/jorge-v1712/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build/hsl_lu.mod'
'thirdpartylibs/LIB_VTK_IO/static/lib_vtk_io.mod' -> '/home/jorge/OpenFOAM/jorge-v1712/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build/lib_vtk_io.mod'
gfortran -O3 -fPIC -ffpe-trap=invalid,zero,overflow -ffree-line-length-none -fstack-protector-all -c src/variabledefs/OFmodule.f90 -o /home/jorge/OpenFOAM/jorge-v1712/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build/OFmodule.o -I/home/jorge/OpenFOAM/jorge-v1712/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build
ofmodule.mod
renamed 'ofmodule.mod' -> '/home/jorge/OpenFOAM/jorge-v1712/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build/ofmodule.mod'
'thirdpartylibs/LIB_VTK_IO/static/lib_vtk_io.mod' -> '/home/jorge/OpenFOAM/jorge-v1712/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build/lib_vtk_io.mod'
gfortran -O3 -fPIC -ffpe-trap=invalid,zero,overflow -ffree-line-length-none -fstack-protector-all -c src/variabledefs/globalvariables.f90 -o /home/jorge/OpenFOAM/jorge-v1712/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build/globalvariables.o -I/home/jorge/OpenFOAM/jorge-v1712/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build
renamed 'globalvariables.mod' -> '/home/jorge/OpenFOAM/jorge-v1712/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build/globalvariables.mod'


[...] *a lot of these similar errors



 *** Starting linking of files for OceanWave3D (Release)... ***
ar -cr /home/jorge/OpenFOAM/jorge-v1712/platforms/linux64GccDPInt32Opt/lib/libOceanWave3DBuild.a /home/jorge/OpenFOAM/jorge-v1712/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build/*.o
OceanWave3D has been built successfully.
ls: cannot access '*.mod': No such file or directory
mv: cannot stat './*.mod': No such file or directory
'./thirdpartylibs/LIB_VTK_IO/static/lib_vtk_io.mod' -> '/home/jorge/OpenFOAM/jorge-v1712/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build/lib_vtk_io.mod'
*** Starting linking of files for OceanWave3D shared library (Release)... ***
Shared library for OceanWave3D has been built successfully.
/home/jorge/OpenFOAM/jorge-v1712/applications/utilities/waves2Foam/ThirdParty
=====================================
    COMPILE FENTON4FOAM
=====================================

fenton4Foam has already been compiled

=====================================
    COMPILE LIBRARY
=====================================
v1712
wmake libso (waves2Foam)
g++ -std=c++11 -m64 -DOPENFOAM_PLUS=1712 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3  -DNoRepository -ftemplate-depth-100 -DOFVERSION=1712 -DEXTBRANCH=0 -DXVERSION=0 -DOFPLUSBRANCH=1 -I/home/jorge/OpenFOAM/OpenFOAM-v1712/src/finiteVolume/lnInclude -I/home/jorge/OpenFOAM/OpenFOAM-v1712/src/meshTools/lnInclude -I/home/jorge/OpenFOAM/OpenFOAM-v1712/src/sampling/lnInclude -I/home/jorge/OpenFOAM/OpenFOAM-v1712/src/lagrangian/basic/lnInclude -I/home/jorge/OpenFOAM/OpenFOAM-v1712/src/fileFormats/lnInclude -I/usr/include -IlnInclude -I. -I/home/jorge/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude -I/home/jorge/OpenFOAM/OpenFOAM-v1712/src/OSspecific/POSIX/lnInclude   -fPIC -c waveTheories/regular/cnoidalFirst/cnoidalFirst.C -o Make/linux64GccDPInt32Opt/waveTheories/regular/cnoidalFirst/cnoidalFirst.o
waveTheories/regular/cnoidalFirst/cnoidalFirst.C:30:10: fatal error: gsl/gsl_sf_ellint.h: No such file or directory
 #include "gsl/gsl_sf_ellint.h"
          ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
/home/jorge/OpenFOAM/OpenFOAM-v1712/wmake/rules/General/transform:28: recipe for target 'Make/linux64GccDPInt32Opt/waveTheories/regular/cnoidalFirst/cnoidalFirst.o' failed
make: *** [Make/linux64GccDPInt32Opt/waveTheories/regular/cnoidalFirst/cnoidalFirst.o] Error 1
wmake libso (waves2FoamProcessing)
g++ -std=c++11 -m64 -DOPENFOAM_PLUS=1712 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3  -DNoRepository -ftemplate-depth-100 -DOFVERSION=1712 -DEXTBRANCH=0 -DXVERSION=0 -DOFPLUSBRANCH=1 -I/home/jorge/OpenFOAM/OpenFOAM-v1712/src/finiteVolume/lnInclude -I/home/jorge/OpenFOAM/OpenFOAM-v1712/src/meshTools/lnInclude -I/home/jorge/OpenFOAM/OpenFOAM-v1712/src/sampling/lnInclude -I/home/jorge/OpenFOAM/OpenFOAM-v1712/src/lagrangian/basic/lnInclude -I/home/jorge/OpenFOAM/OpenFOAM-v1712/src/fileFormats/lnInclude -I/home/jorge/OpenFOAM/jorge-v1712/applications/utilities/waves2Foam/src/waves2Foam/lnInclude -I/usr/include -IlnInclude -I. -I/home/jorge/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude -I/home/jorge/OpenFOAM/OpenFOAM-v1712/src/OSspecific/POSIX/lnInclude   -fPIC -c preProcessing/setWaveProperties/setWaveProperties.C -o Make/linux64GccDPInt32Opt/preProcessing/setWaveProperties/setWaveProperties.o
In file included from preProcessing/setWaveProperties/setWaveProperties.C:27:0:
preProcessing/setWaveProperties/setWaveProperties.H:68:10: fatal error: gsl/gsl_vector.h: No such file or directory
 #include <gsl/gsl_vector.h>
          ^~~~~~~~~~~~~~~~~~
compilation terminated.


[...]


/usr/bin/x86_64-linux-gnu-ld: cannot find -lwaves2Foam
 collect2: error: ld returned 1 exit status
/home/jorge/OpenFOAM/OpenFOAM-v1712/wmake/makefiles/general:167: recipe for target '/home/jorge/OpenFOAM/jorge-v1712/platforms/linux64GccDPInt32Opt/lib/libwaves2FoamSampling.so' failed
make: *** [/home/jorge/OpenFOAM/jorge-v1712/platforms/linux64GccDPInt32Opt/lib/libwaves2FoamSampling.so] Error 1
OUGHT TO COMPILE NEW SAMPLING
wmake libso (waves2FoamPorosity)

=====================================
    COMPILE SOLVERS
=====================================
g++ -std=c++11 -m64 -DOPENFOAM_PLUS=1712 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3  -DNoRepository -ftemplate-depth-100 -I/home/jorge/OpenFOAM/OpenFOAM-v1712/src/transportModels/twoPhaseMixture/lnInclude -I/home/jorge/OpenFOAM/OpenFOAM-v1712/src/transportModels -I/home/jorge/OpenFOAM/OpenFOAM-v1712/src/transportModels/incompressible/lnInclude -I/home/jorge/OpenFOAM/OpenFOAM-v1712/src/transportModels/interfaceProperties/lnInclude -I/home/jorge/OpenFOAM/OpenFOAM-v1712/src/TurbulenceModels/turbulenceModels/lnInclude -I/home/jorge/OpenFOAM/OpenFOAM-v1712/src/TurbulenceModels/incompressible/lnInclude -I/home/jorge/OpenFOAM/OpenFOAM-v1712/src/transportModels/immiscibleIncompressibleTwoPhaseMixture/lnInclude -I/home/jorge/OpenFOAM/OpenFOAM-v1712/src/finiteVolume/lnInclude -I/home/jorge/OpenFOAM/OpenFOAM-v1712/src/meshTools/lnInclude -I/home/jorge/OpenFOAM/OpenFOAM-v1712/src/sampling/lnInclude -DOFVERSION=1712 -DEXTBRANCH=0 -DOFPLUSBRANCH=1 -DXVERSION=0 -I/home/jorge/OpenFOAM/jorge-v1712/applications/utilities/waves2Foam/src/waves2Foam/lnInclude -I/home/jorge/OpenFOAM/jorge-v1712/applications/utilities/waves2Foam/src/waves2FoamPorosity/lnInclude -I/home/jorge/OpenFOAM/jorge-v1712/applications/utilities/waves2Foam/src/waves2FoamSamplingNew/lnInclude -I/usr/include -IlnInclude -I. -I/home/jorge/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude -I/home/jorge/OpenFOAM/OpenFOAM-v1712/src/OSspecific/POSIX/lnInclude   -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPInt32Opt/porousWaveFoam.o -L/home/jorge/OpenFOAM/OpenFOAM-v1712/platforms/linux64GccDPInt32Opt/lib \
    -limmiscibleIncompressibleTwoPhaseMixture -lturbulenceModels -lincompressibleTurbulenceModels -lfiniteVolume -lfvOptions -lmeshTools -lsampling -L/home/jorge/OpenFOAM/jorge-v1712/platforms/linux64GccDPInt32Opt/lib -lwaves2Foam -lwaves2FoamPorosity -lwaves2FoamSampling -L/usr/lib64 -lgsl -lgslcblas -lOpenFOAM -ldl  \
     -lm -o /home/jorge/OpenFOAM/jorge-v1712/platforms/linux64GccDPInt32Opt/bin/porousWaveFoam
/usr/bin/x86_64-linux-gnu-ld: cannot find -lwaves2Foam
/usr/bin/x86_64-linux-gnu-ld: cannot find -lwaves2FoamSampling
/usr/bin/x86_64-linux-gnu-ld: cannot find -lgsl
/usr/bin/x86_64-linux-gnu-ld: cannot find -lgslcblas
collect2: error: ld returned 1 exit status
/home/jorge/OpenFOAM/OpenFOAM-v1712/wmake/makefiles/general:140: recipe for target '/home/jorge/OpenFOAM/jorge-v1712/platforms/linux64GccDPInt32Opt/bin/porousWaveFoam' failed
make: *** [/home/jorge/OpenFOAM/jorge-v1712/platforms/linux64GccDPInt32Opt/bin/porousWaveFoam] Error 1
g++ -std=c++11 -m64 -DOPENFOAM_PLUS=1712 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3  -DNoRepository -ftemplate-depth-100 -I/home/jorge/OpenFOAM/OpenFOAM-v1712/src/transportModels/twoPhaseMixture/lnInclude -I/home/jorge/OpenFOAM/OpenFOAM-v1712/src/transportModels -I/home/jorge/OpenFOAM/OpenFOAM-v1712/src/transportModels/incompressible/lnInclude -I/home/jorge/OpenFOAM/OpenFOAM-v1712/src/transportModels/interfaceProperties/lnInclude -I/home/jorge/OpenFOAM/OpenFOAM-v1712/src/TurbulenceModels/turbulenceModels/lnInclude -I/home/jorge/OpenFOAM/OpenFOAM-v1712/src/TurbulenceModels/incompressible/lnInclude -I/home/jorge/OpenFOAM/OpenFOAM-v1712/src/transportModels/immiscibleIncompressibleTwoPhaseMixture/lnInclude -I/home/jorge/OpenFOAM/OpenFOAM-v1712/src/finiteVolume/lnInclude -I/home/jorge/OpenFOAM/OpenFOAM-v1712/src/meshTools/lnInclude -I/home/jorge/OpenFOAM/OpenFOAM-v1712/src/sampling/lnInclude -DOFVERSION=1712 -DEXTBRANCH=0 -DOFPLUSBRANCH=1 -DXVERSION=0 -I/home/jorge/OpenFOAM/jorge-v1712/applications/utilities/waves2Foam/src/waves2Foam/lnInclude -I/home/jorge/OpenFOAM/jorge-v1712/applications/utilities/waves2Foam/src/waves2FoamSamplingNew/lnInclude -I/usr/include -IlnInclude -I. -I/home/jorge/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude -I/home/jorge/OpenFOAM/OpenFOAM-v1712/src/OSspecific/POSIX/lnInclude   -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPInt32Opt/waveFoam.o -L/home/jorge/OpenFOAM/OpenFOAM-v1712/platforms/linux64GccDPInt32Opt/lib \
    -limmiscibleIncompressibleTwoPhaseMixture -lturbulenceModels -lincompressibleTurbulenceModels -lfiniteVolume -lfvOptions -lmeshTools -lsampling -L/home/jorge/OpenFOAM/jorge-v1712/platforms/linux64GccDPInt32Opt/lib -lwaves2Foam -lwaves2FoamSampling -L/usr/lib64 -lgsl -lgslcblas -lOpenFOAM -ldl  \
     -lm -o /home/jorge/OpenFOAM/jorge-v1712/platforms/linux64GccDPInt32Opt/bin/waveFoam
/usr/bin/x86_64-linux-gnu-ld: cannot find -lwaves2Foam
/usr/bin/x86_64-linux-gnu-ld: cannot find -lwaves2FoamSampling
/usr/bin/x86_64-linux-gnu-ld: cannot find -lgsl
/usr/bin/x86_64-linux-gnu-ld: cannot find -lgslcblas
collect2: error: ld returned 1 exit status
/home/jorge/OpenFOAM/OpenFOAM-v1712/wmake/makefiles/general:140: recipe for target '/home/jorge/OpenFOAM/jorge-v1712/platforms/linux64GccDPInt32Opt/bin/waveFoam' failed
make: *** [/home/jorge/OpenFOAM/jorge-v1712/platforms/linux64GccDPInt32Opt/bin/waveFoam] Error 1

=====================================
    COMPILE PRE-PROCESSING
=====================================
wmake faceSetToSTL
make[1]: Entering directory '/home/jorge/OpenFOAM/jorge-v1712/applications/utilities/waves2Foam/applications/utilities/preProcessing/faceSetToSTL'
make[1]: Leaving directory '/home/jorge/OpenFOAM/jorge-v1712/applications/utilities/waves2Foam/applications/utilities/preProcessing/faceSetToSTL'
wmake relaxationZoneLayout
make[1]: Entering directory '/home/jorge/OpenFOAM/jorge-v1712/applications/utilities/waves2Foam/applications/utilities/preProcessing/relaxationZoneLayout'
 g++ -std=c++11 -m64 -DOPENFOAM_PLUS=1712 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32


[...]
      -lm -o /home/jorge/OpenFOAM/jorge-v1712/platforms/linux64GccDPInt32Opt/bin/relaxationZoneLayout
/usr/bin/x86_64-linux-gnu-ld: cannot find -lwaves2Foam
/usr/bin/x86_64-linux-gnu-ld: cannot find -lgsl
/usr/bin/x86_64-linux-gnu-ld: cannot find -lgslcblas
collect2: error: ld returned 1 exit status
/home/jorge/OpenFOAM/OpenFOAM-v1712/wmake/makefiles/general:140: recipe for target '/home/jorge/OpenFOAM/jorge-v1712/platforms/linux64GccDPInt32Opt/bin/relaxationZoneLayout' failed
make[1]: *** [/home/jorge/OpenFOAM/jorge-v1712/platforms/linux64GccDPInt32Opt/bin/relaxationZoneLayout] Error 1
make[1]: Leaving directory '/home/jorge/OpenFOAM/jorge-v1712/applications/utilities/waves2Foam/applications/utilities/preProcessing/relaxationZoneLayout'
/home/jorge/OpenFOAM/OpenFOAM-v1712/wmake/makefiles/apps:39: recipe for target 'relaxationZoneLayout' failed
make: *** [relaxationZoneLayout] Error 2

=====================================
    COMPILE POST-PROCESSING
=====================================
 g++ -std=c++11 -m64 -DOPENFOAM_PLUS=1712 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall 

[...]

     -lm -o /home/jorge/OpenFOAM/jorge-v1712/platforms/linux64GccDPInt32Opt/bin/postProcessWaves2Foam
 /usr/bin/x86_64-linux-gnu-ld: cannot find -lwaves2Foam
/usr/bin/x86_64-linux-gnu-ld: cannot find -lwaves2FoamProcessing
/usr/bin/x86_64-linux-gnu-ld: cannot find -lgsl
/usr/bin/x86_64-linux-gnu-ld: cannot find -lgslcblas
collect2: error: ld returned 1 exit status
/home/jorge/OpenFOAM/OpenFOAM-v1712/wmake/makefiles/general:140: recipe for target '/home/jorge/OpenFOAM/jorge-v1712/platforms/linux64GccDPInt32Opt/bin/postProcessWaves2Foam' failed
make: *** [/home/jorge/OpenFOAM/jorge-v1712/platforms/linux64GccDPInt32Opt/bin/postProcessWaves2Foam] Error 1

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

Nothing available for compilation in the breeder
directory.


=====================================
    COMPILATION DONE
=====================================
JGadelho is offline   Reply With Quote

Old   June 6, 2018, 11:14
Default
  #2
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,902
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Hi Jorge,


The path the gsl is wrong.


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   June 7, 2018, 06:03
Default
  #3
New Member
 
Jorge Gadelho
Join Date: Feb 2013
Posts: 22
Rep Power: 13
JGadelho is on a distinguished road
Hi Niels,

thank you very much for pointing out the problem.


I am posting my solution that might help someone in the future:


1) Install GSL according to this link: https://coral.ise.lehigh.edu/jild13/2016/07/11/hello/


2) Correct the paths on the bashrc file in /waves2Foam/bin replacing them with:



export WAVES_GSL_INCLUDE=/home/username/gsl/include
export WAVES_GSL_LIB=/home/username/gsl/lib



*Note: change username according to your case.



The compilation of OceanWaves3D is still giving errors, but for now I don't need it, I will come back to it later...


Regards.
amgh and cfd_saad like this.
JGadelho is offline   Reply With Quote

Old   June 7, 2018, 09:48
Default
  #4
New Member
 
Jorge Gadelho
Join Date: Feb 2013
Posts: 22
Rep Power: 13
JGadelho is on a distinguished road
Quote:
Originally Posted by nibar50 View Post
Dear foamers,

I complied waveFoam and waveDyMFoam in OpenFOAM-v1712 successfully, and the tutorial "waveFlume" can be performed fine. However, when I applied waveDyMFoam, using sixDoFRigidBodyMotion solver, to simulate the response of a simple box, an error occurred as follows:

" Dictionary entry for patch inlet not found
file: /home/mk/OpenFOAM/mk-v1712/run/waveFlume/constant/waveProperties"

Anyone has experiences to this error? Any suggestion is pretty appreciated.

Hello,
I see that you are facing the same issues than me.
I am using waves2foam on ubuntu 18.04 with OF1712.


My first problem appeared when compiling the solver. What did you do to solve this error?

-----------------------------------------

waveDyMFoam.C: In function ‘int main(int, char**)’:
waveDyMFoam.C:173:13: error: ‘relaxing’ was not declared in this scope
relaxing.correct();
^~~~~~~~
waveDyMFoam.C:173:13: note: suggested alternative: ‘rewind’
relaxing.correct();
^~~~~~~~
rewind
In file included from waveDyMFoam.C:112:0:

---------------------------------


After this i skipped the function and then I got the exact same problem has you about the inlet. I changed inletCoeffs to only inlet, then appeared other problems related to waveModel, etc...


I suspect that the IHFoam solver is messing with waves2Foam.
Any ideia?


Thank you.
JGadelho is offline   Reply With Quote

Old   June 7, 2018, 10:22
Default
  #5
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,902
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Hi Jorge,


waves2Foam will not compile with OceanWave3D, so you should solve that problem.


Furthermore, the 'relaxing.correct()' issue probably surface, because you have not included all components, when making waveDyMFoam from interDyMFoam; please follow the guide in the Manual.


Finally, the "Dictionary entry for patch inlet not found" probably comes, because inletCoeffs is not defined in your waveProperties file. Note that IHFoam/olaFoam applies the same naming for boundaries (e.g. waveVelocity) and properties file (waveProperties) as waves2Foam, so better remove the associated libraries, when compiling waveFoam/waveDyMFoam. BUT (!) the formatting of the files differ.



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   November 13, 2018, 04:36
Default
  #6
New Member
 
Eirini Katsidoniotaki
Join Date: Oct 2018
Posts: 3
Rep Power: 7
eirinikatsido is on a distinguished road
Hi! I am trying to install waves2Foam on my Windows 10 PC according the above instructions. I work also with Ubuntu terminal 18.04 and OpenFoam 1712. During the compilation there are some errors. Here find attached the log file. If anyone has a clue please let me know. Thank you!
Attached Files
File Type: txt log.txt (29.6 KB, 31 views)
eirinikatsido is offline   Reply With Quote

Old   March 17, 2019, 18:05
Default
  #7
New Member
 
Join Date: Mar 2019
Posts: 2
Rep Power: 0
emiliouk is on a distinguished road
Hello,
I am trying to install waves2FOAM on an Ubuntu 18.04.02 system.
I re-compiled OpenFOAM-v1812 directly from the source code.
I also recompiled GSL from the source code, and put it directly in Home/gsl as suggested above.



During the compilation I copied the folder solvers1712_PLUS as solvers1812_PLUS

located in:~/OpenFOAM/wepe-v1812/applications/utilities/waves2Foam/applications/solvers


I see that I could generate few executables (faceSetToSTL, fenton4Foam, OcenaWave3D, relaxationZoneLayout and waveFoam) that appear in the run folder/platforms/linux64GccDPInt32Opt, and the following files in the library folder: libOceanWave3D.so, libOceanWave3DBuild.a, libwaves2Foam.so and libwaves2FoamSampling.so.


The program however is not yet installed correctly.

when i try to run one of the examples i see errors like:



/home/wepe/OpenFOAM/OpenFOAM-v1812/bin/tools/RunFunctions: line 225: postProcessWaves2Foam: command not found
/home/wepe/OpenFOAM/OpenFOAM-v1812/bin/tools/RunFunctions: line 225: setWaveField: command not found
/home/wepe/OpenFOAM/OpenFOAM-v1812/bin/tools/RunFunctions: line 225: setWaveParameters: command not found
etc.


I attach the output of the ./Allwmake (when i executed it for the second time).
Can anybody please help me to fix the installation problems I still have?


Thank you very much!!
Kind regards,
Emilio
Attached Files
File Type: txt installLog.txt (21.0 KB, 13 views)
emiliouk is offline   Reply With Quote

Old   March 20, 2019, 15:22
Default
  #8
New Member
 
Join Date: Mar 2019
Posts: 2
Rep Power: 0
emiliouk is on a distinguished road
Quote:
Originally Posted by emiliouk View Post
Hello,
I am trying to install waves2FOAM on an Ubuntu 18.04.02 system.
I re-compiled OpenFOAM-v1812 directly from the source code.
I also recompiled GSL from the source code, and put it directly in Home/gsl as suggested above.



During the compilation I copied the folder solvers1712_PLUS as solvers1812_PLUS

located in:~/OpenFOAM/wepe-v1812/applications/utilities/waves2Foam/applications/solvers


I see that I could generate few executables (faceSetToSTL, fenton4Foam, OcenaWave3D, relaxationZoneLayout and waveFoam) that appear in the run folder/platforms/linux64GccDPInt32Opt, and the following files in the library folder: libOceanWave3D.so, libOceanWave3DBuild.a, libwaves2Foam.so and libwaves2FoamSampling.so.


The program however is not yet installed correctly.

when i try to run one of the examples i see errors like:



/home/wepe/OpenFOAM/OpenFOAM-v1812/bin/tools/RunFunctions: line 225: postProcessWaves2Foam: command not found
/home/wepe/OpenFOAM/OpenFOAM-v1812/bin/tools/RunFunctions: line 225: setWaveField: command not found
/home/wepe/OpenFOAM/OpenFOAM-v1812/bin/tools/RunFunctions: line 225: setWaveParameters: command not found
etc.


I attach the output of the ./Allwmake (when i executed it for the second time).
Can anybody please help me to fix the installation problems I still have?


Thank you very much!!
Kind regards,
Emilio

Just wanted to add the "solution" I found. i downloaded and installed the v1712, from the source code, recompiled in Ubuntu, i didn't even need to change the bashrc file in the bin folder, when i compiled the waves2FOAM i noticed errors regarding missing lgsl, i installed via Synaptic all the packages that appeared when i searched for lgsl, re-tried, and everything this time worked fine and i could run the waveFlume tutorial.


Cheers,
Emilio
emiliouk is offline   Reply With Quote

Old   June 5, 2019, 14:25
Default
  #9
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,902
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Dear all,


Problems compiling waves2Foam on OpenFoam-v1812 should be resolved as of today, where I have committed an update to the source code. There were a multitude of changes needed due to upstream modifications on how to include gravity.


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   June 5, 2019, 19:37
Default
  #10
New Member
 
Join Date: Oct 2017
Location: USA
Posts: 9
Rep Power: 8
MattS is on a distinguished road
Quote:
Originally Posted by ngj View Post
Dear all,


Problems compiling waves2Foam on OpenFoam-v1812 should be resolved as of today, where I have committed an update to the source code. There were a multitude of changes needed due to upstream modifications on how to include gravity.


Kind regards


Niels



I have been trying to get waves2Foam to work with OpenFOAM 6 and since yesterday 1812, so this is very timely. Thank you for all your work on this.


But I am still having trouble. I am installing on a Cray. I compiled all the waves2Foam ThirdParty packages, but have trouble with the libraries.The first error seems to be


PHP Code:
wmkdependcould not open 'foamTime.H' for source file 'fvPatchFields/waveAlpha/waveAlphaFvPatchScalarField.C'No such file or directory 
Any pointers as to where that suggests an error? A path missing somewhere? I have been staring at make files and compiler options for days now and it has been slow going.

Thanks!
S.
MattS is offline   Reply With Quote

Old   June 6, 2019, 13:21
Default
  #11
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,902
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Hi Matt,


I am not compiling/supporting for OpenFoam.org since a long time, so you may face issues. Note that the message is merely a pre-processing warning and not an error. If you are only getting that message, waves2Foam should compile correctly.



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   June 6, 2019, 14:04
Default
  #12
New Member
 
Join Date: Oct 2017
Location: USA
Posts: 9
Rep Power: 8
MattS is on a distinguished road
Hi Niels,


Thank you for the reply!


I was actually just able to compile it successfully! When I checked out the repository yesterday, I may have made a mistake and ended up with the older version.


I checked it out again today, and upon sourcing bin/bashrc, the OF version number v1812 now displayed correctly, and everything worked fine for the waves2Foam compilation.



Thanks so much for your work and your support on here!


Matt
MattS is offline   Reply With Quote

Old   June 6, 2019, 14:10
Default
  #13
New Member
 
Join Date: Oct 2017
Location: USA
Posts: 9
Rep Power: 8
MattS is on a distinguished road
Quote:
Originally Posted by ngj View Post
Hi Matt,


I am not compiling/supporting for OpenFoam.org


Niels



Yes, for now I have given up on trying the compilation of waves2foam for OpenFOAM 6, I don't have the time to get that to work.


But my goal is to compare waves2foam to their new wave model. I have great results with waves2foam for OF 2.1.0.

But I am trying to use the OpenFOAM 6 wave model, because I am interested in the surface temperature field in the presence of waves. There is no easy way to add that (the energy equation, i.e., temperature) to waves2foam, is there?


Matt
MattS is offline   Reply With Quote

Old   June 6, 2019, 16:57
Default
  #14
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,902
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Hi Matt,


It is not something that I have ever looked into, so I cannot reply. I would try to compare their solvers for energy+free surface with the pure interFoam (both in OF6). It might be easier than you think to merge the missing pieces to 1812.



I am glad that you got 1812 working without problems.



Kind regards


Niels
MattS likes this.
__________________
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   September 23, 2019, 08:06
Default
  #15
Member
 
Rasmus Iwersen
Join Date: Jan 2019
Location: Denmark
Posts: 81
Rep Power: 8
Rasmusiwersen is on a distinguished road
Hi all,

I have to join the "i have problems compiling wave2Foam" group unfortunately.

Following is my error message(s):

rli@Asset-155-T490s:/opt/openfoam7/applications/utilities/waves2Foam$ sudo ./Allwmake
[sudo] password for rli:

./bin/bashrc: line 83: [: ==: unary operator expected

=====================================
ENVIRONMENTAL VARIABLES
=====================================
EXTBRANCH=0
FOAMEXTENDPROJECT=0
OFPLUSBRANCH=0
WAVES_APPBIN=/opt/openfoam7/platforms/linux64GccDPInt320pt/bin
WAVES_DIR=/opt/openfoam7/applications/utilities/waves2Foam
WAVES_GSL_INCLUDE=/usr/include/gsl
WAVES_GSL_LIB=/usr/lib
WAVES_LIBBIN=/opt/openfoam7/platforms/linux64GccDPInt320pt/lib
WAVES_POST=/opt/openfoam7/applications/utilities/waves2Foam/applications/utilities/postProcessing
WAVES_PRE=/opt/openfoam7/applications/utilities/waves2Foam/applications/utilities/preProcessing
WAVES_SOL=/opt/openfoam7/applications/utilities/waves2Foam/applications/solvers/solvers0
WAVES_SRC=/opt/openfoam7/applications/utilities/waves2Foam/src
WAVES_TUT=/opt/openfoam7/applications/utilities/waves2Foam/tutorials
WAVES_UTIL=/opt/openfoam7/applications/utilities/waves2Foam/applications/utilities
WAVES_XVERSION=0
WM_PROJECT_VERSION_NUMBER=0

=====================================
COMPILE LAPACK-3.3.1
=====================================

lapack-3.3.1 has already been compiled

=====================================
COMPILE SPARSKIT2
=====================================

SPARSKIT2 has already been compiled

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

Pull changes from the OceanWave3D git repository ...
Saved working directory and index state WIP on master: bb7d99e bug fix for calling OceanWave3D
Already up to date.
On branch master
Your branch is up to date with 'origin/master'.

Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)

modified: common.mk
modified: makefile

no changes added to commit (use "git add" and/or "git commit -a")
Dropped refs/stash@{0} (8a0cb4762c7355d3dd4c1fd0109514e16432885c)

OceanWave3D has already been compiled

/opt/openfoam7/applications/utilities/waves2Foam/ThirdParty
=====================================
COMPILE FENTON4FOAM
=====================================

fenton4Foam has already been compiled

=====================================
COMPILE LIBRARY
=====================================

../bin/bashrc: line 83: [: ==: unary operator expected
./Allwmake: line 43: wmake: command not found
./Allwmake: line 45: wmake: command not found
./Allwmake: line 63: wmake: command not found
./Allwmake: line 67: wmake: command not found

=====================================
COMPILE SOLVERS
=====================================
ls: cannot access '/opt/openfoam7/applications/utilities/waves2Foam/applications/solvers/solvers0/*': No such file or directory

=====================================
COMPILE PRE-PROCESSING
=====================================
./Allwmake: line 142: wmake: command not found

=====================================
COMPILE POST-PROCESSING
=====================================
./Allwmake: line 179: wmake: command not found

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

Nothing available for compilation in the breeder
directory.


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

In addition, from the first attempt to ./Allwmake,
i recieved following error types:

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 | 11.19 MiB/s, done.
Resolving deltas: 100% (3755/3755), done.
rm -f /home/rli/OpenFOAM/rli-7/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build/*.o
rm -f /home/rli/OpenFOAM/rli-7/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build/*.mod
rm -f /home/rli/OpenFOAM/rli-7/platforms/linux64GccDPInt32Opt/bin/OceanWave3D
ls: cannot access '*.mod': No such file or directory
mv: cannot stat '*.mod': No such file or directory
'thirdpartylibs/LIB_VTK_IO/static/lib_vtk_io.mod' -> '/home/rli/OpenFOAM/rli-7/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build/lib_vtk_io.mod'
gfortran -O3 -fPIC -ffpe-trap=invalid,zero,overflow -ffree-line-length-none -fstack-protector-all -c src/variabledefs/precision.f90 -o /home/rli/OpenFOAM/rli-7/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build/precision.o -I/home/rli/OpenFOAM/rli-7/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build
precision.mod
renamed 'precision.mod' -> '/home/rli/OpenFOAM/rli-7/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build/precision.mod'
'thirdpartylibs/LIB_VTK_IO/static/lib_vtk_io.mod' -> '/home/rli/OpenFOAM/rli-7/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build/lib_vtk_io.mod'
gfortran -O3 -fPIC -ffpe-trap=invalid,zero,overflow -ffree-line-length-none -fstack-protector-all -c src/variabledefs/constants.f90 -o /home/rli/OpenFOAM/rli-7/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build/constants.o -I/home/rli/OpenFOAM/rli-7/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build
constants.mod

Tried installing the GNU library as previously described however with no luck.
Any suggestions?

Last edited by Rasmusiwersen; September 23, 2019 at 10:25.
Rasmusiwersen is offline   Reply With Quote

Old   September 24, 2019, 03:42
Default
  #16
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,902
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Hi Rasmus,

You need to source OpenFoam before compiling.

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   September 24, 2019, 03:49
Default
  #17
Member
 
Rasmus Iwersen
Join Date: Jan 2019
Location: Denmark
Posts: 81
Rep Power: 8
Rasmusiwersen is on a distinguished road
Quote:
Originally Posted by ngj View Post
Hi Rasmus,

You need to source OpenFoam before compiling.

Kind regards

Niels
Hi Niels,

Thank you so much for replying and your help in the CFD-forum.

I have tried sourcing OpenFOAM now, and still getting the exact same error as before.

renamed 'error_function.mod' -> '/home/rli/OpenFOAM/rli-7/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build/error_function.mod'
'thirdpartylibs/LIB_VTK_IO/static/lib_vtk_io.mod' -> '/home/rli/OpenFOAM/rli-7/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build/lib_vtk_io.mod'
gfortran -O3 -fPIC -ffpe-trap=invalid,zero,overflow -ffree-line-length-none -fstack-protector-all -c src/utilities/DetectBreaking.f90 -o /home/rli/OpenFOAM/rli-7/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build/DetectBreaking.o -I/home/rli/OpenFOAM/rli-7/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build
ls: cannot access '*.mod': No such file or directory
mv: cannot stat '*.mod': No such file or directory

Up until this point, the compiler works fine.

For the record, openfoam7 is installed in the /opt directory. I've sourced openfoam according to this link: https://openfoam.org/download/source...g-environment/

Last edited by Rasmusiwersen; September 24, 2019 at 07:37.
Rasmusiwersen is offline   Reply With Quote

Old   September 24, 2019, 06:40
Default
  #18
rku
New Member
 
Join Date: Feb 2018
Posts: 17
Rep Power: 8
rku is on a distinguished road
Hi,

I also seem to be having a problem while compiling waves2foam on ubuntu... I have installed all the third party dependencies as stated in the manual (gsl, gfortran, git and svn). I am working with Openfoam v7.

The error I get is in compilation of oceanwave3d (everything before that works well).

Code:
=====================================
    COMPILE OCEANWAVE3D
=====================================

Pull changes from the OceanWave3D git repository ...
Saved working directory and index state WIP on master: bb7d99e bug fix for calling OceanWave3D
Already up to date.
On branch master
Your branch is up to date with 'origin/master'.

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

	modified:   common.mk
	modified:   makefile

no changes added to commit (use "git add" and/or "git commit -a")
Dropped refs/stash@{0} (551457a02c9fdb388428e31cfaaea64e7e99af55)

Set the environmental variables for waves2Foam
Exiting compilation process


Problems with the compilation of the third party dependencies
Exiting
I have set the Environmental variables of waves2foam in the bin/bashrc file already though:

Code:
### USER DEFINED ENVIRONMENTAL VARIABLES
export WAVES_DIR=/home/rku/OpenFOAM/rku-7/applications/utilities/waves2Foam
export WAVES_APPBIN=$FOAM_USER_APPBIN
export WAVES_LIBBIN=$FOAM_USER_LIBBIN

export WAVES_GSL_INCLUDE=/home/rku/gsl/include
export WAVES_GSL_LIB=/home/rku/gsl/lib
Is there something else I should be looking at?

I've been trying to install for weeks now but end up getting stuck here. Please someone help.

Thanks,
Rohit.
rku is offline   Reply With Quote

Old   September 24, 2019, 13:14
Default
  #19
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,902
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Hi Rasmus and Rohit,

Note that header of thread was 1712, but you are trying to install with OF7. This version is not supported for waves2Foam. You should be able to install on the ESI versions (up to 1812, I haven't tried 1906).

Kind regards

Niels
rku likes this.
__________________
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   October 15, 2019, 06:50
Default
  #20
rku
New Member
 
Join Date: Feb 2018
Posts: 17
Rep Power: 8
rku is on a distinguished road
Hi Niels,

Thanks for that.. Indeed, it was my mistake.. Although, I tried installation with the OpenFOAM v1812 as you suggested, and the installation of waves2foam does start, but I get an error. I have attached the log file here for your reference. Can you please let me know if there is something else that is going wrong there.

Thanks again for all your help!

Edit: Solved the problem - connection to oceanwave3d repo got interrupted for some reason. Reran it again and it works.. Waves2Foam was installed correctly and ran the tutorial as well.
Attached Files
File Type: zip InstallLog.zip (37.2 KB, 23 views)

Last edited by rku; October 17, 2019 at 05:38.
rku 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
Map of the OpenFOAM Forum - Understanding where to post your questions! wyldckat OpenFOAM 10 September 2, 2021 05:29
[OpenFOAM.org] icoFoam: Command not found in OpenFOAM 3.0.1 installation on Ubuntu 16.10 febriyan91 OpenFOAM Installation 2 July 27, 2020 00:23
[OpenFOAM.org] what happens for OpenFOAM related codes when upgrading ubuntu babakflame OpenFOAM Installation 4 December 31, 2014 09:40
Installing OpenFOAM 2.2.0 on Ubuntu 12.10 i686 AHutchison OpenFOAM Installation 6 June 4, 2013 12:11
OpenFOAM vs Ubuntu 10.10 64 bit vkrastev OpenFOAM Installation 12 April 23, 2011 10:14


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