CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Cannot find systemCall

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 21, 2019, 15:28
Default Cannot find systemCall
  #1
New Member
 
Join Date: Dec 2016
Posts: 24
Rep Power: 10
Dozer_94 is on a distinguished road
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 is offline   Reply With Quote

Old   May 22, 2019, 06:45
Default
  #2
New Member
 
Join Date: Dec 2016
Posts: 24
Rep Power: 10
Dozer_94 is on a distinguished road
Nevermind, got it
Dozer_94 is offline   Reply With Quote

Old   July 21, 2019, 15:18
Default
  #3
Member
 
Join Date: Sep 2018
Posts: 53
Rep Power: 8
tecmul is on a distinguished road
I'm getting a similar error, would you mind sharing your solution?
tecmul is offline   Reply With Quote

Old   February 5, 2022, 10:31
Default
  #4
Senior Member
 
TWB
Join Date: Mar 2009
Posts: 414
Rep Power: 19
quarkz is on a distinguished road
For those who need help, pls go to the tutorial at:

$FOAM_TUTORIALS/IO/systemCall/

to see the example
quarkz is offline   Reply With Quote

Reply

Tags
systemcall


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 11:53
How to make a code parallel? Bruno Machado Fluent UDF and Scheme Programming 15 May 27, 2016 10:18
CFX-Pre problem, pls help!!! cth_yao CFX 0 February 17, 2012 01:52
OpenFOAM 1.6-ext git installation on Ubuntu 11.10 x64 Attesz OpenFOAM Installation 45 January 13, 2012 13:38
Problem Building OF on Centos cluster (no admin rights) CKH OpenFOAM Installation 5 November 13, 2011 07:32


All times are GMT -4. The time now is 19:58.