Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation problems - Linux Mint 17.3 #1

Open
NeonKnightOA opened this issue Nov 29, 2017 · 2 comments
Open

Compilation problems - Linux Mint 17.3 #1

NeonKnightOA opened this issue Nov 29, 2017 · 2 comments

Comments

@NeonKnightOA
Copy link

NeonKnightOA commented Nov 29, 2017

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?

@mczero80
Copy link
Owner

mczero80 commented Dec 6, 2017

Not really, I haven't looked into it for a long time.
What compiler and OS do you use?

@NeonKnightOA
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants