|
[Sponsors] |
Undefined symbol after compiling a new library |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 26, 2022, 10:35 |
Undefined symbol after compiling a new library
|
#1 |
Member
Mahmoud
Join Date: Nov 2020
Location: United Kingdom
Posts: 43
Rep Power: 6 |
Dear CFD Users,
I am trying to define a new BC for "weirOverFlow" tutorial. I want to set the depth at the outlet. I have taken every step carefully and in the end, I have compiled the "Make" file. After compilation and when I ran the weirOverFlow case with the new BC, I got the following error message: FOAM Warning : From void* Foam::dlLibraryTable:penLibrary(const Foam::fileName&, bool) in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 188 Could not load "libdepthOutletVelocity.so" /home/ma1c20/OpenFOAM/ma1c20-v2012/platforms/linux64GccDPInt32Opt/lib/libdepthOutletVelocity.so: undefined symbol: _ZN4Foam9UOPstream11writeQuotedERKSsb Here is what I have done so far: 1- Copied the libdepthOutletVelocity.so to the $FOAM_LIBBIN, but did not solve the problem 2- Compiled the new library with "wmake libso", which did not work 3- Added the -L$(FOAM_USER_LIBBIN) \ to the "options" file in "Make" directory, it did not work Does anyone have any idea how to solve this case? Please note that I am running the case on the Cloud server. When I run the case on my laptop, I do not see the same error. Thank you in advance for your help. Best Mahmoud |
|
May 27, 2022, 02:21 |
|
#2 |
Member
Saleh Abuhanieh
Join Date: Nov 2017
Posts: 83
Rep Power: 9 |
Hi,
Did you compile the new BC on the server too? or you just transferred the compiled library from your laptop? Regards, Saleh |
|
May 27, 2022, 03:51 |
|
#3 |
Member
Mahmoud
Join Date: Nov 2020
Location: United Kingdom
Posts: 43
Rep Power: 6 |
||
May 27, 2022, 04:55 |
|
#4 |
Member
Saleh Abuhanieh
Join Date: Nov 2017
Posts: 83
Rep Power: 9 |
Hi Mahmoud,
I received this error in the past, normally I was missing a library in my option file during the compilation. The code compile but the error appears during run time. But in your case it works on your laptop but not on the server. The problem can be in your OpenFOAM installation at the server. Your error is related to the UOPstream library. I hope that was useful. Regards, Saleh |
|
May 31, 2022, 06:57 |
|
#5 | |
Member
Mahmoud
Join Date: Nov 2020
Location: United Kingdom
Posts: 43
Rep Power: 6 |
Quote:
Thanks Saleh for that. I reinstalled it and now it works. |
||
February 9, 2023, 03:48 |
|
#6 | |
New Member
Grp
Join Date: Feb 2023
Posts: 14
Rep Power: 3 |
Quote:
Also, I use of1706 compilation and use of9 for calculations. |
||
Tags |
library dependencies, openfoam 1806, parallel decomposepar |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Caffa 3D code | Waliur Rahman | Main CFD Forum | 0 | May 29, 2018 01:53 |
OpenFOAM 1.6-ext git installation on Ubuntu 11.10 x64 | Attesz | OpenFOAM Installation | 45 | January 13, 2012 13:38 |
OpenFOAM on MinGW crosscompiler hosted on Linux | allenzhao | OpenFOAM Installation | 127 | January 30, 2009 20:08 |
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug | unoder | OpenFOAM Installation | 11 | January 30, 2008 21:30 |
G95 + CGNS | Bruno | Main CFD Forum | 1 | January 30, 2007 01:34 |