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

[OpenFOAM.org] compiling a library: cannot find files recipe for target error

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 22, 2020, 15:01
Default compiling a library: cannot find files recipe for target error
  #1
Senior Member
 
Josh McCraney
Join Date: Jun 2018
Posts: 220
Rep Power: 8
joshmccraney is on a distinguished road
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?
joshmccraney 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
ERROR: unable to find library HJH CFX 6 February 26, 2019 06:52
Errors in compiling library for new BC jemling OpenFOAM Programming & Development 0 April 15, 2017 13:21
Compiling library and linking it to a solver criolla OpenFOAM 2 July 27, 2016 03:13
Compiling a porousZone-like library Hisham OpenFOAM Programming & Development 1 March 8, 2012 09:49
Problems in compiling paraview in Suse 10.3 platform chiven OpenFOAM Installation 3 December 1, 2009 07:21


All times are GMT -4. The time now is 09:45.