Dr. Fungi Open GL demo ported to FreeBSD 4.7-STABLE

Dr. Fungi Open GL demo ported to FreeBSD 4.7-STABLE

Post by Baby Pean » Mon, 09 Dec 2002 01:20:47



requires packages:

Mesa-3.4.2_2        A graphics library similar to SGI's OpenGL
XFree86-libraries-4.2.1_4 XFree86-4 include/(shared) library kit
sdl-1.2.4_1         Cross-platform multi-media development API
(developm. vers.
gmake-3.80          GNU version of 'make' utility

Maybe others too.  Feedback would help refine this list.

Original source http://ftp.kameli.net/pub/fit/dr_fungi/

Main FIT page http://www.kameli.net/fit/

Spotted by me on http://unixscene.kameli.net/?choice=demos

My port to FreeBSD http://hermes.tubas.net/FreeBSD/OpenGL/dr_fungi.src.tar.gz

Sample build:

cd ~/tmp/dr_fungi/
gmake
gcc -pthread -DSDL11_HEADERS -I/usr/local/include -I/usr/X11R6/include
-c main.c
gcc -pthread -DSDL11_HEADERS -I/usr/local/include -I/usr/X11R6/include
-c jpeg.c
gcc -pthread -DSDL11_HEADERS -I/usr/local/include -I/usr/X11R6/include
-c kukat.c
gcc -pthread -DSDL11_HEADERS -I/usr/local/include -I/usr/X11R6/include
-c mcubes.c
gcc -pthread -DSDL11_HEADERS -I/usr/local/include -I/usr/X11R6/include
-c halftone.c
gcc -pthread -DSDL11_HEADERS -I/usr/local/include -I/usr/X11R6/include
-c tolppa.c
cd cool_mzx && gmake
gmake[1]: Entering directory `/home/kstailey/tmp/dr_fungi/cool_mzx'
gcc -pthread -DSDL11_HEADERS -funsigned-char -pthread -DSDL11_HEADERS
-I/usr/local/include -I/usr/X11R6/include -c *.c
cool_mzx.c: In function `mix_newhand':
cool_mzx.c:225: warning: initialization from incompatible pointer type
sd_mix.c:62: warning: useless keyword or type name in empty
declaration
sd_mix.c:81: warning: useless keyword or type name in empty
declaration
sd_mix.c: In function `sd_mix_mono':
sd_mix.c:768: warning: passing arg 2 of `sd_c_mono32tom16i' from
incompatible pointer type
ar rc cool_mzx.a pt*.o cool*.o sd*.o
ranlib cool_mzx.a
gmake[1]: Leaving directory `/home/kstailey/tmp/dr_fungi/cool_mzx'
gcc -o dr_fungi main.o jpeg.o kukat.o mcubes.o halftone.o tolppa.o
cool_mzx/cool_mzx.a -pthread -L /usr/local/lib -lSDL-1.1 -L
/usr/X11R6/lib -lGL -ljpeg -lm
strip dr_fungi

Compilation finished at Sat Dec  7 11:19:38