|
[Sponsors] |
dlopen error :cannot open shared object file: No such file or directory |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 7, 2018, 17:53 |
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 |
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? |
|
March 8, 2018, 06:40 |
|
#2 |
Member
Mohamed Elghorab
Join Date: May 2016
Location: Coventry, Engalnd
Posts: 41
Rep Power: 9 |
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 |
|
March 8, 2018, 08:47 |
|
#3 |
Senior Member
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 21 |
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 |
|
March 8, 2018, 18:47 |
|
#4 | |
Member
Mohamed Elghorab
Join Date: May 2016
Location: Coventry, Engalnd
Posts: 41
Rep Power: 9 |
Quote:
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 |
||
January 29, 2020, 05:57 |
|
#5 |
New Member
David
Join Date: Mar 2012
Posts: 17
Rep Power: 14 |
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 |
|
January 29, 2020, 06:04 |
|
#6 |
New Member
David
Join Date: Mar 2012
Posts: 17
Rep Power: 14 |
I actually just needed a little bit more searching. Solution in Unable to load lib file: "undefined symbol"
|
|
Tags |
b.c, dlopen |
|
|
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 |