gorg88 |
June 1, 2016 04:08 |
error: undefined symbol: _ZTIN4Foam22timelineFunctionObjectE
Hi!
I have created an own simpleFunctionObjects library (mylibsimplefunctionObjects.so) from swak4foam file. I compiled without problems but it is appear this error when I try to use a function object into a controlDict from mylibsimplefunctionObjecs.so library.
Quote:
Create time
--> FOAM Warning :
From function dlOpen(const fileName&, const bool)
in file POSIX.C at line 1179
dlopen error : /home/jgaray/OpenFOAM/jgaray-2.4.0/platforms/linux64GccDPOpt/lib/mylibsimpleFunctionObjects.so: undefined symbol: _ZTIN4Foam22timelineFunctionObjectE
--> FOAM Warning :
From function dlLibraryTable::open(const fileName&, const bool)
in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 99
could not load "mylibsimpleFunctionObjects.so"
Create mesh for time = 0
Reading g
Reading thermophysical properties
Selecting thermodynamics package
{
type heRhoThermo;
mixture pureMixture;
transport const;
thermo hConst;
equationOfState perfectGas;
specie specie;
energy sensibleEnthalpy;
}
Reading field U
Reading/calculating face flux field phi
Creating turbulence model
Selecting RAS turbulence model kEpsilon
kEpsilonCoeffs
{
label "Standard high-Re k-\u03B5";
fieldMaps
{
k kCompressible;
epsilon epsilonCompressible;
mut mut;
alphat alphatCompressible;
}
Cmu 0.09;
C1 1.44;
C2 1.92;
C3 0.85;
alphah 1.111;
alphak 1;
alphaEps 0.76923;
sigmak 1;
sigmaEps 1.3;
Prt 1;
}
Calculating field g.h
Reading field p_rgh
Creating finite volume options from "system/fvOptions"
Radiation model not active: radiationProperties not found
Selecting radiationModel none
SIMPLE: convergence criteria
field U tolerance 1e-05
field k tolerance 1e-05
field epsilon tolerance 1e-05
field omega tolerance 1e-05
field nuTilda tolerance 1e-05
field T tolerance 1e-05
field p_rgh tolerance 1e-05
field p tolerance 1e-05
Starting time loop
--> FOAM FATAL ERROR:
Unknown function type patchAverage
Valid functions are :
9
(
initSwakFunctionObject
partialWrite
patchProbes
probes
removeRegisteredObject
sets
surfaces
writeDictionary
writeRegisteredObject
)
From function functionObject::New(const word& name, const Time&, const dictionary&)
in file db/functionObjects/functionObject/functionObject.C at line 92.
FOAM exiting
|
I attach make/options file where all the necessary libraries are included
Code:
include $(OBJECTS_DIR)/../../rules/versionOptions
ifdef FOAM_DEV
ADDITIONALFILES_INC=-I../filesThatAreOnlyInSomeDistributions
SIMPLEFUNCTIONFILES=-I../../swak4Foam/Libraries
endif
LIB=$(FOAM_USER_LIBBIN)/mylibsimpleFunctionObjects
EXE_INC = \
$(FOAM_DEV_OPTION) \
-I/swak4FoamParsers/lnInclude \
-I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/meshTools/lnInclude \
-I$(LIB_SRC)/sampling/lnInclude \
-I$(LIB_SRC)/triSurface/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/SLGThermo/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/properties/solidMixtureProperties/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/properties/liquidMixtureProperties/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/properties/solidProperties/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/properties/liquidProperties/lnInclude \
-I$(LIB_SRC)/regionModels/regionModel/lnInclude \
-I$(LIB_SRC)/regionModels/surfaceFilmModels/lnInclude \
-I$(LIB_SRC)/turbulenceModels \
-I$(LIB_SRC)/transportModels \
-I$(LIB_SRC)/lagrangian/basic/lnInclude \
$(ADDITIONALFILES_INC)
LIB_LIBS = \
-lfiniteVolume \
-lmeshTools \
-lsampling \
-ltriSurface \
$(FLUIDTHERMO_LIB) \
-lincompressibleTransportModels \
-lcompressibleTurbulenceModel \
-lincompressibleTurbulenceModel \
-lspecie \
-llagrangian
Thanks
|