Last night i compiled OpenArena on Haiku, after some headers problems and little hack the code finally compiled on Haiku, but when i try to load the game, it run in a black screen and then i need to kill the program.
I created a page to describe the procedure :
http://www.bluetechnoids.org/wiki/doku.php?id=openarenaWhat can cause this problem? 3D acceleration?
~/Desktop/openarena-0.8.1> ./openarena.i386 codered +set r_gldriver libGL.so +se
t r_allowSoftwareGL 1
ioq3+oa 1.35 Haiku-i386 Jun 19 2009
----- FS_Startup -----
Current search path:
/boot/home/.openarena/baseoa
./baseoa
----------------------
0 files in pk3 files
execing default.cfg
couldn't exec q3config.cfg
couldn't exec autoexec.cfg
Hunk_Clear: reset the hunk ok
----- Client Initialization -----
Couldn't read q3history.
----- Initializing Renderer ----
-------------------------------
QKEY found.
----- Client Initialization Complete -----
----- R_Init -----
SDL using driver "bwindow"
Initializing OpenGL display
Estimated display aspect: 1.333
...setting mode 3: 640 480
Kill Thread
I have another question, when compiling gcc says to me an error about this struct contained in renderer/tr_image_pcx.h :
typedef struct {
char manufacturer;
char version;
char encoding;
char bits_per_pixel;
unsigned short xmin,ymin,xmax,ymax;
unsigned short hres,vres;
unsigned char palette[48];
char reserved;
char color_planes;
unsigned short bytes_per_line;
unsigned short palette_type;
unsigned short hscreensize, vscreensize;
char filler[54];
unsigned char data[];
} pcx_t;
the error was related the last member (data[]) :
CC code/renderer/tr_image_pcx.c
/boot/home/Desktop/openarena-engine-0.8.1-haiku/code/renderer/tr_image_pcx.c:48: field `data' has incomplete type
I setted an arbitrary value to the array, what is the exact value? or how can i solve this problem?
thanks for the help!