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

[waves2Foam] Installing waves2FOAM onto OpenFOAM 2.4.0

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 31, 2017, 22:01
Default Installing waves2FOAM onto OpenFOAM 2.4.0
  #1
Member
 
Zhifang Hu
Join Date: Sep 2015
Location: Brisbane
Posts: 54
Rep Power: 10
ce73stargazer is on a distinguished road
Hi there

I tried to install waves2FOAM onto OpenFOAM 2.4.0, but It does not work, I am not sure why

wave2FOAM checked out revision is 2107

Here is some of the outputs

Code:
=====================================
    COMPILE SOLVERS
=====================================
Making dependency list for source file waveFoam.C
SOURCE=waveFoam.C ;  g++-4.7 -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -I/home/zhifang/OpenFOAM/OpenFOAM-2.4.0/src/transportModels/twoPhaseMixture/lnInclude -I/home/zhifang/OpenFOAM/OpenFOAM-2.4.0/src/transportModels -I/home/zhifang/OpenFOAM/OpenFOAM-2.4.0/src/transportModels/incompressible/lnInclude -I/home/zhifang/OpenFOAM/OpenFOAM-2.4.0/src/transportModels/interfaceProperties/lnInclude -I/home/zhifang/OpenFOAM/OpenFOAM-2.4.0/src/turbulenceModels/incompressible/turbulenceModel -I/home/zhifang/OpenFOAM/OpenFOAM-2.4.0/src/transportModels/immiscibleIncompressibleTwoPhaseMixture/lnInclude -I/home/zhifang/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude -I/home/zhifang/OpenFOAM/OpenFOAM-2.4.0/src/fvOptions/lnInclude -I/home/zhifang/OpenFOAM/OpenFOAM-2.4.0/src/meshTools/lnInclude -I/home/zhifang/OpenFOAM/OpenFOAM-2.4.0/src/sampling/lnInclude -DOFVERSION=240 -DEXTBRANCH=0 -DXVERSION=0 -DOFPLUSBRANCH=0 -I/home/zhifang/OpenFOAM/zhifang-2.4.0/applications/utilities/waves2Foam/src/waves2Foam/lnInclude -I/home/zhifang/OpenFOAM/zhifang-2.4.0/applications/utilities/waves2Foam/src/waves2FoamSampling/lnInclude -I/usr/include -IlnInclude -I. -I/home/zhifang/OpenFOAM/OpenFOAM-2.4.0/src/OpenFOAM/lnInclude -I/home/zhifang/OpenFOAM/OpenFOAM-2.4.0/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64Gcc47DPOpt/waveFoam.o
In file included from waveFoam.C:70:0:
/home/zhifang/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/readTimeControls.H: In function ‘int main(int, char**)’:
/home/zhifang/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/readTimeControls.H:38:8: warning: unused variable ‘maxDeltaT’ [-Wunused-variable]
g++-4.7 -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -I/home/zhifang/OpenFOAM/OpenFOAM-2.4.0/src/transportModels/twoPhaseMixture/lnInclude -I/home/zhifang/OpenFOAM/OpenFOAM-2.4.0/src/transportModels -I/home/zhifang/OpenFOAM/OpenFOAM-2.4.0/src/transportModels/incompressible/lnInclude -I/home/zhifang/OpenFOAM/OpenFOAM-2.4.0/src/transportModels/interfaceProperties/lnInclude -I/home/zhifang/OpenFOAM/OpenFOAM-2.4.0/src/turbulenceModels/incompressible/turbulenceModel -I/home/zhifang/OpenFOAM/OpenFOAM-2.4.0/src/transportModels/immiscibleIncompressibleTwoPhaseMixture/lnInclude -I/home/zhifang/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude -I/home/zhifang/OpenFOAM/OpenFOAM-2.4.0/src/fvOptions/lnInclude -I/home/zhifang/OpenFOAM/OpenFOAM-2.4.0/src/meshTools/lnInclude -I/home/zhifang/OpenFOAM/OpenFOAM-2.4.0/src/sampling/lnInclude -DOFVERSION=240 -DEXTBRANCH=0 -DXVERSION=0 -DOFPLUSBRANCH=0 -I/home/zhifang/OpenFOAM/zhifang-2.4.0/applications/utilities/waves2Foam/src/waves2Foam/lnInclude -I/home/zhifang/OpenFOAM/zhifang-2.4.0/applications/utilities/waves2Foam/src/waves2FoamSampling/lnInclude -I/usr/include -IlnInclude -I. -I/home/zhifang/OpenFOAM/OpenFOAM-2.4.0/src/OpenFOAM/lnInclude -I/home/zhifang/OpenFOAM/OpenFOAM-2.4.0/src/OSspecific/POSIX/lnInclude   -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64Gcc47DPOpt/waveFoam.o -L/home/zhifang/OpenFOAM/OpenFOAM-2.4.0/platforms/linux64Gcc47DPOpt/lib \
     -limmiscibleIncompressibleTwoPhaseMixture -lincompressibleTurbulenceModel -lincompressibleRASModels -lincompressibleLESModels -lfiniteVolume -lfvOptions -lmeshTools -lsampling -L/home/zhifang/OpenFOAM/zhifang-2.4.0/platforms/linux64Gcc47DPOpt/lib -lwaves2Foam -lwaves2FoamSampling -L/usr/lib64 -lgsl -lgslcblas -lOpenFOAM -ldl   -lm -o /home/zhifang/OpenFOAM/zhifang-2.4.0/platforms/linux64Gcc47DPOpt/bin/waveFoam
/usr/bin/ld: cannot find -lwaves2Foam
/usr/bin/ld: cannot find -lwaves2FoamSampling
collect2: error: ld returned 1 exit status
/home/zhifang/OpenFOAM/OpenFOAM-2.4.0/wmake/Makefile:149: recipe for target '/home/zhifang/OpenFOAM/zhifang-2.4.0/platforms/linux64Gcc47DPOpt/bin/waveFoam' failed
make: *** [/home/zhifang/OpenFOAM/zhifang-2.4.0/platforms/linux64Gcc47DPOpt/bin/waveFoam] Error 1

=====================================
    COMPILE POST-PROCESSING
=====================================
Making dependency list for source file surfaceElevation.C
Making dependency list for source file postProcessWaves2Foam.C
could not open file foamTime.H for source file postProcessWaves2Foam.C due to No such file or directory
SOURCE=surfaceElevation.C ;  g++-4.7 -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -I/home/zhifang/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude -I/home/zhifang/OpenFOAM/OpenFOAM-2.4.0/src/meshTools/lnInclude -I/home/zhifang/OpenFOAM/OpenFOAM-2.4.0/src/sampling/lnInclude -I/home/zhifang/OpenFOAM/OpenFOAM-2.4.0/src/lagrangian/basic/lnInclude -I/home/zhifang/OpenFOAM/OpenFOAM-2.4.0/src/fileFormats/lnInclude -DOFVERSION=240 -DEXTBRANCH=0 -I/home/zhifang/OpenFOAM/zhifang-2.4.0/applications/utilities/waves2Foam/src/waves2Foam/lnInclude -I/home/zhifang/OpenFOAM/zhifang-2.4.0/applications/utilities/waves2Foam/src/waves2FoamSampling/lnInclude -I/usr/include -IlnInclude -I. -I/home/zhifang/OpenFOAM/OpenFOAM-2.4.0/src/OpenFOAM/lnInclude -I/home/zhifang/OpenFOAM/OpenFOAM-2.4.0/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64Gcc47DPOpt/surfaceElevation.o
SOURCE=postProcessWaves2Foam.C ;  g++-4.7 -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -I/home/zhifang/OpenFOAM/OpenFOAM-2.4.0/src/OpenFOAM/lnInclude -I/home/zhifang/OpenFOAM/OpenFOAM-2.4.0/src/meshTools/lnInclude -I/home/zhifang/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude -I/home/zhifang/OpenFOAM/zhifang-2.4.0/applications/utilities/waves2Foam/src/waves2Foam/src/lnInclude -I/home/zhifang/OpenFOAM/zhifang-2.4.0/applications/utilities/waves2Foam/src/waves2FoamProcessing/lnInclude -I/usr/include -DOFVERSION=240 -DEXTBRANCH=0 -IlnInclude -I. -I/home/zhifang/OpenFOAM/OpenFOAM-2.4.0/src/OpenFOAM/lnInclude -I/home/zhifang/OpenFOAM/OpenFOAM-2.4.0/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64Gcc47DPOpt/postProcessWaves2Foam.o
g++-4.7 -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -I/home/zhifang/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude -I/home/zhifang/OpenFOAM/OpenFOAM-2.4.0/src/meshTools/lnInclude -I/home/zhifang/OpenFOAM/OpenFOAM-2.4.0/src/sampling/lnInclude -I/home/zhifang/OpenFOAM/OpenFOAM-2.4.0/src/lagrangian/basic/lnInclude -I/home/zhifang/OpenFOAM/OpenFOAM-2.4.0/src/fileFormats/lnInclude -DOFVERSION=240 -DEXTBRANCH=0 -I/home/zhifang/OpenFOAM/zhifang-2.4.0/applications/utilities/waves2Foam/src/waves2Foam/lnInclude -I/home/zhifang/OpenFOAM/zhifang-2.4.0/applications/utilities/waves2Foam/src/waves2FoamSampling/lnInclude -I/usr/include -IlnInclude -I. -I/home/zhifang/OpenFOAM/OpenFOAM-2.4.0/src/OpenFOAM/lnInclude -I/home/zhifang/OpenFOAM/OpenFOAM-2.4.0/src/OSspecific/POSIX/lnInclude   -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64Gcc47DPOpt/surfaceElevation.o -L/home/zhifang/OpenFOAM/OpenFOAM-2.4.0/platforms/linux64Gcc47DPOpt/lib \
     -lfiniteVolume -lmeshTools -lsampling -lsurfMesh -llagrangian -lfileFormats -L/home/zhifang/OpenFOAM/zhifang-2.4.0/platforms/linux64Gcc47DPOpt/lib -lwaves2Foam -lwaves2FoamSampling -L/usr/lib64 -lgsl -lgslcblas -lOpenFOAM -ldl   -lm -o /home/zhifang/OpenFOAM/zhifang-2.4.0/platforms/linux64Gcc47DPOpt/bin/surfaceElevation
/usr/bin/ld: cannot find -lwaves2Foam
/usr/bin/ld: cannot find -lwaves2FoamSampling
collect2: error: ld returned 1 exit status
/home/zhifang/OpenFOAM/OpenFOAM-2.4.0/wmake/Makefile:149: recipe for target '/home/zhifang/OpenFOAM/zhifang-2.4.0/platforms/linux64Gcc47DPOpt/bin/surfaceElevation' failed
make[1]: *** [/home/zhifang/OpenFOAM/zhifang-2.4.0/platforms/linux64Gcc47DPOpt/bin/surfaceElevation] Error 1
/home/zhifang/OpenFOAM/OpenFOAM-2.4.0/wmake/MakefileApps:39: recipe for target 'surfaceElevation' failed
make: *** [surfaceElevation] Error 2
g++-4.7 -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -I/home/zhifang/OpenFOAM/OpenFOAM-2.4.0/src/OpenFOAM/lnInclude -I/home/zhifang/OpenFOAM/OpenFOAM-2.4.0/src/meshTools/lnInclude -I/home/zhifang/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude -I/home/zhifang/OpenFOAM/zhifang-2.4.0/applications/utilities/waves2Foam/src/waves2Foam/src/lnInclude -I/home/zhifang/OpenFOAM/zhifang-2.4.0/applications/utilities/waves2Foam/src/waves2FoamProcessing/lnInclude -I/usr/include -DOFVERSION=240 -DEXTBRANCH=0 -IlnInclude -I. -I/home/zhifang/OpenFOAM/OpenFOAM-2.4.0/src/OpenFOAM/lnInclude -I/home/zhifang/OpenFOAM/OpenFOAM-2.4.0/src/OSspecific/POSIX/lnInclude   -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64Gcc47DPOpt/postProcessWaves2Foam.o -L/home/zhifang/OpenFOAM/OpenFOAM-2.4.0/platforms/linux64Gcc47DPOpt/lib \
     -lOpenFOAM -lfiniteVolume -L/home/zhifang/OpenFOAM/zhifang-2.4.0/platforms/linux64Gcc47DPOpt/lib -lwaves2Foam -lwaves2FoamProcessing -L/usr/lib64 -lgsl -lgslcblas -lOpenFOAM -ldl   -lm -o /home/zhifang/OpenFOAM/zhifang-2.4.0/platforms/linux64Gcc47DPOpt/bin/postProcessWaves2Foam
/usr/bin/ld: cannot find -lwaves2Foam
/usr/bin/ld: cannot find -lwaves2FoamProcessing
collect2: error: ld returned 1 exit status
/home/zhifang/OpenFOAM/OpenFOAM-2.4.0/wmake/Makefile:149: recipe for target '/home/zhifang/OpenFOAM/zhifang-2.4.0/platforms/linux64Gcc47DPOpt/bin/postProcessWaves2Foam' failed
make[1]: *** [/home/zhifang/OpenFOAM/zhifang-2.4.0/platforms/linux64Gcc47DPOpt/bin/postProcessWaves2Foam] Error 1
/home/zhifang/OpenFOAM/OpenFOAM-2.4.0/wmake/MakefileApps:39: recipe for target 'postProcessWaves2Foam' failed
make: *** [postProcessWaves2Foam] Error 2
make: Target 'application' not remade because of errors.

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

Nothing available for compilation in the breeder
directory.


=====================================
    COMPILATION DONE
=====================================
Anyone has any suggestions? I am using Ubuntu 16.04 LTS btw
Thanks in Advance
ce73stargazer is offline   Reply With Quote

Old   June 3, 2017, 05:16
Default
  #2
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,901
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Hi Zhifang,

The most likely explanation is that you are missing one or more dependencies, e.g. gfortran. In any case, compilation of solvers fail due to failure to compile libraries. The latter part is not shown in your message.

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

Reply


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
[Other] How to install OpenFOAM under Windows? lzgwhy OpenFOAM Installation 19 October 7, 2023 04:27
[Other] Basic questions about OpenFOAM cluster running and installing Fauster OpenFOAM Installation 0 May 25, 2018 15:00
OpenFOAM v3.0+ ?? SBusch OpenFOAM 22 December 26, 2016 14:24
[OpenFOAM.org] Problem in installing OpenFOAM 2.3.0 !!! omid20110 OpenFOAM Installation 6 August 1, 2016 11:20
[OpenFOAM.org] Problems installing OpenFOAM 2.3.0 on Ubuntu 12.04 arieljeds OpenFOAM Installation 6 August 19, 2015 07:39


All times are GMT -4. The time now is 11:52.