|
[Sponsors] |
[OpenFOAM.org] Allmake not reading a file that is there |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 17, 2020, 15:55 |
Allmake not reading a file that is there
|
#1 |
Senior Member
Josh McCraney
Join Date: Jun 2018
Posts: 220
Rep Power: 8 |
Hi all!
In the Make/options file I have Code:
EXE_INC = \ -I$(LIB_SRC)/transportModels/twoPhaseMixture/lnInclude \ -I./transportModels \ -I$(LIB_SRC)/transportModels/incompressible/lnInclude \ -I./transportModels/interfaceProperties/lnInclude \ -I$(LIB_SRC)/TurbulenceModels/turbulenceModels/lnInclude \ -I$(LIB_SRC)/TurbulenceModels/incompressible/lnInclude \ -I./transportModels/immiscibleIncompressibleTwoPhaseMixture/lnInclude \ -I$(LIB_SRC)/finiteVolume/lnInclude \ -I$(LIB_SRC)/meshTools/lnInclude \ -I$(LIB_SRC)/sampling/lnInclude EXE_LIBS = \ -L$(FOAM_LIBBIN) \ -lturbulenceModels \ -lincompressibleTurbulenceModels \ -lfiniteVolume \ -lfvOptions \ -lmeshTools \ -lsampling \ -L$(FOAM_USER_LIBBIN) \ -limmiscibleIncompressibleTwoPhaseMixtureSmoothed Any idea how to include this file? Thanks for your help! |
|
June 19, 2020, 19:50 |
|
#2 |
Member
Lisandro Maders
Join Date: Feb 2013
Posts: 98
Rep Power: 13 |
I think the path is wrong? Shouldn't it be:
-I ../transportModels/immiscibleIncompressibleTwoPhaseMixture/lnInclude \ Or you could use $FOAM_RUN environmental variable to make sure you are in the correct relative path.. like: -I $FOAM_RUN/[whatever needs to go to ->]/transportModels/immiscibleIncompressibleTwoPhaseMixture/lnInclude \ |
|
June 21, 2020, 21:36 |
|
#3 | |
Senior Member
Josh McCraney
Join Date: Jun 2018
Posts: 220
Rep Power: 8 |
Quote:
Code:
-I ../transportModels/immiscibleIncompressibleTwoPhaseMixture/lnInclude \ Any idea further? |
||
June 23, 2020, 20:35 |
|
#4 |
Member
Lisandro Maders
Join Date: Feb 2013
Posts: 98
Rep Power: 13 |
Sorry, I thought this was some user-defined library that you have compiled.
Which library you are trying to compile? What is the content of Make/files file, and which OF version are you using? Also, you said you checked the immiscibleIncompressibleTwoPhaseMixture in the $FOAM_SRC/transportModels/immiscibleIncompressibleTwoPhaseMixture folder, right? What about the $FOAM_SRC/transportModels/immiscibleIncompressibleTwoPhaseMixture/lnInclude folder? Can you see the immiscibleIncompressibleTwoPhaseMixture.H file? |
|
June 24, 2020, 09:38 |
|
#5 | |||
Senior Member
Josh McCraney
Join Date: Jun 2018
Posts: 220
Rep Power: 8 |
Quote:
Quote:
Quote:
Perhaps related, but I received the following advice: "Perhaps the link in lnInclude is broken. Have you tried building interFoamKistlerLiquidSmoothed and the required libraries in the transportModels subdirectory again from scratch by first deleting the lnInclude and compiler (in my case linux64GccDPInt32Opt) subdirectories? In case something got mixed up during a previous compilation this might fix it." Following this advice, I execute Allwmake within the /home/josh/of4x/ThirdParty-4.x/interFoamKistlerLiquidSmoothed_v0.2/transportModels directory and get the error Code:
/usr/bin/ld: cannot find -ltwoPhaseMixture /usr/bin/ld: cannot find -lfiniteVolume collect2: error: ld returned 1 exit status /home/josh/of4x/OpenFOAM-4.x/wmake/makefiles/general:156: recipe for target '/home/josh/OpenFOAM/josh-4.x/platforms/linux64GccDPInt32Opt/lib/libinterfacePropertiesSmoothed.so' failed make: *** [/home/josh/OpenFOAM/josh-4.x/platforms/linux64GccDPInt32Opt/lib/libinterfacePropertiesSmoothed.so] Error 1 To me, it looks like from the error highlighted in red the compilation process is trying to talk to the wrong folder. What do you think? |
||||
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Custom Thermophysical Properties | wsmith02 | OpenFOAM | 4 | June 1, 2023 14:30 |
[swak4Foam] funkyDoCalc with OF2.3 massflow | NiFl | OpenFOAM Community Contributions | 14 | November 25, 2020 03:30 |
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch | gschaider | OpenFOAM Installation | 225 | August 25, 2015 19:43 |
[swak4Foam] swak4foam building problem | GGerber | OpenFOAM Community Contributions | 54 | April 24, 2015 16:02 |
OpenFOAM on MinGW crosscompiler hosted on Linux | allenzhao | OpenFOAM Installation | 127 | January 30, 2009 19:08 |