How-to bugfix segfault with ringed planets, Mandrake 9.0
Posted: 06.10.2002, 09:13
Well my graphic card is an ATI Rage 128 but I think this might happen with other cards...
Fist of all what I did was to go to http://www.rpmfind.net and download the latest
celestia-1.2.4-4mdk.src.rpm
I installed it ans did:
su
mv /celestia.spec /usr/src/RPM/SPECS
mv celestia* /usr/src/RPM/SOURCES
then inside celestia-1.2.4.tar.bz2 with emacs I edited the file src/celengine/render.cpp, line:
_________________________________________________________________
glGetIntegerv(GL_MAX_TEXTURE_UNITS_ARB,(GLint*) &nSimultaneousTextures);
I added the line:
nSimultaneousTextures = 1;
right underneath
__________________________________________________________________
then I removed the backup render.cpp~
and recompressed to celestia-1.2.4.tar.bz2
I also modified the celestia.spec, line %configure, and replaced --enable-gtk by --without-gtk, because the gtk GUI makes my navigation spasmodic like.
then I rebuilt the whole thing
rpm -ba celestia.spec and it works fine
Cheers,
M.E.
Fist of all what I did was to go to http://www.rpmfind.net and download the latest
celestia-1.2.4-4mdk.src.rpm
I installed it ans did:
su
mv /celestia.spec /usr/src/RPM/SPECS
mv celestia* /usr/src/RPM/SOURCES
then inside celestia-1.2.4.tar.bz2 with emacs I edited the file src/celengine/render.cpp, line:
_________________________________________________________________
glGetIntegerv(GL_MAX_TEXTURE_UNITS_ARB,(GLint*) &nSimultaneousTextures);
I added the line:
nSimultaneousTextures = 1;
right underneath
__________________________________________________________________
then I removed the backup render.cpp~
and recompressed to celestia-1.2.4.tar.bz2
I also modified the celestia.spec, line %configure, and replaced --enable-gtk by --without-gtk, because the gtk GUI makes my navigation spasmodic like.
then I rebuilt the whole thing
rpm -ba celestia.spec and it works fine
Cheers,
M.E.