On Tue Oct 10 09:38:43 2000, mbrett@xxxxxxxxxxxxxxxxxxxx wrote:
>
> Hmmm. If I "setenv IVROOT $HOME" (or something else user-writeable), I can
> "gmake install" and it works (mostly -- see below). To install it in /
> I'll then have to "gmake clobber ; su - ; setenv IVROOT / ; gmake install"
> which is a waste of time since I've already made it once, and also a bit
> dangerous since I'm building the package as superuser and it has unknown side
> effects.
Let's assume you've got the source installed in ~user/graphics/src in the
inventor subdirectory. Now set IVROOT to ~user/graphics/src, cd to
$IVROOT/inventor, and enter 'gmake install'.
When everything's done, the installed files will be in $IVROOT/usr. Now cd to
$IVROOT and enter 'tar zcvf distribution.tar.gz usr'. You'll have a tarball
that you may unpack anywhere and you only had to 'gmake install' once. (There
are also some demos installed in $IVROOT/opt.)
> Ack! You're right. Would it still be useful to automate the process,
> something like this?:
>
> --- libSoXt/GNUmakefile.orig Mon Sep 18 11:22:53 2000
> +++ libSoXt/GNUmakefile Tue Oct 10 16:52:15 2000
> @@ -3,9 +3,13 @@
>
> LIBDSO = libInventorXt.so
>
> ++ifeq ($(usingLinux), 1)
> ++LIBXP = $(shell if test -r $(X11DIR)/lib/libXp.so ; then echo -lXp; else
> echo
> ; fi)
> ++endif
> +
> LLDLIBS = \
> -lXm -lXt -lXext -lXi -lX11 -lm \
> - -lInventor -lGLU -lGL
> + -lInventor -lGLU -lGL $(LIBXP)
I'll look into adding it.
Jonathan Lim _ Silicon Graphics _ Mountain View
GPS Graphics Computer Systems CA, USA
|