When compiling with GCC 3.2 I get all sorts of errors of
missing functions.
When adding
#include <cstring.h>
#include <ctype>
#include <math.h>
#include <iostream.h>
On the right places, it compiles. I can then actually view
the intro screen when running the binary(I'm using
duke3d.grp from the retail version), but once I get in the
menu and press enter or press one of the arrow keys,
the game crashes saying something about an GL
Umbrella thing.
Logged In: NO
I get the same error also when compiling...
what are the "right places" exactly? I've been trying to add
those missing headers so it will compile. IF I can get it to
compile, I'll see if I get that GL umbrella error as well...
Red Hat Linux 9
Athlon XP 2100
GeForce3 w/ latest Nvidia drivers
2.4.20-9 kernel
Latest SDL binaries (SDL, image, and mixer)
Logged In: YES
user_id=771536
The "right" places for me were:
source/duke_linux.cpp:
#include <iostream>
include/main_linux.h
#include <iostream>
include/poly.h:
#include <math.h>
include/console.h
#include <iostream>
#include <stdarg.h>
include/GroupFile.h
#include <ctype.h>
With these added, the program compiles (amidst a vast swathe
of type conversion warnings (float <-> int)) and I get the
openduke binary. After figuring out that it expects duke3d.grp
(rather than DUKE3D.GRP as the error message states), I
managed to get the intro screen and the main menu. Any
attempt, however, to display any 3D graphics (the rolling demo
or actually trying to play the game) results in a segfault and the
"SDL Parachute Deployed" message.