Dozer_94 |
May 21, 2019 14:28 |
Cannot find systemCall
Hi Foamers,
(OpenFOAM v6) I want to include the function systemCall in my controlDict file. However, OF produces the following complaint:
Code:
--> FOAM Warning :
From function void* Foam::dlOpen(const Foam::fileName&, bool)
in file POSIX.C at line 1234
dlopen error : libsystemCall.so: cannot open shared object file: No such file or directory
--> FOAM Warning :
From function bool Foam::dlLibraryTable::open(const Foam::fileName&, bool)
in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 105
could not load "libsystemCall.so"
--> FOAM Warning :
From function bool Foam::dlLibraryTable::open(const Foam::dictionary&, const Foam::word&, const TablePtr&) [with TablePtr = Foam::HashTable<Foam::autoPtr<Foam::functionObject> (*)(const Foam::word&, const Foam::Time&, const Foam::dictionary&),
Foam::word, Foam::string::hash>*]
in file lnInclude/dlLibraryTableTemplates.C at line 62
Could not open library "libsystemCall.so"
--> FOAM Warning :
From function bool Foam::functionObjectList::read()
in file db/functionObjects/functionObjectList/functionObjectList.C at line 746
Caught FatalError
--> FOAM FATAL ERROR:
Unknown function type systemCall
Valid functions are :
7
(
initSwakFunctionObject
patchProbes
probes
psiReactionThermoMoleFractions
rhoReactionThermoMoleFractions
sets
surfaces
)
Now, I am aware that using these kind of functions may require a library added explicitly to the solver, so I included the following lines in the Make/options file:
Code:
EXE_INC = \
-I$(LIB_SRC)/functionObjects/utilities/lnInclude \
EXE_LIBS = \
-lsystemCall \
But on compiling, Make informs me that it is unable to find lsystemCall. Does anyone have an idea on what is causing this?
Thank in advance,
|