[SDL] RE: Newbie - can't build test programs
Marc MacIntyre
marcmac at marcmac.com
Tue Oct 2 08:34:00 PDT 2001
Replace your copy of gcc. RH7.1 ships with ( I believe ) 2.96.3, which
is broken - go to 3.x or 2.95.x
(Tue, Oct 02, 2001 at 01:55:54PM +0100)
Barbara Copeman (qetzal at ntlworld.com) said:
> Hi,
>
> I am building ( or trying to) on RH 7.1.
> I removed all the config.cache files and did a make clean before re-running
> configure. I added options to --disable-video-dga as well as any sound
> support and anything that referenced dga in the output from
> "configure --help".
>
> Everything built and installed OK but I am still unable to build anything in
> the test directory. I've tried a make all and a make on each individual file
> but I get the same thing.
>
> Any takers?
>
> Failing that can somebody give me a URL for a good RPM of both the runtime
> and development packages and some tutorial examples to help me get up and
> running?
>
> TIA,
>
> Richard.
>
> > Does anyone have any advice for me?
> > It seems that almost every call made in libSDL.a contains an undefined
> > reference to something or other. Is this normal?
>
> Rebuild the SDL library, but when you configure it, do so like this:
>
> ./configure --disable-video-dga
>
> You might have to disable other SDL drivers if the support is missing on
> your system.
>
> --ryan.
>
> ---------------------original info------------------------------------
>
> which sdl-config:
> /usr/bin/sdl-config
>
> sdl-config --version:
> 1.2.2
>
> locate libSDL:
> /usr/lib/libSDL-1.1.so.0
> /usr/lib/libSDL-1.1.so.0.5.2
> /usr/lib/libSDL.a
> /usr/lib/libSDL.so
> /usr/lib/libSDLmain.a
>
> tail config.log:
> configure:1863: gcc -o conftest -g -O2 conftest.c 1>&5
> configure:1927: checking for shmat
> configure:1955: gcc -o conftest -g -O2 conftest.c 1>&5
> configure:2028: checking for IceConnectionNumber in -lICE
> configure:2047: gcc -o conftest -g -O2 -L/usr/X11R6/lib conftest.c
> -lICE 1>&5
> configure:2123: checking for sdl-config
> configure:2158: checking for SDL - version >=3D 1.2.0
> configure:2243: gcc -o conftest -g -O2 -I/usr/X11R6/include
> -I/usr/include/SDL -D_REENTRANT conftest.c -L/usr/lib
> -Wl,-rpath,/usr/lib -lSDL -lpthread 1>&5
> configure:2330: checking for OpenGL support
> configure:2347: gcc -c -g -O2 -I/usr/X11R6/include -I/usr/include/SDL
> -D_REENTRANT conftest.c 1>&5
>
> errors:
>
> gcc -g -O2 -I/usr/X11R6/include -I/usr/include/SDL -D_REENTRANT
> -DHAVE_OPENGL -o testver testver.o -L/usr/lib -Wl,-rpath,/usr/lib
> -lSDL -lpthread
> gcc -g -O2 -I/usr/X11R6/include -I/usr/include/SDL -D_REENTRANT
> -DHAVE_OPENGL -o testver testver.o -L/usr/lib -Wl,-rpath,/usr/lib
> -lSDL -lpthread
>
>
>
> _______________________________________________
> SDL mailing list
> SDL at libsdl.org
> http://www.libsdl.org/mailman/listinfo/sdl
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Marc MacIntyre
marcmac at marcmac.com
You can lead a horticulture but you can't make her think.
- Dorothy Parker
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20011002/9dc1c89c/attachment.pgp>
More information about the SDL
mailing list