Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!news.wtal.de!news.tal.de!fu-berlin.de!uni-berlin.de!not-for-mail From: David Kuehling Newsgroups: comp.lang.forth Subject: colorForth on Linux Date: Sun, 19 Feb 2012 00:02:27 +0100 Lines: 45 Message-ID: <87d39b21a4.fsf@snail.Pool> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.uni-berlin.de PTUymZ9ILydG+N8SMxbQNQ7iW/RkewYloukEK+33+32LJpI+U= Cancel-Lock: sha1:qGeHHUriXPrbSTuvmk7q/ebRQJM= User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) Xref: x330-a1.tempe.blueboxinc.net comp.lang.forth:9620 Hi, the Linux ports of colorForth don't seem to be actively maintained currently, so I thought I'd post about my experience here. The XcolorForth/GLcolorForth ports were done by Mark Slicker, whose website seems to have fallen victim to bit-rot. The only copies I can find are those hosted by Tim Neitz [1] or by the ForthFreak wiki [2]. These distributions come with a shell script 'compile' for compilation. To build on 64-bit Linux systems (amd64), that script needs some fixes. You also need to install the required 32-bit libraries and GCC multilib support (on debian try ' sudo apt-get install ia32-libs-dev ia32-libs-gtk gcc-multilib') Here's the fixed GLcolorForth/compile script: --8<-- #!/bin/bash gcc -m32 -g -o glcf main.c mem.s -L /usr/X11R6/lib -lGL -lX11 gcc -m32 -c -o color.o color.s if test -a color.o; then cp color.com blocks ld -m elf_i386 --oformat binary -Ttext `nm glcf | awk '/ xcf$/ {print "0x" $1}'` -o color.com color.o dd if=blocks of=color.com bs=1024 seek=12 skip=12 rm blocks color.o fi --8<-- the resulting 'glcf' executable looks like running properly, but I didn't yet find out how to operate it. The same changes applied to XcolorForth's compile script make it compile; however execution fails after printing 'init kbd.' twice, without any windows opened. Probably the video mode is just not supported here? cheers, David [1] http://www.dnd.utwente.nl/~tim/colorforth/mslicker/GLcolorForth/ [2] http://forthfreak.net/index.cgi?colorForth -- GnuPG public key: http://dvdkhlng.users.sourceforge.net/dk.gpg Fingerprint: B17A DC95 D293 657B 4205 D016 7DEF 5323 C174 7D40