../../qcommon/cmd.c:1546:1: fatal error: opening dependency file .depends/cmd.d:
image->upload_width, image->upload_height, image->name, image->upload_width * image->upload_height * sizeof(int)); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~../../ref_gl/gl_image.c: In function ‘GL_FreeUnusedImages’:../../ref_gl/gl_image.c:3338:25: warning: passing argument 2 of ‘qglDeleteTextures’ from incompatible pointer type [-Wincompatible-pointer-types] qglDeleteTextures (1, &image->texnum); ^~~~~~~~~~~~~~../../ref_gl/gl_image.c:3338:25: note: expected ‘const GLuint *’ {aka ‘const unsigned int *’} but argument is of type ‘long unsigned int *’../../ref_gl/gl_image.c: In function ‘GL_ShutdownImages’:../../ref_gl/gl_image.c:3492:25: warning: passing argument 2 of ‘qglDeleteTextures’ from incompatible pointer type [-Wincompatible-pointer-types] qglDeleteTextures (1, &image->texnum); ^~~~~~~~~~~~~~../../ref_gl/gl_image.c:3492:25: note: expected ‘const GLuint *’ {aka ‘const unsigned int *’} but argument is of type ‘long unsigned int *’make[1]: *** [<wbudowane>: gl_image.o] Błąd 1make[1]: Opuszczenie katalogu '/home/lsd/r1q2-archive/binaries/ref_gl'make: *** [Makefile:17: ref_gl] Błąd 2lsd@lsd-K56CB:~/r1q2-archive/binaries$ make clientmake -C clientmake[1]: Wejście do katalogu '/home/lsd/r1q2-archive/binaries/client'make[1]: Nie ma nic do zrobienia w 'default'.make[1]: Opuszczenie katalogu '/home/lsd/r1q2-archive/binaries/client'lsd@lsd-K56CB:~/r1q2-archive/binaries$
../../ref_gl/gl_image.c:3492:25: note: expected 'const GLuint *' {aka 'const unsigned int *'} but argument is of type 'long unsigned int *'make[1]: *** [<builtin>: gl_image.o] Error 1make[1]: Leaving directory '/home/lsd/Pobrane/r1q2-archive/binaries/ref_gl'make: *** [Makefile:17: ref_gl] Error 2
====== Quake2 Initialized ======R1Q2 build 8012, compiled Aug 1 2019.http://www.r1ch.net/stuff/r1q2/Linux x86-64 (./quake2-r1q2)Console initialized./dev/dsp: No such file or directoryCould not open /dev/dsp------- Loading ref_softx.so -------LoadLibrary("ref_softx.so") failed: ./ref_softx.so: cannot open shared object file: No such file or directoryRefresh failedCouldn't fall back to software refresh!Error: Couldn't fall back to software refresh!
Did you check the OpenGL installation by copy-pasting their sample code in that Wiki? If it works then cd into the r1q2 binaries and did make ref_gl complete without errors?
make[1]: *** [<builtin>: gl_image.o] Error 1make[1]: Leaving directory '/home/lsd/r1q2-archive/binaries/ref_gl'make: *** [Makefile:17: ref_gl] Error 2
From your post it looks like it worked but your r1q2 client isn’t opening the ref_gl but is opening ref_softx, the software renderer. This is not part of r1q2 but comes with quake2 for Linux. You have me a little confused now.
Did you do ‘make install’ after building r1q2 successfully? I believe this was the next step but check the instructions for r1q2 as I don’t have access right now. R1q2 does assume you have the original Quake2 for Linux previously installed.
lsd@lsd-K56CB:~/r1q2-archive/binaries$ make installmake: *** No rule to make target 'install'. Stop.lsd@lsd-K56CB:~/r1q2-archive/binaries$ lsMakefile Sample-OpenGL-Programs client game make.inc r1q2ded ref_gllsd@lsd-K56CB:~/r1q2-archive/binaries$ cd client/lsd@lsd-K56CB:~/r1q2-archive/binaries/client$ make installmake: *** No rule to make target 'install'. Stop.lsd@lsd-K56CB:~/r1q2-archive/binaries/client$
QuoteDid you check the OpenGL installation by copy-pasting their sample code in that Wiki? If it works then cd into the r1q2 binaries and did make ref_gl complete without errors?QuoteI checked and it worked like in tutorial.Good. It means the GL package installation worked.No, its landing at same place:Code: [Select]make[1]: *** [<builtin>: gl_image.o] Error 1make[1]: Leaving directory '/home/lsd/r1q2-archive/binaries/ref_gl'make: *** [Makefile:17: ref_gl] Error 2Again, you omitted the critical point of error from your "landing at same place".Yes, make lands at the same place but not necessarily for the same cause.Quoteanyway ref_gl its r1ch R1GL or just opengl?Please read the documentation r1ch provided.It looks like there is no install and you didn't read the documentation on what to do once you get a successful build.If there were an install recipe, it will fail if any part of the build failed previously so it's pointless to do it. I haven't built r1ch's code on Linux for several years, I don't remember all the steps.The ref_gl code becomes ref_r1gl.dll on Windows, I can only presume that it is ref_gl.so on Linux and it's "r1gl" as stated. It depends on zlib, libjpeg, libpng so you will need the development libraries for them also.Missing ANY pieces of the packages on which it depends will "land at same place": make[1] Error 1 or Error 2you must scroll up to see the actual point of error in order to diagnose the failure. Omitting that error informationfrom your posts makes it impossible to help you.
I checked and it worked like in tutorial.
anyway ref_gl its r1ch R1GL or just opengl?
../../ref_gl/gl_image.c:724:14: error: dereferencing pointer to incomplete type 'png_info' {aka 'struct png_info_def'}
if (info_ptr->height > MAX_TEXTURE_DIMENSIONS) { png_destroy_read_struct(&png_ptr, &info_ptr, (png_infopp)NULL); ri.FS_FreeFile (PngFileBuffer.Buffer); ri.Con_Printf (PRINT_ALL, "Oversized PNG file: %s\n", name); return; }
../../ref_gl/gl_image.c:1523:6: error: conflicting types for 'jpeg_mem_src'
void jpeg_mem_src (j_decompress_ptr cinfo, byte *mem, int len){ cinfo->src = (struct jpeg_source_mgr *)(*cinfo->mem->alloc_small)((j_common_ptr) cinfo, JPOOL_PERMANENT, sizeof(struct jpeg_source_mgr)); cinfo->src->init_source = jpg_null; cinfo->src->fill_input_buffer = jpg_fill_input_buffer; cinfo->src->skip_input_data = jpg_skip_input_data; cinfo->src->resync_to_restart = jpeg_resync_to_restart; cinfo->src->term_source = jpg_null; cinfo->src->bytes_in_buffer = len; cinfo->src->next_input_byte = mem;}