SDL 1.2.8-8

D2X-XL - Descent II update for modern systems with many new features and enhanced graphics. Home Page

Moderators: Grendel, Aus-RED-5

Post Reply
crossmr
DBB Cadet
DBB Cadet
Posts: 5
Joined: Thu Jan 12, 2006 12:12 am
Location: Canada

SDL 1.2.8-8

Post by crossmr »

I'm running into an issue with installing this. Its asking for this version of SDL, yet it seems unavailable. A google search reveals that there is a SUSE RPM, but even libsdl.com doesn't have this release of it.

I currently have Fedora Core 4. And I actually have a newer version of SDL now: 1.2.9-1

Can anyone point me to where I should proceed to continue the installation? If there is a version of 1.2.8-8 out there that works for FC4 a link to it, and instructions on how to overwrite the newer copy of it that I have installed would be handy.
User avatar
Diedel
D2X Master
D2X Master
Posts: 5278
Joined: Thu Nov 05, 1998 12:01 pm
Contact:

Post by Diedel »

Edit configure.ac and replace 1.2.8-8 with 1.2.9-1 (there is only one occurence). If that doesn't work, you need to place sdl-config in some folder contained in your PATH. You need to sh autogen.sh after that and run ./configure again.
crossmr
DBB Cadet
DBB Cadet
Posts: 5
Joined: Thu Jan 12, 2006 12:12 am
Location: Canada

Post by crossmr »

Thanks, I'll give that a shot. It drove me nuts for like an hour last night trying to find a copy of that version.
crossmr
DBB Cadet
DBB Cadet
Posts: 5
Joined: Thu Jan 12, 2006 12:12 am
Location: Canada

Post by crossmr »

I've ran into a new issue. I don't seem to have sdl-config.
I definitely have SDL1.2.9-1 installed using:
rpm -qa | grep sdl

however, I did a find -name sdl and the only thing that came up was:
./usr/local/share/d2x-xl/src/arch/ogl/sdlgl.c
./usr/local/share/d2x-xl/src/arch/sdl
./usr/src/kernels/2.6.14-1.1653_FC4-i686/include/linux/sdla_asy.h
./usr/src/kernels/2.6.14-1.1653_FC4-i686/include/linux/sdla.h
./usr/src/kernels/2.6.14-1.1653_FC4-i686/include/linux/sdlasfm.h
./usr/src/kernels/2.6.14-1.1653_FC4-i686/include/linux/sdla_chdlc.h
./usr/src/kernels/2.6.14-1.1653_FC4-i686/include/linux/sdlapci.h
./usr/src/kernels/2.6.14-1.1653_FC4-i686/include/linux/sdla_ppp.h
./usr/src/kernels/2.6.14-1.1653_FC4-i686/include/linux/sdla_x25.h
./usr/src/kernels/2.6.14-1.1653_FC4-i686/include/linux/sdla_fr.h
./usr/src/kernels/2.6.14-1.1653_FC4-i686/include/linux/sdladrv.h
./usr/src/kernels/2.6.11-1.1369_FC4-i686/include/linux/sdla_asy.h
./usr/src/kernels/2.6.11-1.1369_FC4-i686/include/linux/sdla.h
./usr/src/kernels/2.6.11-1.1369_FC4-i686/include/linux/sdlasfm.h
./usr/src/kernels/2.6.11-1.1369_FC4-i686/include/linux/sdla_chdlc.h
./usr/src/kernels/2.6.11-1.1369_FC4-i686/include/linux/sdlapci.h
./usr/src/kernels/2.6.11-1.1369_FC4-i686/include/linux/sdla_ppp.h
./usr/src/kernels/2.6.11-1.1369_FC4-i686/include/linux/sdla_x25.h
./usr/src/kernels/2.6.11-1.1369_FC4-i686/include/linux/sdla_fr.h
./usr/src/kernels/2.6.11-1.1369_FC4-i686/include/linux/sdladrv.h
./usr/include/linux/sdla_asy.h
./usr/include/linux/sdla.h
./usr/include/linux/sdlasfm.h
./usr/include/linux/sdla_chdlc.h
./usr/include/linux/sdlapci.h
./usr/include/linux/sdla_ppp.h
./usr/include/linux/sdla_x25.h
./usr/include/linux/sdla_fr.h
./usr/include/linux/sdladrv.h
./usr/share/vim/vim63/syntax/sdl.vim
./usr/share/vim/vim63/indent/sdl.vim
./usr/share/a2ps/sheets/sdl88.ssh


this was run from system root.
Any thoughts on this?
I did change the value but it still failed I think because it gave \"no\" on sdl-config
User avatar
Diedel
D2X Master
D2X Master
Posts: 5278
Joined: Thu Nov 05, 1998 12:01 pm
Contact:

Post by Diedel »

I cannot help you further on that. I was searching through all the make files myself to find a hint about this. Try to Google for sdl-config, maybe that will give you some hints.

Today I tried to install SDL_mixer, but I never got a libSDL_mixer.a in /usr/libs. So I got the source code and compiled it - still nowhere a sign of libSDL_mixer.a. I found a similar file and copy/renamed it to /usr/lib, hoping this will work.

And there are Linux users that have the cheek to mock at Windows. Ridiculous. Linux is a PITA; I think that everytime I try to install something new.
User avatar
simX
DBB Ace
DBB Ace
Posts: 103
Joined: Wed Jan 04, 2006 7:21 am
Location: Bay Area, CA
Contact:

Post by simX »

If I recall correctly from my own issues with compiling D2X (not D2X-XL), sdl-config is installed with the developer version of SDL, but not with the regular \"runtime\" versions. You may need to do some compiling/configuring for the developer version, though -- it's a big hassle, but you can get it to work.
crossmr
DBB Cadet
DBB Cadet
Posts: 5
Joined: Thu Jan 12, 2006 12:12 am
Location: Canada

Post by crossmr »

well I got further (at libsdl there is a precompiled RPM of devel version)
however now I'm jammed on:
GL not found, --with-opengl cannot be used

I know I have the latest version of Mesa installed with opengl, so anyone know what this is talking about?

[edit] finally. I installed this package via yum:
gtkglext-devel

which installed about 10 different dependencies and one of them was the right trick.
./configure has run correctly.
crossmr
DBB Cadet
DBB Cadet
Posts: 5
Joined: Thu Jan 12, 2006 12:12 am
Location: Canada

Post by crossmr »

and now Make fails in a firery ball.
Numerous massive errors.

Code: Select all

make  all-recursive
make[1]: Entering directory `/usr/local/share/d2x-xl/src'
Making all in 2d
make[2]: Entering directory `/usr/local/share/d2x-xl/src/2d'
 cd .. && /bin/sh ./config.status 2d/Makefile depfiles
config.status: creating 2d/Makefile
config.status: executing depfiles commands
make[2]: Leaving directory `/usr/local/share/d2x-xl/src/2d'
make[2]: Entering directory `/usr/local/share/d2x-xl/src/2d'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/local/share/d2x-xl/src/2d'
Making all in 3d
make[2]: Entering directory `/usr/local/share/d2x-xl/src/3d'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/local/share/d2x-xl/src/3d'
Making all in arch
make[2]: Entering directory `/usr/local/share/d2x-xl/src/arch'
Making all in linux
make[3]: Entering directory `/usr/local/share/d2x-xl/src/arch/linux'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/usr/local/share/d2x-xl/src/arch/linux'
Making all in ogl
make[3]: Entering directory `/usr/local/share/d2x-xl/src/arch/ogl'
if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../include -I../../arch/include -I../../main    -I ../../arch/linux/include -I/usr/include/SDL -D_REENTRANT -pipe -O2 -Wall -Wno-char-subscripts   -MT fbuffer.o -MD -MP -MF \".deps/fbuffer.Tpo\" -c -o fbuffer.o fbuffer.c; \then mv -f \".deps/fbuffer.Tpo\" \".deps/fbuffer.Po\"; else rm -f \".deps/fbuffer.Tpo\"; exit 1; fi
fbuffer.c: In function ‘ogl_fbuffer_avail’:
fbuffer.c:69: warning: implicit declaration of function ‘glCheckFramebufferStatusEXT’
fbuffer.c:69: error: ‘GL_FRAMEBUFFER_EXT’ undeclared (first use in this function)
fbuffer.c:69: error: (Each undeclared identifier is reported only once
fbuffer.c:69: error: for each function it appears in.)
fbuffer.c:70: error: ‘GL_FRAMEBUFFER_COMPLETE_EXT’ undeclared (first use in this function)
fbuffer.c:72: error: ‘GL_FRAMEBUFFER_UNSUPPORTED_EXT’ undeclared (first use in this function)
fbuffer.c: In function ‘ogl_create_fbuffer’:
fbuffer.c:87: warning: implicit declaration of function ‘glGenFramebuffersEXT’
fbuffer.c:89: warning: implicit declaration of function ‘glGenRenderbuffersEXT’
fbuffer.c:90: warning: implicit declaration of function ‘glBindFramebufferEXT’
fbuffer.c:90: error: ‘GL_FRAMEBUFFER_EXT’ undeclared (first use in this function)
fbuffer.c:105: warning: implicit declaration of function ‘glGenerateMipmapEXT’
fbuffer.c:106: warning: implicit declaration of function ‘glFramebufferTexture2DEXT’
fbuffer.c:106: error: ‘GL_COLOR_ATTACHMENT0_EXT’ undeclared (first use in this function)
fbuffer.c:107: warning: implicit declaration of function ‘glBindRenderbufferEXT’
fbuffer.c:107: error: ‘GL_RENDERBUFFER_EXT’ undeclared (first use in this function)
fbuffer.c:108: warning: implicit declaration of function ‘glRenderbufferStorageEXT’
fbuffer.c:109: warning: implicit declaration of function ‘glFramebufferRenderbufferEXT’
fbuffer.c:109: error: ‘GL_DEPTH_ATTACHMENT_EXT’ undeclared (first use in this function)
fbuffer.c: In function ‘ogl_destroy_fbuffer’:
fbuffer.c:125: warning: implicit declaration of function ‘glDeleteFramebuffersEXT’
fbuffer.c:128: warning: implicit declaration of function ‘glDeleteRenderbuffersEXT’
fbuffer.c: In function ‘ogl_enable_fbuffer’:
fbuffer.c:142: error: ‘GL_FRAMEBUFFER_EXT’ undeclared (first use in this function)
fbuffer.c: In function ‘ogl_disable_fbuffer’:
fbuffer.c:154: error: ‘GL_FRAMEBUFFER_EXT’ undeclared (first use in this function)
make[3]: *** [fbuffer.o] Error 1
make[3]: Leaving directory `/usr/local/share/d2x-xl/src/arch/ogl'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/share/d2x-xl/src/arch'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/share/d2x-xl/src'
make: *** [all] Error 2
User avatar
Diedel
D2X Master
D2X Master
Posts: 5278
Joined: Thu Nov 05, 1998 12:01 pm
Contact:

Post by Diedel »

Mesa is an \"OpenGL\" API w/o OpenGL certification.

The missing functions and idents listed above are from the OpenGL 2.0 standard.

You can try to examine arch/ogl/fbuffer.c/h for declarations of these idents (bracketed in #ifdef _WIN32 ... #endif) and enable them.

If that doesn't work, all you can do is to set include/ogl_init.h::RENDER2TEXTURE to 0 to completely disable this feature.

This feature only affects camera rendering speed. Cameras are only present in levels of type D2X-XL (a level format extension I have created to allow for adding all the new features of D2X-XL w/o conflicting with other D2 versions), so this shouldn't affect your regular D2 gaming experience. Above that, D2X-XL levels do not necessarily contain cameras, so even here you will only notice a performance hit in the very few levels that do (and nobody plays anyway, sniff :roll: ).
Post Reply