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

Could not lad shared library: dlopen error undefined symbol

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 31, 2017, 17:55
Default Could not lad shared library: dlopen error undefined symbol
  #1
New Member
 
Clark Yan
Join Date: Jun 2015
Location: Ottawa, Canada
Posts: 5
Rep Power: 11
Clarkyan is on a distinguished road
Dear foamers,

I am trying to write a new dynamic motion solver on the basis of "velocityLaplacian". I copied the source codes of "velocityLaplacian" and wrote to a new library "libMyfvMotionSolvers.so".

The code compiles but when I run the simulation (using interDyMFoam), the following error message comes up (dlopen error):


Code:
Selecting motion solver: velocityLaplacian
--> FOAM Warning : 
    From function dlOpen(const fileName&, const bool)
    in file POSIX.C at line 1179
    dlopen error : /home/xiaohui/OpenFOAM/xiaohui-2.3.1/platforms/linux64GccDPOpt/lib/libMyfvMotionSolvers.so: undefined symbol: _ZN4Foam18fvMotionSolverCore5debugE
--> FOAM Warning : 
    From function dlLibraryTable::open(const fileName&, const bool)
    in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 99
    could not load "libMyfvMotionSolvers.so"
--> FOAM Warning : 
    From function dlLibraryTable::open(const dictionary&, const word&, const TablePtr&)
    in file /home/openfoam/OpenFOAM/OpenFOAM-2.3.1/src/OpenFOAM/lnInclude/dlLibraryTableTemplates.C at line 67
    Could not open library "libMyfvMotionSolvers.so"



--> FOAM FATAL ERROR: 
solver table is empty

    From function motionSolver::New(const polyMesh& mesh)
    in file motionSolver/motionSolver/motionSolver.C at line 116.

FOAM exiting
I tried the following methods but none of them works:
1) change the names;
2) add links to dynamicMesh and dynamicFvMesh etc.;
3) re-install swak4Foam;
etc.


Can anybody drop a hint? Thanks in advance.

Regards,
Clark
Clarkyan is offline   Reply With Quote

Reply


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::error::PrintStack almir OpenFOAM Running, Solving & CFD 92 May 21, 2024 08:56
Decomposing meshes Tobi OpenFOAM Pre-Processing 22 February 24, 2023 10:23
decomposePar problem: Cell 0contains face labels out of range vaina74 OpenFOAM Pre-Processing 37 July 20, 2020 06:38
[mesh manipulation] Importing Multiple Meshes thomasnwalshiii OpenFOAM Meshing & Mesh Conversion 18 December 19, 2015 19:57
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug unoder OpenFOAM Installation 11 January 30, 2008 21:30


All times are GMT -4. The time now is 02:29.