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

Cannot find liberty %3cIMG SRC%3d%22httpopenfoamcfdonlinecomforumcliparthappy gif%22 ALT%3d%22%22 BORDER%3d0%3e

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   September 14, 2006, 03:36
Default Dear all I have installed O
  #1
Senior Member
 
Daniele Panara
Join Date: Mar 2009
Posts: 101
Rep Power: 17
panara is on a distinguished road
Dear all

I have installed OF 1.3 on a linux Debian AMD64 machine. Everthing works and I can run icoFoam without problems. When I try to compile my own application (icoFoam), it fails in the linking phase:

Making dependency list for source file icoFoam.C

SOURCE_DIR=.
SOURCE=icoFoam.C ; g++ -m64 -DlinuxAMD64 -DDP -Wall -W -Wno-unused-parameter -Wold-style-cast -march=opteron -O3 -DNoRepository -ftemplate-depth-30 -I/apps/prod/OpenFOAM/OpenFOAM-1.3/src/finiteVolume/lnInclude -I/apps/prod/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude -IlnInclude -I. -fPIC -c $SOURCE -o Make/linuxAMD64Gcc4DPOpt/icoFoam.o
/apps/prod/OpenFOAM/OpenFOAM-1.3/wmake/bashScripts/mkObjectDir /data/home/didomax/OpenFOAM/didomax-1.3/applications/bin/linuxAMD64Gcc4DPOpt/ico Foam
g++ -m64 -DlinuxAMD64 -DDP -Wall -W -Wno-unused-parameter -Wold-style-cast -march=opteron -O3 -DNoRepository -ftemplate-depth-30 -I/apps/prod/OpenFOAM/OpenFOAM-1.3/src/finiteVolume/lnInclude -I/apps/prod/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude -IlnInclude -I. -fPIC Make/linuxAMD64Gcc4DPOpt/icoFoam.o -L/apps/prod/OpenFOAM/OpenFOAM-1.3/lib/linuxAMD64Gcc4DPOpt \
-lfiniteVolume -lOpenFOAM -liberty -o /data/home/didomax/OpenFOAM/didomax-1.3/applications/bin/linuxAMD64Gcc4DPOpt/ico Foam
/usr/bin/ld: cannot find -liberty
collect2: ld returned 1 exit status
make: *** [/data/home/didomax/OpenFOAM/didomax-1.3/applications/bin/linuxAMD64Gcc4DPOpt/ic oFoam] Error 1

When I change in /apps/prod/OpenFOAM/OpenFOAM-1.3/wmake/rules/linuxAMD64Gcc4/general
the following line

GLIBS = -liberty

in

GLIBS = /apps/prod/OpenFOAM/linuxAMD64/gcc-4.1.0/lib/libiberty.a

the compilation has no problem at all.

Any idea?
panara is offline   Reply With Quote

 


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
FoamerrorprintStackFoam%3cIMG SRC%3d%22httpopenfoamcfdonlinecomforumclipartproudgif%22 ALT%3d%22O%22 BORDER%3d0%3estreamamp rengu OpenFOAM Running, Solving & CFD 5 March 3, 2009 10:19
Problem in generating too many pointsFoamerrorprintStackFoam%3cIMG SRC%3d%22httpopenfoamcfdonlinecomforumclipartproudgif%22 ALT%3d%22O%22 BORDER%3d0%3estreamamp marhamat OpenFOAM 0 August 6, 2008 03:49
Compiling liftDrag crashed with initc%3cIMG SRC%3d%22httpopenfoamcfdonlinecomforumclipartsadgif%22 ALT%3d%22%22 BORDER%3d0%3etext0x20 undefined reference to %60mainb sponiar OpenFOAM Running, Solving & CFD 2 January 17, 2008 04:00
%230 FoamerrorprintStackFoam%3cIMG SRC%3d%22httpopenfoamcfdonlinecomforumclipartproudgif%22 ALT%3d%22O%22 BORDER%3d0%3estreamamp nishant_hull OpenFOAM Running, Solving & CFD 18 October 30, 2007 13:52
%230 FoamerrorprintStackFoam%3cIMG SRC%3d%22httpopenfoamcfdonlinecomforumclipartproudgif%22 ALT%3d%22O%22 BORDER%3d0%3estreamamp guimch OpenFOAM Running, Solving & CFD 6 October 25, 2007 17:52


All times are GMT -4. The time now is 23:34.