Received: by oss.sgi.com id ; Mon, 14 Feb 2000 13:57:31 -0800 Received: from Cantor.suse.de ([194.112.123.193]:15375 "HELO Cantor.suse.de") by oss.sgi.com with SMTP id ; Mon, 14 Feb 2000 13:57:05 -0800 Received: from Hermes.suse.de (Hermes.suse.de [194.112.123.136]) by Cantor.suse.de (Postfix) with ESMTP id 0FAA81E18D for ; Mon, 14 Feb 2000 22:57:03 +0100 (MET) Received: from Wotan.suse.de (Wotan.suse.de [10.10.0.1]) by Hermes.suse.de (Postfix) with ESMTP id DECDB10A026 for ; Mon, 14 Feb 2000 22:57:02 +0100 (MET) Received: by Wotan.suse.de (Postfix, from userid 268) id 9DE777F86; Mon, 14 Feb 2000 22:57:02 +0100 (MET) Date: Mon, 14 Feb 2000 22:57:02 +0100 From: Stefan Dirsch To: ogl-sample@oss.sgi.com Subject: Re: [ogl-sample] Trouble with generated makefiles Message-ID: <20000214225702.A5531@Wotan.suse.de> References: <01BF770C.083C5DB0.awadell@foliage.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=a8Wt8u1KmwUX3Y2C X-Mailer: Mutt 0.95.4i In-Reply-To: <01BF770C.083C5DB0.awadell@foliage.com>; from Andrea Wadell on Mon, Feb 14, 2000 at 03:52:09PM -0500 Sender: owner-ogl-sample@oss.sgi.com Precedence: bulk Reply-To: ogl-sample@oss.sgi.com Return-Path: X-Orcpt: rfc822;ogl-sample-outgoing --a8Wt8u1KmwUX3Y2C Content-Type: text/plain; charset=us-ascii On Mon, Feb 14, 2000 at 03:52:09PM -0500, Andrea Wadell wrote: > > Hi, > > I'm trying to build the sample implementation following the Quick Recipe > in the Jan 25 release notes. I'm on Linux (redhat 6.1) and using X11 > 3.3.6. I'm having problems with the generated makefile that ends up in > $TOPDIR/gfx/lib/opengl/drivers/DDX.O. gmake gives me errors such as > "missing" or "invalid" separators when it tries to run this generated make > file. I have fixed some problems already - it looked like the single and > double quotes in the generating GNUmakefile (at $TOPDIR/gfx/lib/opengl) > were not being interpreted properly. But I'm wondering if there isn't a > particular shell/settings I should have. I'm new to linux as well as > OpenGL. > > I appreciate your help. > Andrea C. Wadell > awadell@foliage.com > The attached patch may help you ... the trick is to replace 'echo' with 'echo -e'. Otherwise you won't get a tab in the dynamically created Makefiles. Stefan ---------------------------------------------------- Stefan Dirsch SuSE GmbH, Entwicklung Tel: +49-911-7405331 Schanzaeckerstr. 10 FAX: +49-911-7417755 D-90443 Nuernberg http://www.suse.de Germany ---------------------------------------------------- --a8Wt8u1KmwUX3Y2C Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="ogl-sample.20000126.diff" diff -u -r ../main.orig/gfx/lib/glu/GNUmakefile ./gfx/lib/glu/GNUmakefile --- ../main.orig/gfx/lib/glu/GNUmakefile Mon Feb 7 18:36:41 2000 +++ ./gfx/lib/glu/GNUmakefile Mon Feb 7 18:36:54 2000 @@ -46,7 +46,7 @@ LLDLIBS = -lGL -lm ifeq ($(OS),Linux) # There should be a cleaner, version-independent way to do this -LLDLIBS += -L/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66 -lstdc++ +LLDLIBS += -L/usr/lib/gcc-lib/i386-suse-linux/2.95.2 -lstdc++ else LLDLIBS += -lc -lC endif diff -u -r ../main.orig/gfx/lib/glu/libnurbs/nurbtess/monoChain.cc ./gfx/lib/glu/libnurbs/nurbtess/monoChain.cc --- ../main.orig/gfx/lib/glu/libnurbs/nurbtess/monoChain.cc Mon Feb 7 18:36:41 2000 +++ ./gfx/lib/glu/libnurbs/nurbtess/monoChain.cc Mon Feb 7 18:36:54 2000 @@ -82,7 +82,7 @@ } //compare the heads of the two chains -static compChainHeadInY(monoChain* mc1, monoChain* mc2) +static Int compChainHeadInY(monoChain* mc1, monoChain* mc2) { return compV2InY(mc1->getHead()->head(), mc2->getHead()->head()); } diff -u -r ../main.orig/gfx/lib/opengl/GNUmakefile ./gfx/lib/opengl/GNUmakefile --- ../main.orig/gfx/lib/opengl/GNUmakefile Mon Feb 7 18:36:41 2000 +++ ./gfx/lib/opengl/GNUmakefile Mon Feb 7 18:36:54 2000 @@ -58,7 +58,7 @@ drivers/$(GLPRODUCT)/GNUmakefile \ $(NULL) -ECHO = /bin/echo +ECHO = /bin/echo -e ifeq ($(GLOS),"NONE") DIRS += $(GLOS) diff -u -r ../main.orig/gfx/samples/extensions/GNUmakefile ./gfx/samples/extensions/GNUmakefile --- ../main.orig/gfx/samples/extensions/GNUmakefile Mon Feb 7 18:36:42 2000 +++ ./gfx/samples/extensions/GNUmakefile Mon Feb 7 18:37:58 2000 @@ -50,7 +50,7 @@ varray.c \ $(NULL) -LLDLIBS = -lrgb -lglfont -lglut -lGLU -lGL -lXmu -lXt -lXext -lX11 -lm +LLDLIBS = -lrgb -lglfont -lglut -lGLU -lGL -L/usr/X11R6/lib -lXmu -lXt -lXext -lX11 -lm TARGETS = $(subst .c,,$(CFILES)) diff -u -r ../main.orig/gfx/samples/glx/GNUmakefile ./gfx/samples/glx/GNUmakefile --- ../main.orig/gfx/samples/glx/GNUmakefile Mon Feb 7 18:36:42 2000 +++ ./gfx/samples/glx/GNUmakefile Mon Feb 7 18:38:27 2000 @@ -45,7 +45,7 @@ tex3d.c \ $(NULL) -LLDLIBS = -lGLU -lGL -lXmu -lXext -lX11 -lm +LLDLIBS = -lGLU -lGL -L/usr/X11R6/lib -lXmu -lXext -lX11 -lm TARGETS = $(subst .c,,$(CFILES)) diff -u -r ../main.orig/gfx/samples/redbook_2ed/GNUmakefile ./gfx/samples/redbook_2ed/GNUmakefile --- ../main.orig/gfx/samples/redbook_2ed/GNUmakefile Mon Feb 7 18:36:42 2000 +++ ./gfx/samples/redbook_2ed/GNUmakefile Mon Feb 7 18:39:02 2000 @@ -96,7 +96,7 @@ wrap.c \ $(NULL) -LLDLIBS = -lglut -lGLU -lGL -lXmu -lXt -lXext -lX11 -lm +LLDLIBS = -lglut -lGLU -lGL -L/usr/X11R6/lib -lXmu -lXt -lXext -lX11 -lm TARGETS = $(subst .c,,$(CFILES)) diff -u -r ../main.orig/gfx/samples/samples/GNUmakefile ./gfx/samples/samples/GNUmakefile --- ../main.orig/gfx/samples/samples/GNUmakefile Mon Feb 7 18:36:42 2000 +++ ./gfx/samples/samples/GNUmakefile Mon Feb 7 18:39:19 2000 @@ -40,7 +40,7 @@ wave.c \ $(NULL) -LLDLIBS = -lrgb -lglut -lGLU -lGL -lXmu -lXt -lXext -lX11 -lm +LLDLIBS = -lrgb -lglut -lGLU -lGL -L/usr/X11R6/lib -lXmu -lXt -lXext -lX11 -lm TARGETS = $(subst .c,,$(CFILES)) diff -u -r ../main.orig/gfx/samples/xglinfo/GNUmakefile ./gfx/samples/xglinfo/GNUmakefile --- ../main.orig/gfx/samples/xglinfo/GNUmakefile Mon Feb 7 18:36:42 2000 +++ ./gfx/samples/xglinfo/GNUmakefile Mon Feb 7 18:39:55 2000 @@ -42,7 +42,7 @@ xglinfo.c \ $(NULL) -LLDLIBS = -lGLU -lGL -lXext -lXt -lX11 -lm +LLDLIBS = -lGLU -lGL -L/usr/X11R6/lib -lXext -lXt -lX11 -lm TARGETS = xglinfo --a8Wt8u1KmwUX3Y2C--