You are not logged in.

#1 2010-06-13 01:25:00

G7BLOCK
Member
Registered: 2009-09-26
Posts: 12

[SOLVED] help with quake 2

hi, I want to play quake 2 with my friends. Wine works, but i would like to run the game natively.  Quake 4 runs fine on this computer natively..  I've tried several PKGBUILDs from the AUR (qudos-svn, quake2 r0.16.1-8, kmquake2) and they all fail when building.

i will post there errors here:

qudos-svn:

8uild/ref_glx/gl_image.o src/ref_gl/gl_image.c
src/ref_gl/gl_image.c:915:1: error: conflicting types for 'jpeg_mem_src'
/usr/include/jpeglib.h:959:14: note: previous declaration of 'jpeg_mem_src' was here
src/ref_gl/gl_image.c: In function 'LoadPNG':
src/ref_gl/gl_image.c:1183:2: warning: passing argument 3 of 'png_get_IHDR' from incompatible pointer type
/usr/include/png.h:2363:8: note: expected 'png_uint_32 *' but argument is of type 'long unsigned int *'
src/ref_gl/gl_image.c:1183:2: warning: passing argument 4 of 'png_get_IHDR' from incompatible pointer type
/usr/include/png.h:2363:8: note: expected 'png_uint_32 *' but argument is of type 'long unsigned int *'
src/ref_gl/gl_image.c:1189:3: warning: implicit declaration of function 'png_set_gray_1_2_4_to_8'
make: *** [QuDos-build/ref_glx/gl_image.o] Error 1

quake2 r0.16.1-8 (the whole build was littered with warnings, but there's too many to post here)

src/ref_candygl/gl_image.c: In function 'jpeg_mem_src':
src/ref_candygl/gl_image.c:783:35: warning: assignment from incompatible pointer type
src/ref_candygl/gl_image.c: In function 'GL_FreeUnusedImages':
src/ref_candygl/gl_image.c:1789:3: warning: pointer targets in passing argument 2 of 'qglDeleteTextures' differ in signedness
src/ref_candygl/gl_image.c:1789:3: note: expected 'const GLuint *' but argument is of type 'int *'
src/ref_candygl/gl_image.c: In function 'GL_ShutdownImages':
src/ref_candygl/gl_image.c:1944:3: warning: pointer targets in passing argument 2 of 'qglDeleteTextures' differ in signedness
src/ref_candygl/gl_image.c:1944:3: note: expected 'const GLuint *' but argument is of type 'int *'
make[1]: *** [releasei386/ref_gl/gl_image.o] Error 1
make: *** [build_release] Error 2

kmquake2:

renderer/r_image.c:842:6: error: conflicting types for 'jpeg_mem_src'
/usr/include/jpeglib.h:959:14: note: previous declaration of 'jpeg_mem_src' was here
renderer/r_image.c: In function 'LoadPNG':
renderer/r_image.c:1124:2: warning: passing argument 3 of 'png_get_IHDR' from incompatible pointer type
/usr/include/png.h:2363:8: note: expected 'png_uint_32 *' but argument is of type 'long unsigned int *'
renderer/r_image.c:1124:2: warning: passing argument 4 of 'png_get_IHDR' from incompatible pointer type
/usr/include/png.h:2363:8: note: expected 'png_uint_32 *' but argument is of type 'long unsigned int *'
make[1]: *** [build_release/ref_gl/r_image.o] Error 1
make: [release] Error 2 (ignored)
install: cannot stat `quake2/baseq2/*.so': No such file or directory

any help great appreciated, thanks

Last edited by G7BLOCK (2010-06-13 04:31:52)

Offline

#2 2010-06-13 02:40:57

Square
Member
Registered: 2008-06-11
Posts: 435

Re: [SOLVED] help with quake 2

I haven't looked into kmquake2 or qudos much, but I am starting my own branch of aprq2 which is in my opinion the best engine available for linux. You can check it out here: http://code.google.com/p/cleanq2/ and there are patches in the same directory of the makefile for libpng14 and libjpeg8. I run this engine personally and play quake 2 all the time smile

Unfortunately, saving/loading is broken in pretty much all modern engines, so if you plan to play offline you should probably go with the stock engine (or test and be sure before getting too far into it).

In any case, here is the documentation for the libpng update if you want to patch any of those others:
http://libpng.sourceforge.net/ANNOUNCE-1.4.0.txt

...and you can use my libjpeg patch as a reference for what needs to be done for that (in the cleanq2 source).

Alternatively, you could install the necessary libpng and libjpeg versions from the AUR alongside your current versions.

Last edited by Square (2010-06-13 02:45:06)


 

Offline

#3 2010-06-13 04:35:02

G7BLOCK
Member
Registered: 2009-09-26
Posts: 12

Re: [SOLVED] help with quake 2

i just tried cleanq2. it built fine after applying the patches. I also had to rename "PAK0.PAK" to all lower case to get it to work. Works brilliantly, thanks.

Last edited by G7BLOCK (2010-06-13 04:35:25)

Offline

Board footer

Powered by FluxBB