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

dlopen error :cannot open shared object file: No such file or directory

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 7, 2018, 17:53
Unhappy dlopen error :cannot open shared object file: No such file or directory
  #1
Member
 
Mohamed Elghorab
Join Date: May 2016
Location: Coventry, Engalnd
Posts: 41
Rep Power: 9
crazzy.pirate43 is on a distinguished road
Dear Foamer,

I'm working on a new boundary condition and I compiled it in an external folder with (FOAM_USER_APPBIN) and I tried to attach it to my case with two different ways:

1) put the lib in the controlDict file : libs ("libB.C.so");
2) attach the pass and the name of the library to the files in the solver

But in both cases it gives me the same Warning :

dlopen error :lib<B.C name>.so: cannot open shared object file: No such file or directory

and after that tells me there is no boundary condition with the name of ( B.C name) and gives me a list with the available B.Cs

By the way any other created B.Cs by me working well except this one

Could you please help me to solve this problem?
crazzy.pirate43 is offline   Reply With Quote

Old   March 8, 2018, 06:40
Default
  #2
Member
 
Mohamed Elghorab
Join Date: May 2016
Location: Coventry, Engalnd
Posts: 41
Rep Power: 9
crazzy.pirate43 is on a distinguished road
Dear Foamer,

As an update I managed to remove the warning ( I wrote the name of library in the control Dict file with missing one letter) However still not working as the output when run the case is :
Create time

Create mesh for time = 0

PIMPLE: Operating solver in PISO mode

Reading field p

Reading field U

--> FOAM FATAL IO ERROR:
Unknown patchField type isoTropicInlet for patch type patch

Valid patchField types are :



By the way I'm using OF-v 1612+

Thanks
crazzy.pirate43 is offline   Reply With Quote

Old   March 8, 2018, 08:47
Default
  #3
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 21
jherb is on a distinguished road
You probably want to use FOAM_USER_LIBBIN instead of FOAM_USER_APPBIN. The latter one should contain solvers (executables), the former one libraries.

So in Make/files (the last line) should look like
Code:
LIB = $(FOAM_USER_LIBBIN)/libB.C
jherb is offline   Reply With Quote

Old   March 8, 2018, 18:47
Default
  #4
Member
 
Mohamed Elghorab
Join Date: May 2016
Location: Coventry, Engalnd
Posts: 41
Rep Power: 9
crazzy.pirate43 is on a distinguished road
Quote:
Originally Posted by jherb View Post
You probably want to use FOAM_USER_LIBBIN instead of FOAM_USER_APPBIN. The latter one should contain solvers (executables), the former one libraries.

So in Make/files (the last line) should look like
Code:
LIB = $(FOAM_USER_LIBBIN)/libB.C
Dear Joachim,

Thanks for your interest. yes you are right I i wrote it with wrong way but in the existed file its (FOAM_USER_LIBBIN)/libB.C not APPBIN.

But still the problem exist. I can't see it in the existed B.Cs

Thanks
crazzy.pirate43 is offline   Reply With Quote

Old   January 29, 2020, 05:57
Default
  #5
New Member
 
David
Join Date: Mar 2012
Posts: 17
Rep Power: 14
kiski is on a distinguished road
crazzy.pirate43, could you solve the problem? I am facing the same problem now. I can compile my ".so" and put it in FOAM_USER_LIBBIN. However it doesn't recognize the new boundary.

Nevertheless I get the following warning with no further clue of which symbol is the problem at,

Code:
--> FOAM Warning : 
    From function void* Foam::dlOpen(const Foam::fileName&, bool)
    in file POSIX.C at line 1251
    dlopen error :  /home/user/OpenFOAM/user-7/platforms/linux64GccDPInt32Opt/lib/libmylinearBC.so:  undefined symbol: _ZTIN4Foam3RBD9restraintE
I hope you are still around
kiski is offline   Reply With Quote

Old   January 29, 2020, 06:04
Default
  #6
New Member
 
David
Join Date: Mar 2012
Posts: 17
Rep Power: 14
kiski is on a distinguished road
I actually just needed a little bit more searching. Solution in Unable to load lib file: "undefined symbol"
kiski is offline   Reply With Quote

Reply

Tags
b.c, dlopen


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
Custom Thermophysical Properties wsmith02 OpenFOAM 4 June 1, 2023 14:30
polynomial BC srv537 OpenFOAM Pre-Processing 4 December 3, 2016 09:07
[foam-extend.org] problem when installing foam-extend-1.6 Thomas pan OpenFOAM Installation 7 September 9, 2015 21:53
[OpenFOAM] Annoying issue of automatic "Rescale to Data Range " with paraFoam/paraview 3.12 keepfit ParaView 60 September 18, 2013 03:23
"parabolicVelocity" in OpenFoam 2.1.0 ? sawyer86 OpenFOAM Running, Solving & CFD 21 February 7, 2012 11:44


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