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

[swak4Foam] swak4Foam compilation can't find -lOpenFOAM

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 4, 2015, 05:46
Default swak4Foam compilation can't find -lOpenFOAM
  #1
New Member
 
Bob Roos
Join Date: Aug 2015
Posts: 3
Rep Power: 6
BobR is on a distinguished road
I'm trying to compile swak4Foam on OpenFoam 2.3 but after using ./Allwmake twice I get this output:

Code:
Previously compiled for OpenFOAM 2.3.0

...

No file 'swakConfiguration'. Python etc won't work. See README for details
Checking swak4Foam-version and generating file
Swak version is 0.3.1
Bison is version 2.7.12-4996
Flex is version 2.5.35 (Minor version: 35)
OpenFOAM-version: Major 2 Minor 3 Patch 0 (-1 == x / 0)
No change to swak4FoamParsers/foamVersion4swak.H
'/home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/lib/libswak4FoamParsers.so' is up to date.
'/home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/lib/libswakLagrangianParser.so' is up to date.
'/home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/lib/libgroovyBC.so' is up to date.
'/home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/lib/libswakFunctionObjects.so' is up to date.
'/home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/lib/libsimpleFunctionObjects.so' is up to date.
'/home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/lib/libsimpleLagrangianFunctionObjects.so' is up to date.
'/home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/lib/libsimpleSearchableSurfaces.so' is up to date.
'/home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/lib/libsimpleSwakFunctionObjects.so' is up to date.
'/home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/lib/libswakTopoSources.so' is up to date.
'/home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/lib/libswakSourceFields.so' is up to date.
Compiling swakFvOptions
'/home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/lib/libswakFvOptions.so' is up to date.
'/home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/lib/libgroovyStandardBCs.so' is up to date.

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

'/home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/lib/libswakMeshQualityFunctionPlugin.so' is up to date.
'/home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/lib/libswakLocalCalculationsFunctionPlugin.so' is up to date.
'/home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/lib/libswakRandomFunctionPlugin.so' is up to date.
'/home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/lib/libswakFvcSchemesFunctionPlugin.so' is up to date.
'/home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/lib/libswakThermoTurbFunctionPlugin.so' is up to date.
'/home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/lib/libswakTransportTurbFunctionPlugin.so' is up to date.
'/home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/lib/libswakSurfacesAndSetsFunctionPlugin.so' is up to date.
'/home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/lib/libswakLagrangianCloudSourcesFunctionPlugin.so' is up to date.
'/home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/lib/libswakVelocityFunctionPlugin.so' is up to date.
'/home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/lib/libswakChemistryModelFunctionPlugin.so' is up to date.
'/home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/lib/libswakRadiationModelFunctionPlugin.so' is up to date.
'/home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/lib/libswakCoalCloudAdaptor.so' is up to date.

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

make[1]: Entering directory `/home/navier01a/broos/OpenFOAM/broos-2.3.0/userUtilities/swak4Foam/Utilities/calcNonUniformOffsetsForMapped'
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -I/home/navier01a/broos/OpenFOAM/OpenFOAM-2.3.0/src/cfdTools/lnInclude -I/home/navier01a/broos/OpenFOAM/OpenFOAM-2.3.0/src/cfdTools/general/lnInclude      -I/home/navier01a/broos/OpenFOAM/OpenFOAM-2.3.0/src/finiteVolume/lnInclude      -I/home/navier01a/broos/OpenFOAM/OpenFOAM-2.3.0/src/meshTools/lnInclude            -I../../Libraries/swak4FoamParsers/lnInclude/ -IlnInclude -I. -I/home/navier01a/broos/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/home/navier01a/broos/OpenFOAM/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude   -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64Gcc49DPOpt/calcNonUniformOffsetsForMapped.o -L/home/navier01a/broos/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64Gcc49DPOpt/lib \
         -lfiniteVolume -lmeshTools -lOpenFOAM -ldl   -lm -o /home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/bin/calcNonUniformOffsetsForMapped
/usr/bin/ld: cannot find -lOpenFOAM
collect2: error: ld returned 1 exit status
make[1]: *** [/home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/bin/calcNonUniformOffsetsForMapped] Error 1
make[1]: Leaving directory `/home/navier01a/broos/OpenFOAM/broos-2.3.0/userUtilities/swak4Foam/Utilities/calcNonUniformOffsetsForMapped'
make: *** [calcNonUniformOffsetsForMapped] Error 2
make[1]: Entering directory `/home/navier01a/broos/OpenFOAM/broos-2.3.0/userUtilities/swak4Foam/Utilities/fieldReport'
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -IMake/linux64Gcc49DPOpt  -I/home/navier01a/broos/OpenFOAM/OpenFOAM-2.3.0/src/finiteVolume/lnInclude -I/home/navier01a/broos/OpenFOAM/OpenFOAM-2.3.0/src/sampling/lnInclude -I/home/navier01a/broos/OpenFOAM/OpenFOAM-2.3.0/src/meshTools/lnInclude -I../../Libraries/simpleFunctionObjects/lnInclude/ -I../../Libraries/swak4FoamParsers/lnInclude/  -IlnInclude -I. -I/home/navier01a/broos/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/home/navier01a/broos/OpenFOAM/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude   -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64Gcc49DPOpt/fieldReport.o -L/home/navier01a/broos/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64Gcc49DPOpt/lib \
         -lfiniteVolume     -lmeshTools     -L/home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/lib     -lswak4FoamParsers -lOpenFOAM -ldl   -lm -o /home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/bin/fieldReport
/usr/bin/ld: cannot find -lOpenFOAM
collect2: error: ld returned 1 exit status
make[1]: *** [/home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/bin/fieldReport] Error 1
make[1]: Leaving directory `/home/navier01a/broos/OpenFOAM/broos-2.3.0/userUtilities/swak4Foam/Utilities/fieldReport'
make: *** [fieldReport] Error 2
make[1]: Entering directory `/home/navier01a/broos/OpenFOAM/broos-2.3.0/userUtilities/swak4Foam/Utilities/funkyDoCalc'
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -IMake/linux64Gcc49DPOpt       -I/home/navier01a/broos/OpenFOAM/OpenFOAM-2.3.0/src/finiteVolume/lnInclude -I/home/navier01a/broos/OpenFOAM/OpenFOAM-2.3.0/src/sampling/lnInclude -I/home/navier01a/broos/OpenFOAM/OpenFOAM-2.3.0/src/meshTools/lnInclude -I../../Libraries/simpleFunctionObjects/lnInclude/ -I../../Libraries/swak4FoamParsers/lnInclude/  -IlnInclude -I. -I/home/navier01a/broos/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/home/navier01a/broos/OpenFOAM/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude   -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64Gcc49DPOpt/funkyDoCalc.o -L/home/navier01a/broos/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64Gcc49DPOpt/lib \
         -lfiniteVolume     -lmeshTools     -L/home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/lib     -lswak4FoamParsers -lOpenFOAM -ldl   -lm -o /home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/bin/funkyDoCalc
/usr/bin/ld: cannot find -lOpenFOAM
collect2: error: ld returned 1 exit status
make[1]: *** [/home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/bin/funkyDoCalc] Error 1
make[1]: Leaving directory `/home/navier01a/broos/OpenFOAM/broos-2.3.0/userUtilities/swak4Foam/Utilities/funkyDoCalc'
make: *** [funkyDoCalc] Error 2

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

make[1]: Entering directory `/home/navier01a/broos/OpenFOAM/broos-2.3.0/userUtilities/swak4Foam/Utilities/funkySetBoundaryField'
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -IMake/linux64Gcc49DPOpt       -I/home/navier01a/broos/OpenFOAM/OpenFOAM-2.3.0/src/finiteVolume/lnInclude -I/home/navier01a/broos/OpenFOAM/OpenFOAM-2.3.0/src/sampling/lnInclude -I/home/navier01a/broos/OpenFOAM/OpenFOAM-2.3.0/src/meshTools/lnInclude -I../../Libraries/swak4FoamParsers/lnInclude/ -IlnInclude -I. -I/home/navier01a/broos/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/home/navier01a/broos/OpenFOAM/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude   -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64Gcc49DPOpt/funkySetBoundaryField.o -L/home/navier01a/broos/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64Gcc49DPOpt/lib \
         -lfiniteVolume     -lmeshTools     -L/home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/lib     -lswak4FoamParsers -lOpenFOAM -ldl   -lm -o /home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/bin/funkySetBoundaryField
/usr/bin/ld: cannot find -lOpenFOAM
collect2: error: ld returned 1 exit status
make[1]: *** [/home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/bin/funkySetBoundaryField] Error 1
make[1]: Leaving directory `/home/navier01a/broos/OpenFOAM/broos-2.3.0/userUtilities/swak4Foam/Utilities/funkySetBoundaryField'
make: *** [funkySetBoundaryField] Error 2
make[1]: Entering directory `/home/navier01a/broos/OpenFOAM/broos-2.3.0/userUtilities/swak4Foam/Utilities/funkySetFields'
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -IMake/linux64Gcc49DPOpt       -I/home/navier01a/broos/OpenFOAM/OpenFOAM-2.3.0/src/finiteVolume/lnInclude -I/home/navier01a/broos/OpenFOAM/OpenFOAM-2.3.0/src/sampling/lnInclude -I/home/navier01a/broos/OpenFOAM/OpenFOAM-2.3.0/src/meshTools/lnInclude -I../../Libraries/swak4FoamParsers/lnInclude/ -IlnInclude -I. -I/home/navier01a/broos/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/home/navier01a/broos/OpenFOAM/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude   -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64Gcc49DPOpt/funkySetFields.o -L/home/navier01a/broos/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64Gcc49DPOpt/lib \
         -lfiniteVolume     -lmeshTools     -lsampling     -L/home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/lib     -lswak4FoamParsers -lOpenFOAM -ldl   -lm -o /home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/bin/funkySetFields
/usr/bin/ld: cannot find -lOpenFOAM
collect2: error: ld returned 1 exit status
make[1]: *** [/home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/bin/funkySetFields] Error 1
make[1]: Leaving directory `/home/navier01a/broos/OpenFOAM/broos-2.3.0/userUtilities/swak4Foam/Utilities/funkySetFields'
make: *** [funkySetFields] Error 2
make[1]: Entering directory `/home/navier01a/broos/OpenFOAM/broos-2.3.0/userUtilities/swak4Foam/Utilities/funkySetLagrangianField'
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -IMake/linux64Gcc49DPOpt       -I/home/navier01a/broos/OpenFOAM/OpenFOAM-2.3.0/src/finiteVolume/lnInclude -I/home/navier01a/broos/OpenFOAM/OpenFOAM-2.3.0/src/sampling/lnInclude -I/home/navier01a/broos/OpenFOAM/OpenFOAM-2.3.0/src/meshTools/lnInclude -I/home/navier01a/broos/OpenFOAM/OpenFOAM-2.3.0/src/lagrangian/basic/lnInclude -I../../Libraries/swakLagrangianParser/lnInclude/ -I../../Libraries/swak4FoamParsers/lnInclude/ -IlnInclude -I. -I/home/navier01a/broos/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/home/navier01a/broos/OpenFOAM/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude   -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64Gcc49DPOpt/funkySetLagrangianField.o -L/home/navier01a/broos/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64Gcc49DPOpt/lib \
         -lfiniteVolume     -lmeshTools     -llagrangian     -L/home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/lib     -lswakLagrangianParser     -lswak4FoamParsers -lOpenFOAM -ldl   -lm -o /home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/bin/funkySetLagrangianField
/usr/bin/ld: cannot find -lOpenFOAM
collect2: error: ld returned 1 exit status
make[1]: *** [/home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/bin/funkySetLagrangianField] Error 1
make[1]: Leaving directory `/home/navier01a/broos/OpenFOAM/broos-2.3.0/userUtilities/swak4Foam/Utilities/funkySetLagrangianField'
make: *** [funkySetLagrangianField] Error 2
make[1]: Entering directory `/home/navier01a/broos/OpenFOAM/broos-2.3.0/userUtilities/swak4Foam/Utilities/funkyWarpMesh'
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -IMake/linux64Gcc49DPOpt       -I/home/navier01a/broos/OpenFOAM/OpenFOAM-2.3.0/src/finiteVolume/lnInclude -I/home/navier01a/broos/OpenFOAM/OpenFOAM-2.3.0/src/sampling/lnInclude -I/home/navier01a/broos/OpenFOAM/OpenFOAM-2.3.0/src/meshTools/lnInclude -I../../Libraries/swak4FoamParsers/lnInclude/ -IlnInclude -I. -I/home/navier01a/broos/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/home/navier01a/broos/OpenFOAM/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude   -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64Gcc49DPOpt/funkyWarpMesh.o -L/home/navier01a/broos/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64Gcc49DPOpt/lib \
         -lfiniteVolume     -lmeshTools     -L/home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/lib     -lswak4FoamParsers -lOpenFOAM -ldl   -lm -o /home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/bin/funkyWarpMesh
/usr/bin/ld: cannot find -lOpenFOAM
collect2: error: ld returned 1 exit status
make[1]: *** [/home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/bin/funkyWarpMesh] Error 1
make[1]: Leaving directory `/home/navier01a/broos/OpenFOAM/broos-2.3.0/userUtilities/swak4Foam/Utilities/funkyWarpMesh'
make: *** [funkyWarpMesh] Error 2
make[1]: Entering directory `/home/navier01a/broos/OpenFOAM/broos-2.3.0/userUtilities/swak4Foam/Utilities/replayTransientBC'
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -I/home/navier01a/broos/OpenFOAM/OpenFOAM-2.3.0/src/cfdTools/lnInclude -I/home/navier01a/broos/OpenFOAM/OpenFOAM-2.3.0/src/cfdTools/general/lnInclude      -I/home/navier01a/broos/OpenFOAM/OpenFOAM-2.3.0/src/finiteVolume/lnInclude      -I/home/navier01a/broos/OpenFOAM/OpenFOAM-2.3.0/src/meshTools/lnInclude      -I../../Libraries/swak4FoamParsers/lnInclude/ -IlnInclude -I. -I/home/navier01a/broos/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/home/navier01a/broos/OpenFOAM/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude   -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64Gcc49DPOpt/replayTransientBC.o -L/home/navier01a/broos/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64Gcc49DPOpt/lib \
         -lfiniteVolume -lmeshTools -lOpenFOAM -ldl   -lm -o /home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/bin/replayTransientBC
/usr/bin/ld: cannot find -lOpenFOAM
collect2: error: ld returned 1 exit status
make[1]: *** [/home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/bin/replayTransientBC] Error 1
make[1]: Leaving directory `/home/navier01a/broos/OpenFOAM/broos-2.3.0/userUtilities/swak4Foam/Utilities/replayTransientBC'
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/navier01a/broos/OpenFOAM/broos-2.3.0/userUtilities/swak4Foam/Libraries (most people will be fine without setting that variable)
I've tried searching for this but I've got no real clue how to fix this, anyone have an idea?
BobR is offline   Reply With Quote

Old   August 4, 2015, 17:15
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,957
Blog Entries: 43
Rep Power: 122
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings Bob and welcome to the forum!

What does the following commands give you?
Code:
ls -l $FOAM_LIBBIN/libOpenFOAM.so
echo $FOAM_LIBBIN
The first one should tell you some file details regarding the library that "-lOpenFOAM" is referring to. If it says that it can't find the file, then the second command will tell you where it's expecting to find the library.

If the library cannot be found, then run:
Code:
ldd $(which blockMesh) | grep libOpenFOAM
Compare the output from the previous 2nd command and this latest command. From there you should be able to diagnose why the paths are different.


As for the g++ version, please run the following command for confirming the version being used:
Code:
g++ --version
If it tells you it's version "4.9.something", then it should work just fine. I say this because most of the paths are mentioning that GCC 4.9 is being used "linux64Gcc49DPOpt".

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   August 5, 2015, 04:21
Default
  #3
New Member
 
Bob Roos
Join Date: Aug 2015
Posts: 3
Rep Power: 6
BobR is on a distinguished road
Thanks for the reply Bruno, much appreciated. The first command yields:

Code:
ls: /home/navier01a/broos/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64Gcc49DPOpt/lib/libOpenFOAM.so: No such file or directory
so it can't find that one. Asking where it's expecting it with the echo command yields:
Code:
/home/navier01a/broos/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64Gcc49DPOpt/lib
Running your third command
ldd $(which blockMesh) | grep libOpenFOAM as I can't find it yields:
Code:
Illegal variable name.
That's probably a problem, not sure what to do with it. Your final command yields that I'm indeed running g++ version 4.9.1


Edit:

I managed to find the file libOpenFOAM.so in some other folder and copied it to
Code:
/home/navier01a/broos/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64Gcc49DPOpt/lib/
made it compile without any visible errors apart from the python stuff, so I think all is now okay, thanks a lot. Output is now

Code:
Previously compiled for OpenFOAM 2.3.0

/home/navier01a/broos/OpenFOAM/broos-2.3.0/userUtilities/swak4Foam/privateRequirements/bin existing. Prepending to PATH-variable (private version of Bison)

No file 'swakConfiguration'. Python etc won't work. See README for details
Checking swak4Foam-version and generating file
abort: There is no Mercurial repository here (.hg not found)!
Swak version is 0.3.1
Bison is version 2.7.12-4996
Flex is version 2.5.35 (Minor version: 35)
OpenFOAM-version: Major 2 Minor 3 Patch 0 (-1 == x / 0)
No change to swak4FoamParsers/foamVersion4swak.H
'/home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/lib/libswak4FoamParsers.so' is up to date.
'/home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/lib/libswakLagrangianParser.so' is up to date.
'/home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/lib/libgroovyBC.so' is up to date.
'/home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/lib/libswakFunctionObjects.so' is up to date.
'/home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/lib/libsimpleFunctionObjects.so' is up to date.
'/home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/lib/libsimpleLagrangianFunctionObjects.so' is up to date.
'/home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/lib/libsimpleSearchableSurfaces.so' is up to date.
'/home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/lib/libsimpleSwakFunctionObjects.so' is up to date.
'/home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/lib/libswakTopoSources.so' is up to date.
'/home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/lib/libswakSourceFields.so' is up to date.
Compiling swakFvOptions
'/home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/lib/libswakFvOptions.so' is up to date.
'/home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/lib/libgroovyStandardBCs.so' is up to date.

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

'/home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/lib/libswakMeshQualityFunctionPlugin.so' is up to date.
'/home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/lib/libswakLocalCalculationsFunctionPlugin.so' is up to date.
'/home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/lib/libswakRandomFunctionPlugin.so' is up to date.
'/home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/lib/libswakFvcSchemesFunctionPlugin.so' is up to date.
'/home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/lib/libswakThermoTurbFunctionPlugin.so' is up to date.
'/home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/lib/libswakTransportTurbFunctionPlugin.so' is up to date.
'/home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/lib/libswakSurfacesAndSetsFunctionPlugin.so' is up to date.
'/home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/lib/libswakLagrangianCloudSourcesFunctionPlugin.so' is up to date.
'/home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/lib/libswakVelocityFunctionPlugin.so' is up to date.
'/home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/lib/libswakChemistryModelFunctionPlugin.so' is up to date.
'/home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/lib/libswakRadiationModelFunctionPlugin.so' is up to date.
'/home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/lib/libswakCoalCloudAdaptor.so' is up to date.

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

make[1]: Entering directory `/home/navier01a/broos/OpenFOAM/broos-2.3.0/userUtilities/swak4Foam/Utilities/calcNonUniformOffsetsForMapped'
make[1]: `/home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/bin/calcNonUniformOffsetsForMapped' is up to date.
make[1]: Leaving directory `/home/navier01a/broos/OpenFOAM/broos-2.3.0/userUtilities/swak4Foam/Utilities/calcNonUniformOffsetsForMapped'
make[1]: Entering directory `/home/navier01a/broos/OpenFOAM/broos-2.3.0/userUtilities/swak4Foam/Utilities/fieldReport'
make[1]: `/home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/bin/fieldReport' is up to date.
make[1]: Leaving directory `/home/navier01a/broos/OpenFOAM/broos-2.3.0/userUtilities/swak4Foam/Utilities/fieldReport'
make[1]: Entering directory `/home/navier01a/broos/OpenFOAM/broos-2.3.0/userUtilities/swak4Foam/Utilities/funkyDoCalc'
make[1]: `/home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/bin/funkyDoCalc' is up to date.
make[1]: Leaving directory `/home/navier01a/broos/OpenFOAM/broos-2.3.0/userUtilities/swak4Foam/Utilities/funkyDoCalc'

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

make[1]: Entering directory `/home/navier01a/broos/OpenFOAM/broos-2.3.0/userUtilities/swak4Foam/Utilities/funkySetBoundaryField'
make[1]: `/home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/bin/funkySetBoundaryField' is up to date.
make[1]: Leaving directory `/home/navier01a/broos/OpenFOAM/broos-2.3.0/userUtilities/swak4Foam/Utilities/funkySetBoundaryField'
make[1]: Entering directory `/home/navier01a/broos/OpenFOAM/broos-2.3.0/userUtilities/swak4Foam/Utilities/funkySetFields'
make[1]: `/home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/bin/funkySetFields' is up to date.
make[1]: Leaving directory `/home/navier01a/broos/OpenFOAM/broos-2.3.0/userUtilities/swak4Foam/Utilities/funkySetFields'
make[1]: Entering directory `/home/navier01a/broos/OpenFOAM/broos-2.3.0/userUtilities/swak4Foam/Utilities/funkySetLagrangianField'
make[1]: `/home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/bin/funkySetLagrangianField' is up to date.
make[1]: Leaving directory `/home/navier01a/broos/OpenFOAM/broos-2.3.0/userUtilities/swak4Foam/Utilities/funkySetLagrangianField'
make[1]: Entering directory `/home/navier01a/broos/OpenFOAM/broos-2.3.0/userUtilities/swak4Foam/Utilities/funkyWarpMesh'
make[1]: `/home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/bin/funkyWarpMesh' is up to date.
make[1]: Leaving directory `/home/navier01a/broos/OpenFOAM/broos-2.3.0/userUtilities/swak4Foam/Utilities/funkyWarpMesh'
make[1]: Entering directory `/home/navier01a/broos/OpenFOAM/broos-2.3.0/userUtilities/swak4Foam/Utilities/replayTransientBC'
make[1]: `/home/navier01a/broos/OpenFOAM/broos-2.3.0/platforms/linux64Gcc49DPOpt/bin/replayTransientBC' is up to date.
make[1]: Leaving directory `/home/navier01a/broos/OpenFOAM/broos-2.3.0/userUtilities/swak4Foam/Utilities/replayTransientBC'


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

Last edited by BobR; August 5, 2015 at 10:22. Reason: Adding information
BobR is offline   Reply With Quote

Old   August 5, 2015, 12:43
Default
  #4
New Member
 
Bob Roos
Join Date: Aug 2015
Posts: 3
Rep Power: 6
BobR is on a distinguished road
If I may ask a follow up question to this Bruno, how did you know that it was searching for the libOpenFOAM.so file, i.e., how do you translate the error that it's looking for -lOpenFOAM into the file you search for? If there's a general answer, it'd be very helpful if I get stuck with similar cases in the future (or for other readers I guess)
BobR is offline   Reply With Quote

Old   August 10, 2015, 14:49
Default
  #5
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,957
Blog Entries: 43
Rep Power: 122
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Bob,

Since you've asked, I've added this to the FAQ: http://openfoamwiki.net/index.php/FA...ume.27_mean.3F

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Reply

Tags
lopenfoam, swak4foam

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
[foam-extend.org] 3.2 Installation in Debian 8.5 jsm OpenFOAM Installation 2 June 19, 2016 10:53
How to make a code parallel? Bruno Machado Fluent UDF and Scheme Programming 15 May 27, 2016 09:18
[OpenFOAM.org] Compilation OpenFOAM 2.2.1 on BG/Q vkeller OpenFOAM Installation 5 October 31, 2015 07:06
[swak4Foam] build problem swak4Foam OF 2.2.0 mcathela OpenFOAM Community Contributions 14 April 23, 2013 13:59
Cannot find -lOpenFOAM in 1.7.x install scott OpenFOAM 3 November 14, 2012 09:29


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