CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Problem for linking

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 18, 2006, 16:49
Default I just downloaded the most rec
  #1
New Member
 
Ho Hsing
Join Date: Mar 2009
Posts: 13
Rep Power: 17
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, 00:45
Default Well, it looks like you are li
  #2
Senior Member
 
Martin Beaudoin
Join Date: Mar 2009
Posts: 332
Rep Power: 22
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, 04:07
Default Apart from the mixing of 32 an
  #3
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
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


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
linking several faces Christian F. FLUENT 1 June 6, 2008 06:29
Linking two meshes Geoffroy Chaussonnet FLUENT 3 April 6, 2007 04:59
problem in mesh linking joe FLUENT 2 September 12, 2005 13:24
EARTH linking problem? Jas Phoenics 0 February 7, 2004 08:08
linking the script Mavinakere FLUENT 0 September 12, 2002 11:57


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