Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Tofik

Pages: [1]
1
Quake / Re: r1q2 how to compile - linux? R1CH 'ard?
« on: August 02, 2019, 04:41:02 AM »
full paste:
https://pastebin.com/mgqmiKhG
Code: [Select]
../../ref_gl/gl_image.c:724:14: error: dereferencing pointer to incomplete type 'png_info' {aka 'struct png_info_def'}
line 724 from gl_image.c:
Code: [Select]
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;
}
second error
Code: [Select]
../../ref_gl/gl_image.c:1523:6: error: conflicting types for 'jpeg_mem_src'
lines from gl_image.c
Code: [Select]
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;
}
errors are related to jpg and png , propably because of new versions of it

libjpeg-dev/disco,now 8c-2ubuntu8 amd64 [installed]
libjpeg-turbo8-dev/disco,now 2.0.1-0ubuntu2 amd64 [installed,automatic]
libjpeg-turbo8/disco,now 2.0.1-0ubuntu2 amd64 [installed,automatic]
libjpeg8-dev/disco,now 8c-2ubuntu8 amd64 [installed,automatic]
libjpeg8/disco,now 8c-2ubuntu8 amd64 [installed,automatic]
libpng-dev/disco,now 1.6.36-6 amd64 [installed]
libpng-tools/disco,now 1.6.36-6 amd64 [installed,automatic]
libpng16-16/disco,now 1.6.36-6 amd64 [installed,automatic]


2
Quake / Re: r1q2 how to compile - linux? R1CH 'ard?
« on: August 01, 2019, 10:50:50 AM »
Quote
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?
I checked and it worked like in tutorial.
No, its landing at same place:
Code: [Select]
make[1]: *** [<builtin>: gl_image.o] Error 1
make[1]: Leaving directory '/home/lsd/r1q2-archive/binaries/ref_gl'
make: *** [Makefile:17: ref_gl] Error 2

Quote
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.

Thats nice to hear and i didnt know about that, and yes since mine "ref_gl" isnt compiling it tries to use ref_softx.

Quote
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.

Code: [Select]
lsd@lsd-K56CB:~/r1q2-archive/binaries$ make install
make: *** No rule to make target 'install'.  Stop.
lsd@lsd-K56CB:~/r1q2-archive/binaries$ ls
Makefile  Sample-OpenGL-Programs  client  game  make.inc  r1q2ded  ref_gl
lsd@lsd-K56CB:~/r1q2-archive/binaries$ cd client/
lsd@lsd-K56CB:~/r1q2-archive/binaries/client$ make install
make: *** No rule to make target 'install'.  Stop.
lsd@lsd-K56CB:~/r1q2-archive/binaries/client$
anyway  ref_gl its r1ch R1GL or just opengl?

3
Quake / Re: r1q2 how to compile - linux? R1CH 'ard?
« on: August 01, 2019, 12:56:35 AM »
thanks for response, but
https://www.wikihow.com/Install-Mesa-(OpenGL)-on-Linux-Mint

im still landing on same spot, don know how to edit path or im supposed to edit every .h file (which can cause more troubles)

ok it makes client
Code: [Select]
====== 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 directory
Could 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 directory
Refresh failed
Couldn't fall back to software refresh!
Error: Couldn't fall back to software refresh!

but it has missing viedo drivers where we talked before

os. firstly i thought its good place to make topic, so can moderator move it to thouble shooting ?

4
Quake / Re: r1q2 how to compile - linux? R1CH 'ard?
« on: July 31, 2019, 10:48:04 PM »
Code: [Select]
../../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 1
make[1]: Leaving directory '/home/lsd/Pobrane/r1q2-archive/binaries/ref_gl'
make: *** [Makefile:17: ref_gl] Error 2
Still landing in same spot i pass im not into coding

5
Quake / r1q2 how to compile - linux?
« on: July 31, 2019, 05:47:40 AM »
basing on that source code https://github.com/tastyspleen/r1q2-archive

i was failing at
Code: [Select]
../../qcommon/cmd.c:1546:1: fatal error: opening dependency file .depends/cmd.d:
found solution at --->
https://www.reddit.com/r/linuxquestions/comments/lwi15/problem_compiling_r1q2_on_x86_64_lmde/
my actual problem is
Code: [Select]
    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 1
make[1]: Opuszczenie katalogu '/home/lsd/r1q2-archive/binaries/ref_gl'
make: *** [Makefile:17: ref_gl] Błąd 2
lsd@lsd-K56CB:~/r1q2-archive/binaries$ make client
make -C client
make[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$

6
coop / Re: Custom coop sourcode/dll/so. file from coop v.0.01b
« on: July 21, 2019, 03:07:37 PM »
'QuadzWabbit' it doesnt do anything special i extracted that file and its not comparable dll to that server above^

7
coop / Custom coop sourcode/dll/so. file from coop v.0.01b
« on: July 21, 2019, 09:54:20 AM »
Hi, USA.
I would like to play coop on my own server privately but the mod from quake2://50.209.196.145:27910 that server its way more intuitive for useage.

So can i ask for .dll atleast?

it has few devs mentioned:
Yamagi
Knightmare
Mara'akate'
'Freewill'
"Blinki Coop Cam"

Pages: [1]