|
[Sponsors] |
how to link the path of a newly compiled library to another library in OpenFOAM |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
New Member
Sourav Hossain
Join Date: Mar 2019
Posts: 25
Rep Power: 5 ![]() |
Hi Foamers,
I have modified incompressibleTwoPhaseMixture library to myIncompressibleTwoPhaseMixture library according to my need and compiled it. It compiles without any error. Now I was going to modify immiscibleIncompressibleTwoPhaseMixture library to myImmiscibleIncompressibleTwoPhaseMixture library. I want to link the path of myIncompressibleTwoPhaseMixture library in myImmiscibleIncompressibleTwoPhaseMixture library. I have tried to add the path in the options of myImmiscibleIncompressibleTwoPhaseMixture as EXE_INC = \ -I$(LIB_SRC)/transportModels/lnInclude \ -I/home/souravhossain/OpenFOAM/souravhossain-8/src/twoPhaseModels/myIncompressibleTwoPhaseMixture/lnInclude \ -I$(LIB_SRC)/twoPhaseModels/twoPhaseMixture/lnInclude \ -I$(LIB_SRC)/twoPhaseModels/interfaceProperties/lnInclude \ -I$(LIB_SRC)/finiteVolume/lnInclude LIB_LIBS = \ -ltwoPhaseMixture \ -lincompressibleTransportModels \ -linterfaceProperties \ -ltwoPhaseProperties \ -lfiniteVolume But it did'n work, while compilation of myImmiscibleIncompressibleTwoPhaseMixture library it's not able to detect the path of myIncompressibleTwoPhaseMixture library. Something wrong I am doing, but I was not able to figure it out. Please help me how to fix this. Note: I am using OpenFOam8 In Ubuntu 20.04 |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Adhiraj
Join Date: Sep 2010
Location: Maryland, United States
Posts: 185
Rep Power: 14 ![]() |
Maybe you did not point the compiler to the location of the new library?
You can try something like this: Code:
LIB_LIBS = \ -L/home/souravhossain/OpenFOAM/souravhossain-8/platforms/linux64GccDPOpt/lib \ -ltwoPhaseMixture \ -lincompressibleTransportModels \ -linterfaceProperties \ -ltwoPhaseProperties \ -lfiniteVolume |
|
![]() |
![]() |
![]() |
![]() |
#3 | |
New Member
Sourav Hossain
Join Date: Mar 2019
Posts: 25
Rep Power: 5 ![]() |
Quote:
************************************************** ******************************** EXE_INC = \ -I$(WM_PROJECT_USER_DIR)/src/twoPhaseModels/myIncompressibleTwoPhaseMixture/lnInclude \ -I$(LIB_SRC)/transportModels/lnInclude \ -I$(LIB_SRC)/twoPhaseModels/twoPhaseMixture/lnInclude \ -I$(LIB_SRC)/twoPhaseModels/interfaceProperties/lnInclude \ -I$(LIB_SRC)/finiteVolume/lnInclude LIB_LIBS = \ -L$(FOAM_USER_LIBBIN) \ -lmyIncompressibleTwoPhaseMixture \ -ltwoPhaseMixture \ -lincompressibleTransportModels \ -linterfaceProperties \ -ltwoPhaseProperties \ -lfiniteVolume ************************************************** ************************************************ |
||
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
New library for wall-modelled LES with OpenFOAM | tiam | OpenFOAM Announcements from Other Sources | 10 | May 19, 2021 05:30 |
OpenFOAM course for beginners | Jibran | OpenFOAM Announcements from Other Sources | 2 | November 4, 2019 09:51 |
UNIGE February 13th-17th - 2107. OpenFOAM advaced training days | joegi.geo | OpenFOAM Announcements from Other Sources | 0 | October 1, 2016 20:20 |
Cross-compiling OpenFOAM 1.7.0 on Linux for Windows 32 and 64bits with Mingw-w64 | wyldckat | OpenFOAM Announcements from Other Sources | 3 | September 8, 2010 07:25 |
64bitrhel5 OF installation instructions | mirko | OpenFOAM Installation | 2 | August 12, 2008 19:07 |