CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [OpenFOAM.org] compiling a library: cannot find files recipe for target error (https://www.cfd-online.com/Forums/openfoam-installation/228191-compiling-library-cannot-find-files-recipe-target-error.html)

joshmccraney June 22, 2020 15:01

compiling a library: cannot find files recipe for target error
 
Hi all

I'm working on OpenFOAM 4.x, and am trying to compile a custom solver. Since I think the lnInclude link is broken, I am trying to build the required libraries from scratch by first deleting the lnInclude and compiler (in my case linux64GccDPInt32Opt) subdirectories. Then I execute Allwmake 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

I'm running two different versions of openfoam. There is a folder titled OpenFOAM, which relates to openfoam 6 (irrelevant to this build) and there is another folder of4x which relates to openfoam 4.x. The path to the libraries I am compiling is

/home/josh/of4x/ThirdParty-4.x/interFoamKistlerLiquidSmoothed_v0.2/transportModels

To me, it looks like from the error highlited in red the compilation process is trying to talk to the wrong folder. Anyone have any ideas on what to do here?


All times are GMT -4. The time now is 17:42.