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/)
-   -   [swak4Foam] installation issues with foamextend3.2 (https://www.cfd-online.com/Forums/openfoam-community-contributions/182906-installation-issues-foamextend3-2-a.html)

srivatta January 21, 2017 18:39

installation issues with foamextend3.2
 
Hello,
I am trying to install swak4foam with foamextend 3.2 using the instructions on this page .

https://openfoamwiki.net/index.php/I...end_3.0_to_3.2

When I run Allwmake, this is what I get in the install log

Previously compiled for OpenFOAM 3.2

/home/ragunath/foam/ragunath-3.2/swak4Foam/privateRequirements/bin existing. Prepending to PATH-variable (private version of Bison)

No file 'swakConfiguration'. Python etc won't work. See README for details
Try 'ln -s swakConfiguration.automatic swakConfiguration' for automatic configuration. BEWARE: this does not work on some systems
Checking swak4Foam-version and generating file
abort: no repository found in '/home/ragunath/foam/ragunath-3.2/swak4Foam' (.hg not found)!
Swak version is 0.4.0
Bison is version 2.7.12-4996
Flex is version 2.5.35 (Minor version: 35)
OpenFOAM-version: Major 3 Minor 2 Patch 0 (-1 == x / 0) Fork: extend
No change to swak4FoamParsers/foamVersion4swak.H

"a lot of up to date lines that I have omitted"



SWAK_PYTHON_INCLUDE not defined .... no Python-Integration. Most people are fine without it

"Again a lot of up to date lines"

If you have your own function-plugins you can specify them using the SWAK_USER_PLUGINS environment variable and they would be compiled now. If you don't know what this means: don't bother. You propably don't need it


SWAK_PYTHON_INCLUDE not defined .... no Python-Integration. Utility funkyPythonPostproc not compiled

Issues start from here, I suppose!

-lfiniteVolume -lfiniteArea -lmeshTools -L/home/ragunath/foam/ragunath-3.2/lib/linux64GccDPOpt -lswakFiniteArea -lswak4FoamParsers -lswakFunctionObjects -lfoam -liberty -ldl -lrt -lm -o /home/ragunath/foam/ragunath-3.2/applications/bin/linux64GccDPOpt/funkySetAreaFields
/usr/bin/ld: cannot find -lfoam
collect2: error: ld returned 1 exit status
make[1]: *** [/home/ragunath/foam/ragunath-3.2/applications/bin/linux64GccDPOpt/calcNonUniformOffsetsForMapped] Error 1
make: *** [calcNonUniformOffsetsForMapped] Error 2
/usr/bin/ld: cannot find -lfoam
collect2: error: ld returned 1 exit status
make[1]: *** [/home/ragunath/foam/ragunath-3.2/applications/bin/linux64GccDPOpt/fieldReport] Error 1
make: *** [fieldReport] Error 2
/usr/bin/ld: cannot find -lfoam
collect2: error: ld returned 1 exit status
make[1]: *** [/home/ragunath/foam/ragunath-3.2/applications/bin/linux64GccDPOpt/funkyDoCalc] Error 1
make: *** [funkyDoCalc] Error 2
/usr/bin/ld: cannot find -lfoam
collect2: error: ld returned 1 exit status
make[1]: *** [/home/ragunath/foam/ragunath-3.2/applications/bin/linux64GccDPOpt/funkySetBoundaryField] Error 1
make: *** [funkySetBoundaryField] Error 2
/usr/bin/ld: cannot find -lfoam
collect2: error: ld returned 1 exit status
make[1]: *** [/home/ragunath/foam/ragunath-3.2/applications/bin/linux64GccDPOpt/funkyWarpMesh] Error 1
make: *** [funkyWarpMesh] Error 2
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-200 -I/home/ragunath/foam/foam-extend-3.2/src/cfdTools/lnInclude -DFOAM_DEV -I/home/ragunath/foam/foam-extend-3.2/src/cfdTools/general/lnInclude -I/home/ragunath/foam/foam-extend-3.2/src/finiteVolume/lnInclude -I/home/ragunath/foam/foam-extend-3.2/src/sampling/lnInclude -I/home/ragunath/foam/foam-extend-3.2/src/meshTools/lnInclude -I/home/ragunath/foam/foam-extend-3.2/src/fvOptions/lnInclude -I/home/ragunath/foam/foam-extend-3.2/src/dynamicFvMesh/lnInclude -I/home/ragunath/foam/foam-extend-3.2/src/dynamicMesh/dynamicFvMesh/lnInclude -I../../Libraries/swak4FoamParsers/lnInclude/ -IlnInclude -I. -I/home/ragunath/foam/foam-extend-3.2/src/foam/lnInclude -I/home/ragunath/foam/foam-extend-3.2/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/replayTransientBC.o -L/home/ragunath/foam/foam-extend-3.2/lib/linux64GccDPOpt \
-lfiniteVolume -ldynamicFvMesh -lsampling -ltopoChangerFvMesh -ldynamicMesh -lmeshTools -lfoam -liberty -ldl -lrt -lm -o /home/ragunath/foam/ragunath-3.2/applications/bin/linux64GccDPOpt/replayTransientBC
/usr/bin/ld: cannot find -lfoam
collect2: error: ld returned 1 exit status
make[1]: *** [/home/ragunath/foam/ragunath-3.2/applications/bin/linux64GccDPOpt/funkySetAreaFields] Error 1
/usr/bin/ld: cannot find -lfoam
make: *** [funkySetAreaFields] Error 2
/usr/bin/ld: cannot find -lfoam
collect2: error: ld returned 1 exit status
make[1]: *** [/home/ragunath/foam/ragunath-3.2/applications/bin/linux64GccDPOpt/funkySetFields] Error 1
collect2: error: ld returned 1 exit status
make: *** [funkySetFields] Error 2
make[1]: *** [/home/ragunath/foam/ragunath-3.2/applications/bin/linux64GccDPOpt/funkySetLagrangianField] Error 1
make: *** [funkySetLagrangianField] Error 2
/usr/bin/ld: cannot find -lfoam
collect2: error: ld returned 1 exit status
make[1]: *** [/home/ragunath/foam/ragunath-3.2/applications/bin/linux64GccDPOpt/replayTransientBC] Error 1
make: *** [replayTransientBC] Error 2
make: Target `application' not remade because of errors.


If you want to use swakCoded-function object or compile software based on swak set the environment variable SWAK4FOAM_SRC to /home/ragunath/foam/ragunath-3.2/swak4Foam/Libraries (most people will be fine without setting that variable)

Any help is greatly appreciated.

Thank you,
Sri

khedar January 22, 2017 11:40

Quote:

Previously compiled for OpenFOAM 3.2
Are you updating from previous version? I would use wmake clean or ./Allwclean before running ./Allrun
or best download a fresh copy of swakfoam and then compile.

srivatta January 22, 2017 12:51

I tried everything possible.. wclean, wmake etc... Just would not work. On the other hand, I installed foam-extend 4.0, used the development version of swak4foam and that seems to work.

I don't remember having problems with swak4foam with earlier versions of OF... 1.6ext, 2.0 etc...Problems started with 2.2.2 I believe.


All times are GMT -4. The time now is 16:04.