|
[Sponsors] |
February 22, 2019, 08:38 |
Weird Problem while compiling new library
|
#1 |
Member
Ashish Vinayak
Join Date: Mar 2015
Location: Wuppertal, Germany
Posts: 50
Rep Power: 11 |
Hello everyone,
I am trying to compile $FOAM_SRC/transportModels separately since I want to rewrite the $FOAM_SRC/transportModels/interfaceProperties library. I created $WM_PROJECT_USER_DIR/src folder and copied $FOAM_SRC/transportModels to it. The library seems to compile correctly and is present in $FOAM_USER_LIBBIN. I then copied interFOAM to $WM_PROJECT_USER_DIR/applications to compile the solver based on this "new" libraries. Changed all the required data in Make/options as well. However, when I try to compile interFOAM using these "new" libraries, I get undefined references. I have attached the error report for the solver compilation. Has someone faced this or a similar kind of problem? I can provide all the information required, if someone is able to help me ! PS. OpenFOAM-5.x |
|
February 22, 2019, 09:37 |
|
#2 |
Member
Ashish Vinayak
Join Date: Mar 2015
Location: Wuppertal, Germany
Posts: 50
Rep Power: 11 |
Okay, I seem to have solved the problem myself. Turns out that wmake does not return any error if it does not find the correct file in the linking process.
For future reference: ldd libname.socan be used to find which files are not linked correctly and then the correct links can be established. |
|
March 14, 2019, 10:46 |
|
#3 | |
New Member
Join Date: Jul 2017
Posts: 4
Rep Power: 9 |
Quote:
|
||
March 15, 2019, 11:39 |
|
#4 | |
Member
Ashish Vinayak
Join Date: Mar 2015
Location: Wuppertal, Germany
Posts: 50
Rep Power: 11 |
Quote:
>> ldd libname.so where libname is the library in the USER OpenFOAM directory (OpenFOAM/usrname/platforms/linuxXYZOpt/libs/libname.so) and post the output so that I could help you debug. |
||
Tags |
library solver linking |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem in compiling fluent UDF lunched from MATLAB | cfdman10 | Fluent UDF and Scheme Programming | 16 | December 5, 2019 06:32 |
Problem linking library | AlmostSurelyRob | OpenFOAM Programming & Development | 19 | March 1, 2017 10:59 |
Compiling library changes | Stephen Waite | OpenFOAM Programming & Development | 4 | August 26, 2016 20:41 |
Compiling library and linking it to a solver | criolla | OpenFOAM | 2 | July 27, 2016 04:13 |
Problem compiling custom boundary condition as a library | leroyv | OpenFOAM Programming & Development | 2 | January 21, 2014 11:44 |