Compilation problems - Linux Mint 17.3
I'm trying to compile KMQuake2 from this repo, and I have this output error in r_image.c
renderer/r_image.c: In function ‘R_LoadTGA’:
renderer/r_image.c:515:4: warning: passing argument 2 of ‘FS_LoadFile’ from incompatible pointer type [enabled by default]
FS_LoadFile( filename, &data );
^
In file included from renderer/r_image.c:23:0:
renderer/r_local.h:938:6: note: expected ‘void **’ but argument is of type ‘byte **’
int FS_LoadFile (char *name, void **buf);
^
renderer/r_image.c: In function ‘R_LoadPNG’:
renderer/r_image.c:1142:5: warning: passing argument 3 of ‘png_get_IHDR’ from incompatible pointer type [enabled by default]
&r_png_handle->colorType, &r_png_handle->interlace, &r_png_handle->compression, &r_png_handle->filter);
^
In file included from renderer/../include/zlibpng/png.h:363:0,
from renderer/r_image.c:27:
renderer/../include/zlibpng/png.h:2174:31: note: expected ‘png_uint_32 *’ but argument is of type ‘int *’
extern PNG_EXPORT(png_uint_32,png_get_IHDR) PNGARG((png_structp png_ptr,
^
renderer/../include/zlibpng/pngconf.h:1337:58: note: in definition of macro ‘PNG_EXPORT’
# define PNG_EXPORT(type,symbol) PNG_IMPEXP type PNGAPI symbol
^
renderer/r_image.c:1142:5: warning: passing argument 4 of ‘png_get_IHDR’ from incompatible pointer type [enabled by default]
&r_png_handle->colorType, &r_png_handle->interlace, &r_png_handle->compression, &r_png_handle->filter);
^
In file included from renderer/../include/zlibpng/png.h:363:0,
from renderer/r_image.c:27:
renderer/../include/zlibpng/png.h:2174:31: note: expected ‘png_uint_32 *’ but argument is of type ‘int *’
extern PNG_EXPORT(png_uint_32,png_get_IHDR) PNGARG((png_structp png_ptr,
^
renderer/../include/zlibpng/pngconf.h:1337:58: note: in definition of macro ‘PNG_EXPORT’
# define PNG_EXPORT(type,symbol) PNG_IMPEXP type PNGAPI symbol
^
renderer/r_image.c: In function ‘R_LoadJPG’:
renderer/r_image.c:1328:3: warning: passing argument 2 of ‘jpeg_read_scanlines’ from incompatible pointer type [enabled by default]
jpeg_read_scanlines(&cinfo, &scanline, 1);
^
In file included from renderer/r_image.c:25:0:
renderer/../include/jpeg/jpeglib.h:976:20: note: expected ‘JSAMPARRAY’ but argument is of type ‘byte **’
EXTERN(JDIMENSION) jpeg_read_scanlines JPP((j_decompress_ptr cinfo,
^
renderer/r_image.c: In function ‘R_InitImages’:
renderer/r_image.c:2525:3: warning: passing argument 2 of ‘FS_LoadFile’ from incompatible pointer type [enabled by default]
FS_LoadFile( "pics/16to8.dat", &glState.d_16to8table );
^
In file included from renderer/r_image.c:23:0:
renderer/r_local.h:938:6: note: expected ‘void **’ but argument is of type ‘unsigned char **’
int FS_LoadFile (char *name, void **buf);
^
make[1]: *** [build_release/ref_gl/r_image.o] Error 1
make[1]: se sale del directorio «/home/neonknightoa/dev/KMQuake2»
make: *** [release] Error 2
Any ideas how to solve this?
Not really, I haven't looked into it for a long time. What compiler and OS do you use?
OS - Linux Mint 17.3 Cinnamon (cannot update to 18.x because I use an ATI graphic card) CC - gcc 4:4.8.2-1ubuntu6