Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Sep 1999 00:09:54 +0100 (BST)
From:      Doug Rabson <dfr@nlsystems.com>
To:        Marc van Woerkom <van.woerkom@netcologne.de>
Cc:        multimedia@freebsd.org
Subject:   Re: New 3D software available
Message-ID:  <Pine.BSF.4.10.9909050006020.2081-100000@salmon.nlsystems.com>
In-Reply-To: <199909042143.XAA12273@oranje.my.domain>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.9909050006020.2081-100000>