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

No rule to make target %60libsob

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

Reply
 
LinkBack Thread Tools Display Modes
Old   February 15, 2005, 14:46
Default I'm tring to compile OpenFOAM
  #1
JLepolt (Jlepolt)
Guest
 
Posts: n/a
I'm tring to compile OpenFOAM, and I'm starting at the very beginning going piece by piece. When trying to compile zlib-1.2.1, the wmake command is: make -f Makefile MAKE_DIR=$MakeDir INCLUDE_DEPS=$OBJECTS_DIR/includeDeps libso
However, this gives me the error: make: *** No rule to make target `libso'. Stop.
Any help is appreciated, thanks!
  Reply With Quote

Old   February 15, 2005, 15:14
Default My guess is you're picking up
  #2
Mattijs Janssens (Mattijs)
Guest
 
Posts: n/a
My guess is you're picking up the zlib/Makefile instead of the one from wmake ($WM_DIR/Makefile).

Does it work if you do

wmake libso zlib-1.2.1

from one directory up?

Mattijs
  Reply With Quote

Old   February 15, 2005, 16:02
Default Unfortunately that did not so
  #3
JLepolt (Jlepolt)
Guest
 
Posts: n/a
Unfortunately that did not solve my problem. I made sure that that wmake was correctly using the ($WM_DIR/Makefile) file rather than the one located in the zlib directory. Is there a chance that I would need to modify the Makefile?

Thanks
  Reply With Quote

Old   February 15, 2005, 18:50
Default You should have no need to mo
  #4
Michael Conry (Conry)
Guest
 
Posts: n/a
You should have no need to modify the Makefile.

I suspect you're still not in fact running wmake. What works for me is to begin by changing directory into the directory OpenFOAM-1.0.2/src

When you type "ls" you should see that this directory contains the folder "zlib-1.2.1".

From this position, typing the command: "wmake libso zlib-1.2.1".

This call to the wmake command then invokes a script that changes into the zlib directory and runs the conventional configure script and invokes make on the resulting Makefile to produce a shared library.

[Don't take the above as gospel! I'm new to FOAM, but I do have some experience of compilation/installation].
  Reply With Quote

Old   February 15, 2005, 19:01
Default That is what I've been doing.
  #5
JLepolt (Jlepolt)
Guest
 
Posts: n/a
That is what I've been doing. In fact, I've verified it by looking at the wmake script and going step by step. I should probably be honest with you though...I'm trying to compile this on a Mac. Someone's gotta do it, right? I know that there are no Mac binaries available at this time...that's why I'm trying to come up with one myself. I'm trying to figure out the build process piece by piece and modify it as needed. I recently figured out my previous problem and have since found more issues. One is the fact that Macs don't use .so files, they use .dylib files. The current error I'm receiving when I try to do the "wmake libso zlib-1.2.1" is:

libso
/Users/lepolt/OpenFOAM/OpenFOAM-1.0.2/wmake/bashScripts/mkObjectDir libNULL
rm -f so_locations
cd Make/powerpcGccOpt ; \
g++ -L/Users/lepolt/OpenFOAM/OpenFOAM-1.0.2/lib/powerpcGccOpt -o libNULL.dylib
powerpc-apple-darwin7-g++-4.0.0: no input files
make: *** [libNULL.dylib] Error 1

It looks like the $MAKE_DIR variable is being set to something gooofy...and in the above when it tries to g++ there is nothing there. Any suggestions here?

Thanks
  Reply With Quote

Old   February 16, 2005, 04:48
Default The libNULL should be libzlib
  #6
Mattijs Janssens (Mattijs)
Guest
 
Posts: n/a
The libNULL should be libzlib (which comes from the 'LIB = $(FOAM_LIBBIN)/libz' setting in Make/files)

wmake is just a shell script which uses a $WM_DIR/Makefile. This in turn pulls in (using the 'include' statement)

- the compilation options from
$WM_DIR/rules/$WM_ARCH/c++
- the files to compile from the local Make/$WM_ARCH/files
- the local compilation and link lines from the local Make/$WM_ARCH/options
- and various other files in Make/$WM_ARCH/ which handle the dependencies

Having differently named .so extension can be handled by changing the 'SO' variable in the $WM_DIR/Makefile. Does changing that help?

Mattijs
  Reply With Quote

Old   February 16, 2005, 18:23
Default Thanks for your help, but I a
  #7
JLepolt (Jlepolt)
Guest
 
Posts: n/a
Thanks for your help, but I am still having problems. Let's go through this step by step, and maybe something will click for me.

You said:
- the compilation options from $WM_DIR/rules/$WM_ARCH/c++
--I have made appropriate changes here

- the files to compile from the local Make/$WM_ARCH/files
--This file is created, but empty

- the local compilation and link lines from the local Make/$WM_ARCH/options
--This file is created, but empty

- and various other files in Make/$WM_ARCH/ which handle the dependencies
--These files are all created, but contain no context

Any suggestions??? Thanks so much
  Reply With Quote

Old   February 17, 2005, 18:29
Default I'm not an expert, but neithe
  #8
Eugene de Villiers (Eugene)
Guest
 
Posts: n/a
I'm not an expert, but neither Make/$WM_ARCH/files nor Make/$WM_ARCH/options should be empty.

I suggest you follow the wmake script to figure out why it is failing.
I think the line:

make -f $WM_DIR/MakefileFiles allFiles

should be creating the missing entries so I would start there.
  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
RPM (+/-) thumb rule studentCFD CFX 1 November 6, 2007 06:19
is there any thumb rule for mesh size Ram Dayal Main CFD Forum 19 October 17, 2006 14:07
Reigles Rule? Frank Wedburn Main CFD Forum 0 November 23, 2005 15:30
Quadrature Rule for Triangles Khurram Main CFD Forum 3 August 28, 2002 19:15
meshing rule Dimitris Tavernarakis Main CFD Forum 1 May 16, 2001 14:34


All times are GMT -4. The time now is 05:06.