[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: guile-sdl compilation error
From: |
Thien-Thi Nguyen |
Subject: |
Re: guile-sdl compilation error |
Date: |
Mon, 16 Feb 2004 18:13:42 +0100 |
From: address@hidden (klaus schilling)
Date: Mon, 16 Feb 2004 09:46:24 +0100
I get compilation errors for guile-sdl woth guile-sdl 0.2
you should try guile-sdl 0.2.2, which fixes some C pre-processor abuses,
which may be the reason for the errors you see...
and guile 1.6.4.
sdlsurface.x: In function `gsdl_init_surface':
sdlsurface.x:4: `smob' undeclared (first use in this function)
sdlsurface.x:4: (Each undeclared identifier is reported only once
sdlsurface.x:4: for each function it appears in.)
sdlsurface.x:4: warning: `return' with a value, in function returning void
sdlsurface.x:5: warning: `return' with a value, in function returning void
sdlsurface.x:6: warning: `return' with a value, in function returning void
sdlsurface.x:8: parse error before `;'
sdlsurface.x:9: parse error before `surface_p'
sdlsurface.x:21: warning: This file contains more `{'s than `}'s.
sdlsurface.x:7: warning: unused variable `FUNC_NAME'
[...]
what's the reason for the error?
the obnoxious sdlsurface.x seems to be generated on the fly,
another reason may be that the method for generating .x files is buggy.
the configure script prefers "guile-tools c2x" if you have it -- it is
more robust than guile-snarf, which is the fallback. c2x is included w/
guile 1.4.1.98; see <http://www.glug.org/alt/>.
here's a simple script you can use to build things unattended (it
presumes availability of GNU tar and wget in your PATH):
glug="http://www.glug.org"
mkdir -p $HOME/tmp/eval/bin
PATH=$HOME/tmp/eval/bin:$PATH
mkdir -p $HOME/tmp/eval/src+build
cd $HOME/tmp/eval/src+build
wget ${glug}/alt/guile-1.4.1.98.tar.gz
tar xzf guile-1.4.1.98.tar.gz
cd guile-1.4.1.98
./configure --prefix $HOME/tmp/eval
make && make check && make install && make installcheck
cd ..
wget ${glug}/people/ttn/software/guile-sdl/guile-sdl-0.2.2.tar.gz
tar xzf guile-sdl-0.2.2.tar.gz
cd guile-sdl-0.2.2
./configure --prefix $HOME/tmp/eval
make && make check && make install
for the guile-sdl "make check" you can try "make check INTERACTIVE=1"
instead, to enable tests that require user interaction. after you are
done, you can do "rm -rf $HOME/tmp/eval" to clean up everything.
thi