From owner-freebsd-multimedia Sat Sep 4 16: 9: 4 1999 Delivered-To: freebsd-multimedia@freebsd.org Received: from herring.nlsystems.com (nlsys.demon.co.uk [158.152.125.33]) by hub.freebsd.org (Postfix) with ESMTP id F09DB14C91 for ; Sat, 4 Sep 1999 16:08:48 -0700 (PDT) (envelope-from dfr@nlsystems.com) Received: from salmon.nlsystems.com (salmon.nlsystems.com [10.0.0.3]) by herring.nlsystems.com (8.9.3/8.8.8) with ESMTP id AAA46862; Sun, 5 Sep 1999 00:09:54 +0100 (BST) (envelope-from dfr@nlsystems.com) Date: Sun, 5 Sep 1999 00:09:54 +0100 (BST) From: Doug Rabson To: Marc van Woerkom Cc: multimedia@freebsd.org Subject: Re: New 3D software available In-Reply-To: <199909042143.XAA12273@oranje.my.domain> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Sat, 4 Sep 1999, Marc van Woerkom wrote: > Hello Doug! > > So, I tried to build QDraw 0.5 under -CURRENT. > This is my recipe to get it compiled. > > Should I roll a port? Possibly :-) > > > -- QDraw 0.5 ------------------------------------------------------------------ > > 1. copy paths.mk-dist to paths.mk > > > 2. put in your path, remove the A from "Aunix" further down ^^^^^ I fixed that. I was rushing things a bit right before the release :-) > uncomment aalib > > --- paths.mk-dist Tue Aug 31 18:17:03 1999 > +++ paths.mk Sat Sep 4 23:11:56 1999 > @@ -25,7 +25,7 @@ > # Set Q_ROOT to the directory containing the Q source tree > # > #Q_ROOT = d:/src/Q > -Q_ROOT = /usr/local/src/Q > +Q_ROOT = /home/marc/projects/3d/qdraw/QDraw-0.5 > > # Set OBJDIR to a directory relative to Q_ROOT where object files will > # be built. > @@ -43,7 +43,7 @@ > # platforms are win32 and unix. > # > #platform = win32 > -platform = Aunix > +platform = unix > > # Set build to the name of the build. Supported builds are 'debug' for > # optimised code with debugging information, 'release' for optimised > @@ -73,5 +73,5 @@ > # On FreeBSD or Linux, set aalib to anything to enable building the > # Ascii Art renderer. > # > -#aalib=t > +aalib=t > > > 3. create these directories > > gmake objtree > > > 4. create these symbolic links > > cd lib/debug > ln -s ../../obj/debug/maths/sdk/libqmaths.so libqmaths.so > ln -s ../../obj/debug/drivers/qsys/libqsys.so libqsys.so > ln -s ../../obj/debug/image/sdk/libqimage.so libqimage.so > ln -s ../../obj/debug/drivers/manager/libdevices.so libdevices.so > ln -s ../../obj/debug/drivers/memory/unix/libQMemoryUnix.so libQMemoryUnix.so > ln -s ../../obj/debug/drivers/os/x11/libQOSX11.so libQOSX11.so > ln -s ../../obj/debug/drivers/display/ogl/libQDisplayOpenGL.so libQDisplayOpenGL.so This shouldn't be necessary if you build with 'gmake install'. The libraries are copied to lib/debug. > > > 5. If you use aalib-1.2, like I do, patch this headerfile: > > --- /usr/local/include/aalib.h.orig Sat Sep 4 23:00:16 1999 > +++ /usr/local/include/aalib.h Sat Sep 4 23:01:13 1999 > @@ -183,7 +183,7 @@ > typedef struct aa_linkedlist aa_linkedlist; > typedef struct aa_linkedlist aa_reclist; > typedef struct aa_renderparams aa_renderparams; > -typedef struct aa_hardwareparams aa_hardware_params; > +typedef struct aa_hardware_params aa_hardware_params; > typedef struct aa_driver aa_driver; > typedef struct aa_font aa_font; > typedef struct aa_format aa_format; I noticed that too. This is a bug with aalib - I guess we should add this patch to aalib and submit to the author. > > > 6. compile > > gmake > gmake install Just use 'gmake install' and it will work without the symlinks. > > You should find several executables in bin/debug and the links in lib/debug > should have been replaced by copies of the libs themselves > > > 7. have fun > > cd bin/debug > ./teapot > > > I tried this under X11 (with riva-glx 3d acceleration) and got a nice > animated teapot, rendered by Mesa. > > Doing this in a text session is enjoyable too, as it gets rendered in > ASCII by aalib! (very retro :) My favourite sample is 'water' :-). Doesn't look too good with the aalib driver though... -- Doug Rabson Mail: dfr@nlsystems.com Nonlinear Systems Ltd. Phone: +44 181 442 9037 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message