CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Cannot find systemCall (https://www.cfd-online.com/Forums/openfoam-programming-development/217692-cannot-find-systemcall.html)

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,

Dozer_94 May 22, 2019 05:45

Nevermind, got it

tecmul July 21, 2019 14:18

I'm getting a similar error, would you mind sharing your solution?

quarkz February 5, 2022 09:31

For those who need help, pls go to the tutorial at:

$FOAM_TUTORIALS/IO/systemCall/

to see the example


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