[quake2] Trouble compiling quake2-r0.16 for Solaris and CORONA

coyote at cojot.name coyote at cojot.name
Thu Mar 31 02:08:31 EST 2005


Hi Peter,

Just saw your message (I'm in a different time zone).

The problem is caused by q2.xbm not being found. I admit I haven't maintained 
the corona port since I didn't have the SDK.

The workaround should be pretty simple:

Replace q2.xbm with q2icon.xbm in rw_corona.c.

Also replace
q2_bits with q2icon_bits
q2_width with q2icon_width
q2_height with q2icon_height

I'll commit changes to the CVS tree to fix this.

Please tell me if it works. I have -never- been able to test the corona code 
since I didn't have SunRay and/or the SDK. The code was contributed to me by 
the SUN Quake2 team but I could never test it.

I hope this helps,

Regards,

Vincent

On Wed, 30 Mar 2005, Peter Sarinana wrote:

> Hi
> 
> First off, I have successfully compiled the quake2-r0.16 source for
> Solaris on my SB2500 with BUILD_CORONA=NO. I added the package and
> played the game just fine.
> 
> I have access to the Sunray (corona) SDK and wanted to compile the
> source to work with sunrays.  I set the Makefile.Solaris variables
> properly and run into problems at rw_corona.c.  Any ideas on how I can
> get through this?
> 
> Any help is appreciated
> 
> Thanks
> 
> -peter
> 
> gcc -Wall -pipe -Dstricmp=strcasecmp -DC_ONLY -DRETEX -DSOLARIS
> -DSUNXIL_WARNING_DISABLE -g -DSOLARIS_VERSION='"3.21+r0.16.0 Debug"' -o
> debugsparc/ref_soft/rw_corona.o -c src/solaris/rw_corona.c
> -I/net/sunray.eng/export/vol3/vivekk/corona/1.3++/src/newt/videolib
> In file included from src/solaris/rw_corona.c:27:
> src/solaris/newt.h:10: warning: ignoring #pragma ident
> src/solaris/rw_corona.c:29:18: q2.xbm: No such file or directory
> src/solaris/rw_corona.c: In function `RW_IN_Init':
> src/solaris/rw_corona.c:136: warning: unused variable `mtype'
> src/solaris/rw_corona.c:137: warning: unused variable `i'
> src/solaris/rw_corona.c: In function `SWimp_InitGraphics':
> src/solaris/rw_corona.c:736: error: `q2_bits' undeclared (first use in
> this function)
> src/solaris/rw_corona.c:736: error: (Each undeclared identifier is
> reported only once
> src/solaris/rw_corona.c:736: error: for each function it appears in.)
> src/solaris/rw_corona.c:736: error: `q2_width' undeclared (first use in
> this function)
> src/solaris/rw_corona.c:736: error: `q2_height' undeclared (first use in
> this function)
> src/solaris/rw_corona.c:675: warning: unused variable `pnum'
> src/solaris/rw_corona.c:675: warning: unused variable `i'
> src/solaris/rw_corona.c: In function `SWimp_SetPalette':
> src/solaris/rw_corona.c:815: warning: implicit declaration of function
> `newt_set_palette'
> src/solaris/rw_corona.c: At top level:
> src/solaris/rw_corona.c:56: warning: `config_notify' defined but not used
> src/solaris/rw_corona.c:59: warning: `is_double_buffered' defined but
> not used
> src/solaris/rw_corona.c:107: warning: `ymap' defined but not used
> src/solaris/rw_corona.c:108: warning: `umap' defined but not used
> src/solaris/rw_corona.c:109: warning: `vmap' defined but not used
> src/solaris/rw_corona.c:301: warning: `create_xil_window' defined but
> not used
> make[1]: *** [debugsparc/ref_soft/rw_corona.o] Error 1
> make[1]: Leaving directory `/var/tmp/quake2'
> make: *** [build_debug] Error 2
> 
> 
> 
> Makefile.Solaris
> -----------------
> # start of configurable options
> 
> # Here are your build options:
> # (Note: not all options are available for all platforms).
> # quake2 (uses OSS for sound, cdrom ioctls for cd audio) is
> automatically built.
> # game$(ARCH).so is automatically built.
> BUILD_SDLQUAKE2=YES	# sdlquake2 executable (uses SDL for cdrom and sound)
> BUILD_SVGA=NO		# SVGAlib driver. Seems to work fine.
> BUILD_X11=YES		# X11 software driver. Works somewhat ok.
> BUILD_GLX=YES		# X11 GLX driver. Works somewhat ok.
> BUILD_FXGL=NO		# FXMesa driver. Not tested. (used only for V1 and V2).
> BUILD_SDL=YES		# SDL software driver. Works fine for some people.
> BUILD_SDLGL=YES		# SDL OpenGL driver. Works fine for some 
> people.
> BUILD_CORONA=YES	# SunRay Terminal driver. Tested by SUN, untested by
> others..
> BUILD_XIL=YES		# Sun Solaris XIL (X11 Imaging Library, provides DGA
> accelration).
> BUILD_CTFDLL=YES	# game$(ARCH).so for ctf
> BUILD_XATRIX=NO		# game$(ARCH).so for xatrix (see README.r for 
> details)
> BUILD_ROGUE=NO		# game$(ARCH).so for rogue (see README.r for 
> details)
> BUILD_DEDICATED=YES	# build a dedicated quake2 server
> BUILD_SOLARIS_PKG=YES	# Build a Solaris package of all of the binaries
> for use with pkgadd.
> BUILD_DATA_PKG=YES	# Build a Solaris package of the game (shareware or
> final)
> 			# data files for use with pkgadd.
> BUILD_QMAX=NO		# build the fancier GL graphics
> BUILD_RETEXTURE=YES	# build a version supporting retextured graphics
> STATICSDL=NO
> 
> <snip>
> 
> # For the SunRay Terminal..
> OPENWINHOME=/usr/openwin
> CORONA_BASE_DIR=/net/sunray.eng/export/vol3/vivekk/corona/1.3++/src/newt/videolib
> 
>

-- 
,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,
Vincent S. Cojot, Computer Engineering. STEP project. _.,-*~'`^`'~*-,._.,-*~
Ecole Polytechnique de Montreal, Comite Micro-Informatique. _.,-*~'`^`'~*-,.
Linux Xview/OpenLook resources page _.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'
http://step.polymtl.ca/~coyote  _.,-*~'`^`'~*-,._ coyote at NOSPAM4cojot.name

They cannot scare me with their empty spaces
Between stars - on stars where no human race is
I have it in me so much nearer home
To scare myself with my own desert places.       - Robert Frost





More information about the quake2 mailing list