CFD Online URL
[Sponsors]
Home > Forums > OpenFOAM Running, Solving & CFD

Problem for linking

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   April 18, 2006, 17:49
Default I just downloaded the most rec
  #1
New Member
 
Ho Hsing
Join Date: Mar 2009
Posts: 13
Rep Power: 7
hsing is on a distinguished road
I just downloaded the most recent OpenFoam release (v1.3). It works when I use the inherent solvers.

However, when I build my own solver, it complaining can not find library "libfiniteVolume.so" in ~/OpenFOAM/OpenFOAM-1.3/lib/linuxGcc4DPOpt, and it indeed does not exit there. I find the libfiniteVolume.so file appears in the directory of ~/OpenFOAM/OpenFOAM-1.3/lib/linuxAMD64Gcc4DPOpt. However, if I direct the linking path to ~/OpenFOAM/OpenFOAM-1.3/lib/linuxAMD64Gcc4DPOpt, it prints:
"skipping incompatible ~/OpenFOAM/OpenFOAM-1.3/lib/linuxAMD64Gcc4SPOpt/libfiniteVolume.so when searching for -lfiniteVolume;
cannot find -lfiniteVolume"

Is it because this version of release is not complete?
hsing is offline   Reply With Quote

Old   April 19, 2006, 01:45
Default Well, it looks like you are li
  #2
Senior Member
 
Martin Beaudoin
Join Date: Mar 2009
Posts: 330
Rep Power: 12
mbeaudoin will become famous soon enough
Well, it looks like you are linking a 32-bit application with a 64-bit library.

You need to compile your application for AMD64 as well if you want to link with the libraries under ~/OpenFOAM/OpenFOAM-1.3/lib/linuxAMD64Gcc4SPOpt.

Check your WM_64 environment variable... It needs to be set for enabling the right 64-bit compilation and linking options.

Martin
mbeaudoin is offline   Reply With Quote

Old   April 19, 2006, 05:07
Default Apart from the mixing of 32 an
  #3
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,889
Rep Power: 38
gschaider will become famous soon enoughgschaider will become famous soon enough
Apart from the mixing of 32 and 64 libraries: is there a reason why you're mixing single precision (SP) and double precision (DP) libraries? Im quite sure this won't work.
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
linking several faces Christian F. FLUENT 1 June 6, 2008 07:29
Linking two meshes Geoffroy Chaussonnet FLUENT 3 April 6, 2007 05:59
problem in mesh linking joe FLUENT 2 September 12, 2005 14:24
EARTH linking problem? Jas Phoenics 0 February 7, 2004 09:08
linking the script Mavinakere FLUENT 0 September 12, 2002 12:57


All times are GMT -4. The time now is 11:13.