Building gzdoom in linux with cmake

Advanced OpenGL source port fork from ZDoom, picking up where ZDoomGL left off.
[Home] [Download] [Git builds (Win)] [Git builds (Mac)] [Wiki] [Repo] [Bugs&Suggestions]

Moderator: Graf Zahl

User avatar
Agent ME
Posts: 229
Joined: Mon Jan 02, 2006 12:39
Contact:

Post by Agent ME »

Could it be that those pwads you had loaded had their own light definitions included?
User avatar
GuntherDW
Posts: 117
Joined: Sat Nov 12, 2005 1:53
Location: Belgium, Antwerp
Contact:

Post by GuntherDW »

but i had gl_lights disabled, so why would it waste time on them? (but this is more of a question to graf zahl
and the cmake build works great now yes
(if it's yours), thanks :)
User avatar
Gez
Developer
Developer
Posts: 1399
Joined: Mon Oct 22, 2007 16:47

Post by Gez »

GuntherDW wrote:but i had gl_lights disabled, so why would it waste time on them?
Because you can re-enable them any time you want while the game is run. If it didn't do this, toggling dynlights on/off would require leaving and restarting the game like toggling the renderer between software and OpenGL.
stevenaaus
Posts: 35
Joined: Fri Sep 21, 2007 2:09
Location: Australia
Contact:

AMD64

Post by stevenaaus »

CVS-16082008 64 bit works for me ;>. I saw no video glitches like GuntherDW reported. (I'm using Nvdia proprietry drivers). [G]ZDoom is a great project... blows me away. I did have to make this change to get it to compile, otherwise it gave me an "parse error, tarray.h:298".
[spoiler]

Code: Select all

/mnt/amd64/root/trunk/src#diff -urN tarray.h.orig tarray.h
--- tarray.h.orig       2008-08-19 22:14:33.000000000 +1000
+++ tarray.h    2008-08-19 22:17:01.000000000 +1000
@@ -295,7 +295,7 @@
 class TDeletingArray : public TArray<T, TT>
 {
 public:
-       ~TDeletingArray<T, TT> ()
+       ~TDeletingArray ()
        {
                for (unsigned int i = 0; i < TArray<T,TT>::Size(); ++i)
                {
[/spoiler]
I dont really know C++, or what i'm doing here though. My AMD64 OS is fedora 6, C++ 4.1.1. I didn't have many other problems:

Tutnt.pk3 episode 3, Kdizd and Doom2::map30 seem ok. I did have a bug with tutnt.pk3 episode 4 (into the darkness) though, About 1 second after the dialog finishes, and the map starts, it dumps core. Below is the backtrace and my logs. I dont think the problem is to do with my above hack either... i applied the same patch to my 32 bit system without issue. The problem wasn't with the autosave either. I could restart gzdoom, and then load the autosaves fine. But still after a second or so, it would crash again. "--nosound" makes no diff either.

/root/games/gzdoom#uname -a
Linux localhost.localdomain 2.6.18-1.2798.fc6 #1 SMP Mon Oct 16 14:39:22 EDT 2006 x86_64 x86_64 x86_64 GNU/Linux

/root/games/gzdoom#gzdoom.64 -file wads/tutnt.pk3
[spoiler]GZDoom v1.1.4 - SVN revision 0 - SDL version
Compiled on Aug 19 2008

M_LoadDefaults: Load system defaults.
W_Init: Init WADfiles.
adding /usr/local/games/gzdoom/gzdoom.pk3
adding ./doom2.wad (2919 lumps)
adding wads/tutnt.pk3
adding wads/tutnt.pk3:tnt01_gl.wad (13 lumps)
adding wads/tutnt.pk3:tnt02_gl.wad (13 lumps)
adding wads/tutnt.pk3:tnt03a1_gl.wad (13 lumps)
adding wads/tutnt.pk3:tnt03a2_gl.wad (13 lumps)
adding wads/tutnt.pk3:tnt03b_gl.wad (13 lumps)
adding wads/tutnt.pk3:tnt04a_gl.wad (13 lumps)
adding wads/tutnt.pk3:tnt04b_gl.wad (13 lumps)
adding wads/tutnt.pk3:tnt04c_gl.wad (13 lumps)
adding wads/tutnt.pk3:tnt04cn_gl.wad (13 lumps)
adding wads/tutnt.pk3:tntle_gl.wad (13 lumps)
adding wads/tutnt.pk3:GLDEFS.wad (2 lumps)
adding wads/tutnt.pk3:TNTRES.WAD (6433 lumps)
adding wads/tutnt.pk3:VOICEACT.WAD (43 lumps)
adding wads/tutnt.pk3:endmap01_gl.wad (13 lumps)
adding wads/tutnt.pk3:intermap_gl.wad (35 lumps)
adding wads/tutnt.pk3:titlemap_gl.wad (13 lumps)
I_Init: Setting up machine state.
CPU Vendor ID: AuthenticAMD
Name: AMD Sempron(tm) Processor 3400+
Family 15 (15), Model 44, Stepping 2
Features: MMX SSE SSE2 SSE3
I_InitSound: Initializing FMOD
FMOD Sound System, copyright � Firelight Technologies Pty, Ltd., 1994-2008.
HSample rate 44100 is unsupported. Trying 48000.
V_Init: allocate screen.
S_Init: Setting up sound.
ST_Init: Init startup screen.
P_Init: Checking cmd-line parameters...
G_ParseMapInfo: Load map definitions.
S_InitData: Load sound definitions.
TEAMINFO_Init: Load team definitions.
LoadDecorations: Load external actors.
R_Init: Init Doom refresh subsystem.
DecalLibrary: Load decals.
Patch installed
M_Init: Init miscellaneous info.
P_Init: Init Playloop state.
Unknown flat QWATER
ParseSBarInfo: Loading custom status bar definition.
D_CheckNetGame: Checking network game status.
player 1 of 1 (1 nodes)
Occlusion query enabled.
Resolution: 640 x 480
+TITLEMAP - Unnamed

+TNT04A - Into the Darkness

game saved. (/root/.gzdoom/save14.zds)
game saved. (/root/.gzdoom/auto1.zds)
Segmentation fault (core dumped)[/spoiler]
/root/games/gzdoom#gdb gzdoom.64 core.14597
[spoiler]GNU gdb Red Hat Linux (6.5-8.fc6rh)
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.

There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu"...Using host libthread_db library "/lib64/libthread_db.so.1".

Reading symbols from /usr/lib64/libSDL-1.2.so.0...done.
Loaded symbols for /usr/lib64/libSDL-1.2.so.0
Reading symbols from /lib64/libpthread.so.0...done.
Loaded symbols for /lib64/libpthread.so.0
Reading symbols from /usr/lib64/libgtk-x11-2.0.so.0...done.
Loaded symbols for /usr/lib64/libgtk-x11-2.0.so.0
Reading symbols from /usr/lib64/libgdk-x11-2.0.so.0...done.
Loaded symbols for /usr/lib64/libgdk-x11-2.0.so.0
Reading symbols from /usr/lib64/libatk-1.0.so.0...done.
Loaded symbols for /usr/lib64/libatk-1.0.so.0
Reading symbols from /usr/lib64/libgdk_pixbuf-2.0.so.0...done.
Loaded symbols for /usr/lib64/libgdk_pixbuf-2.0.so.0
Reading symbols from /usr/lib64/libpangocairo-1.0.so.0...done.
Loaded symbols for /usr/lib64/libpangocairo-1.0.so.0
Reading symbols from /usr/lib64/libpango-1.0.so.0...done.
Loaded symbols for /usr/lib64/libpango-1.0.so.0
Reading symbols from /usr/lib64/libcairo.so.2...done.
Loaded symbols for /usr/lib64/libcairo.so.2
Reading symbols from /lib64/libgobject-2.0.so.0...done.
Loaded symbols for /lib64/libgobject-2.0.so.0
Reading symbols from /lib64/libgmodule-2.0.so.0...done.
Loaded symbols for /lib64/libgmodule-2.0.so.0
Reading symbols from /lib64/libdl.so.2...done.
Loaded symbols for /lib64/libdl.so.2
Reading symbols from /lib64/libglib-2.0.so.0...done.
Loaded symbols for /lib64/libglib-2.0.so.0
Reading symbols from /usr/lib64/libGLU.so.1...done.
Loaded symbols for /usr/lib64/libGLU.so.1
Reading symbols from /usr/lib64/libGL.so.1...done.
Loaded symbols for /usr/lib64/libGL.so.1
Reading symbols from /usr/lib64/libSM.so.6...done.
Loaded symbols for /usr/lib64/libSM.so.6
Reading symbols from /usr/lib64/libICE.so.6...done.
Loaded symbols for /usr/lib64/libICE.so.6
Reading symbols from /usr/lib64/libX11.so.6...done.
Loaded symbols for /usr/lib64/libX11.so.6
Reading symbols from /usr/lib64/libXext.so.6...done.
Loaded symbols for /usr/lib64/libXext.so.6
Reading symbols from /lib64/librt.so.1...done.
Loaded symbols for /lib64/librt.so.1
Reading symbols from /usr/lib64/libz.so.1...done.
Loaded symbols for /usr/lib64/libz.so.1
Reading symbols from /usr/lib64/libjpeg.so.62...done.
Loaded symbols for /usr/lib64/libjpeg.so.62
Reading symbols from /usr/local/lib/libfmodex64.so...done.
Loaded symbols for /usr/local/lib/libfmodex64.so
Reading symbols from /usr/lib64/libstdc++.so.6...done.
Loaded symbols for /usr/lib64/libstdc++.so.6
Reading symbols from /lib64/libm.so.6...done.
Loaded symbols for /lib64/libm.so.6
Reading symbols from /lib64/libgcc_s.so.1...done.
Loaded symbols for /lib64/libgcc_s.so.1
Reading symbols from /lib64/libc.so.6...done
Loaded symbols for /lib64/libc.so.6
Reading symbols from /usr/lib64/libXrandr.so.2...done.
Loaded symbols for /usr/lib64/libXrandr.so.2
Reading symbols from /usr/lib64/libXrender.so.1...done.
Loaded symbols for /usr/lib64/libXrender.so.1
Reading symbols from /lib64/ld-linux-x86-64.so.2...done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
Reading symbols from /usr/lib64/libfontconfig.so.1...done.
Loaded symbols for /usr/lib64/libfontconfig.so.1
Reading symbols from /usr/lib64/libXinerama.so.1...done.
Loaded symbols for /usr/lib64/libXinerama.so.1
Reading symbols from /usr/lib64/libXi.so.6...done.
Loaded symbols for /usr/lib64/libXi.so.6
Reading symbols from /usr/lib64/libXcursor.so.1...done.
Loaded symbols for /usr/lib64/libXcursor.so.1
Reading symbols from /usr/lib64/libXfixes.so.3...done.
Loaded symbols for /usr/lib64/libXfixes.so.3
Reading symbols from /usr/lib64/libpangoft2-1.0.so.0...done.
Loaded symbols for /usr/lib64/libpangoft2-1.0.so.0
Reading symbols from /usr/lib64/libfreetype.so.6...done.
Loaded symbols for /usr/lib64/libfreetype.so.6
Reading symbols from /usr/lib64/libpng12.so.0...done.
Loaded symbols for /usr/lib64/libpng12.so.0
Reading symbols from /usr/lib64/libGLcore.so.1...done.
Loaded symbols for /usr/lib64/libGLcore.so.1
Reading symbols from /usr/lib64/tls/libnvidia-tls.so.1...done.
Loaded symbols for /usr/lib64/tls/libnvidia-tls.so.1
Reading symbols from /usr/lib64/libXau.so.6...done.
Loaded symbols for /usr/lib64/libXau.so.6
Reading symbols from /usr/lib64/libXdmcp.so.6...done.
Loaded symbols for /usr/lib64/libXdmcp.so.6
Reading symbols from /lib64/libexpat.so.0...done.
Loaded symbols for /lib64/libexpat.so.0
Reading symbols from /usr/lib64/gconv/ISO8859-1.so...done.
Loaded symbols for /usr/lib64/gconv/ISO8859-1.so
Core was generated by `gzdoom.64 -file wads/tutnt.pk3'.
Program terminated with signal 11, Segmentation fault.
#0 0x000000312040dcbd in raise () from /lib64/libpthread.so.0
(gdb) bt
#0 0x000000312040dcbd in raise () from /lib64/libpthread.so.0
#1 0x00000000004fc350 in crash_catcher ()
#2 <signal handler called>
#3 0x00000000005d1f27 in SpawnDeepSplash ()
#4 0x00000000005d5229 in P_LineAttack ()
#5 0x00000000007da386 in AFP_A_CustomBulletAttack ()
#6 0x00000000005ec870 in FState::CallAction ()
#7 0x00000000005e48ed in AActor::SetState ()
#8 0x00000000005ea7f8 in AActor::Tick ()
#9 0x00000000005472bc in DThinker::TickThinkers ()
#10 0x0000000000547337 in DThinker::RunThinkers ()
#11 0x0000000000611444 in P_Ticker ()
#12 0x00000000005567f4 in G_Ticker ()
#13 0x0000000000537874 in TryRunTics ()
#14 0x0000000000530645 in D_DoomLoop ()
#15 0x0000000000531a98 in D_DoomMain ()
#16 0x00000000004fef47 in main ()[/spoiler]
/root/games/gzdoom#glxinfo
[spoiler]name of display: :1.0
display: :1 screen: 0
direct rendering: Yes
server glx vendor string: NVIDIA Corporation
server glx version string: 1.4
server glx extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_SGIX_fbconfig,
GLX_SGIX_pbuffer, GLX_SGI_video_sync, GLX_SGI_swap_control,
GLX_ARB_multisample, GLX_NV_float_buffer
client glx vendor string: NVIDIA Corporation
client glx version string: 1.4
client glx extensions:
GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_visual_info,
GLX_EXT_visual_rating, GLX_EXT_import_context, GLX_SGI_video_sync,
GLX_NV_swap_group, GLX_NV_video_out, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer,
GLX_SGI_swap_control, GLX_NV_float_buffer, GLX_ARB_fbconfig_float
GLX version: 1.3
GLX extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_SGIX_fbconfig,
GLX_SGIX_pbuffer, GLX_SGI_video_sync, GLX_SGI_swap_control,
GLX_ARB_multisample, GLX_NV_float_buffer, GLX_ARB_get_proc_address
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce FX 5600/AGP/SSE2
OpenGL version string: 2.0.2 NVIDIA 87.76
OpenGL extensions:
GL_ARB_depth_texture, GL_ARB_fragment_program,
GL_ARB_fragment_program_shadow, GL_ARB_fragment_shader,
GL_ARB_half_float_pixel, GL_ARB_imaging, GL_ARB_multisample,
GL_ARB_multitexture, GL_ARB_occlusion_query, GL_ARB_pixel_buffer_object,
GL_ARB_point_parameters, GL_ARB_point_sprite, GL_ARB_shadow,
GL_ARB_shader_objects, GL_ARB_shading_language_100,
GL_ARB_texture_border_clamp, GL_ARB_texture_compression,
GL_ARB_texture_cube_map, GL_ARB_texture_env_add,
GL_ARB_texture_env_combine, GL_ARB_texture_env_dot3,
GL_ARB_texture_mirrored_repeat, GL_ARB_texture_rectangle,
GL_ARB_transpose_matrix, GL_ARB_vertex_buffer_object,
GL_ARB_vertex_program, GL_ARB_vertex_shader, GL_ARB_window_pos,
GL_S3_s3tc, GL_EXT_texture_env_add, GL_EXT_abgr, GL_EXT_bgra,
GL_EXT_blend_color, GL_EXT_blend_func_separate, GL_EXT_blend_minmax,
GL_EXT_blend_subtract, GL_EXT_compiled_vertex_array, GL_EXT_Cg_shader,
GL_EXT_draw_range_elements, GL_EXT_fog_coord, GL_EXT_framebuffer_object,
GL_EXT_multi_draw_arrays, GL_EXT_packed_depth_stencil,
GL_EXT_packed_pixels, GL_EXT_paletted_texture, GL_EXT_pixel_buffer_object,
GL_EXT_point_parameters, GL_EXT_rescale_normal, GL_EXT_secondary_color,
GL_EXT_separate_specular_color, GL_EXT_shadow_funcs,
GL_EXT_shared_texture_palette, GL_EXT_stencil_two_side,
GL_EXT_stencil_wrap, GL_EXT_texture3D, GL_EXT_texture_compression_s3tc,
GL_EXT_texture_cube_map, GL_EXT_texture_edge_clamp,
GL_EXT_texture_env_combine, GL_EXT_texture_env_dot3,
GL_EXT_texture_filter_anisotropic, GL_EXT_texture_lod,
GL_EXT_texture_lod_bias, GL_EXT_texture_object, GL_EXT_texture_sRGB,
GL_EXT_timer_query, GL_EXT_vertex_array, GL_HP_occlusion_test,
GL_IBM_rasterpos_clip, GL_IBM_texture_mirrored_repeat,
GL_KTX_buffer_region, GL_NV_blend_square, GL_NV_copy_depth_to_color,
GL_NV_depth_clamp, GL_NV_fence, GL_NV_float_buffer, GL_NV_fog_distance,
GL_NV_fragment_program, GL_NV_fragment_program_option,
GL_NV_gpu_program_parameters, GL_NV_half_float, GL_NV_light_max_exponent,
GL_NV_multisample_filter_hint, GL_NV_occlusion_query,
GL_NV_packed_depth_stencil, GL_NV_pixel_data_range, GL_NV_point_sprite,
GL_NV_primitive_restart, GL_NV_register_combiners,
GL_NV_register_combiners2, GL_NV_texgen_reflection,
GL_NV_texture_compression_vtc, GL_NV_texture_env_combine4,
GL_NV_texture_expand_normal, GL_NV_texture_rectangle,
GL_NV_texture_shader, GL_NV_texture_shader2, GL_NV_texture_shader3,
GL_NV_vertex_array_range, GL_NV_vertex_array_range2, GL_NV_vertex_program,
GL_NV_vertex_program1_1, GL_NV_vertex_program2,
GL_NV_vertex_program2_option, GL_SGIS_generate_mipmap,
GL_SGIS_texture_lod, GL_SGIX_depth_texture, GL_SGIX_shadow,
GL_SUN_slice_accum

visual x bf lv rg d st colorbuffer ax dp st accumbuffer ms cav
id dep cl sp sz l ci b ro r g b a bf th cl r g b a ns b eat
-- --------------------------------------------------------------------
0x21 24 tc 0 32 0 r y . 8 8 8 0 4 24 8 16 16 16 16 0 0 None
0x22 24 dc 0 32 0 r y . 8 8 8 0 4 24 8 16 16 16 16 0 0 None
0x23 24 tc 0 32 0 r y . 8 8 8 8 4 24 8 16 16 16 16 0 0 None
0x24 24 tc 0 32 0 r . . 8 8 8 0 4 24 8 16 16 16 16 0 0 None
0x25 24 tc 0 32 0 r . . 8 8 8 8 4 24 8 16 16 16 16 0 0 None
0x26 24 tc 0 32 0 r y . 8 8 8 0 4 24 0 16 16 16 16 0 0 None
0x27 24 tc 0 32 0 r y . 8 8 8 8 4 24 0 16 16 16 16 0 0 None
0x28 24 tc 0 32 0 r . . 8 8 8 0 4 24 0 16 16 16 16 0 0 None
0x29 24 tc 0 32 0 r . . 8 8 8 8 4 24 0 16 16 16 16 0 0 None
0x2a 24 tc 0 32 0 r y . 8 8 8 0 4 16 0 16 16 16 16 0 0 None
0x2b 24 tc 0 32 0 r y . 8 8 8 8 4 16 0 16 16 16 16 0 0 None
0x2c 24 tc 0 32 0 r . . 8 8 8 0 4 16 0 16 16 16 16 0 0 None
0x2d 24 tc 0 32 0 r . . 8 8 8 8 4 16 0 16 16 16 16 0 0 None
0x2e 24 tc 0 32 0 r y . 8 8 8 0 4 0 0 16 16 16 16 0 0 None
0x2f 24 tc 0 32 0 r y . 8 8 8 8 4 0 0 16 16 16 16 0 0 None
0x30 24 tc 0 32 0 r . . 8 8 8 0 4 0 0 16 16 16 16 0 0 None
0x31 24 tc 0 32 0 r . . 8 8 8 8 4 0 0 16 16 16 16 0 0 None
0x32 24 tc 0 32 0 r y . 8 8 8 0 4 24 0 16 16 16 16 0 0 Ncon
0x33 24 tc 0 32 0 r y . 8 8 8 8 4 24 0 16 16 16 16 0 0 Ncon
0x34 24 tc 0 32 0 r y . 8 8 8 0 4 24 0 16 16 16 16 0 0 Ncon
0x35 24 tc 0 32 0 r y . 8 8 8 8 4 24 0 16 16 16 16 0 0 Ncon
0x36 24 tc 0 32 0 r . . 8 8 8 0 4 24 0 16 16 16 16 0 0 Ncon
0x37 24 tc 0 32 0 r . . 8 8 8 8 4 24 0 16 16 16 16 0 0 Ncon
0x38 24 tc 0 32 0 r . . 8 8 8 0 4 24 0 16 16 16 16 0 0 Ncon
0x39 24 tc 0 32 0 r . . 8 8 8 8 4 24 0 16 16 16 16 0 0 Ncon
0x3a 24 tc 0 32 0 r y . 8 8 8 0 4 24 8 16 16 16 16 0 0 Ncon
0x3b 24 tc 0 32 0 r y . 8 8 8 8 4 24 8 16 16 16 16 0 0 Ncon
0x3c 24 tc 0 32 0 r y . 8 8 8 0 4 24 8 16 16 16 16 0 0 Ncon
0x3d 24 tc 0 32 0 r y . 8 8 8 8 4 24 8 16 16 16 16 0 0 Ncon
0x3e 24 tc 0 32 0 r . . 8 8 8 0 4 24 8 16 16 16 16 0 0 Ncon
0x3f 24 tc 0 32 0 r . . 8 8 8 8 4 24 8 16 16 16 16 0 0 Ncon
0x40 24 tc 0 32 0 r . . 8 8 8 0 4 24 8 16 16 16 16 0 0 Ncon
0x41 24 tc 0 32 0 r . . 8 8 8 8 4 24 8 16 16 16 16 0 0 Ncon
0x42 24 tc 0 32 0 r y . 8 8 8 0 4 16 0 16 16 16 16 0 0 Ncon
0x43 24 tc 0 32 0 r y . 8 8 8 8 4 16 0 16 16 16 16 0 0 Ncon
0x44 24 tc 0 32 0 r y . 8 8 8 0 4 16 0 16 16 16 16 0 0 Ncon
0x45 24 tc 0 32 0 r y . 8 8 8 8 4 16 0 16 16 16 16 0 0 Ncon
0x46 24 tc 0 32 0 r . . 8 8 8 0 4 16 0 16 16 16 16 0 0 Ncon
0x47 24 tc 0 32 0 r . . 8 8 8 8 4 16 0 16 16 16 16 0 0 Ncon
0x48 24 tc 0 32 0 r . . 8 8 8 0 4 16 0 16 16 16 16 0 0 Ncon
0x49 24 tc 0 32 0 r . . 8 8 8 8 4 16 0 16 16 16 16 0 0 Ncon
0x4a 24 dc 0 32 0 r y . 8 8 8 8 4 24 8 16 16 16 16 0 0 None
0x4b 24 dc 0 32 0 r . . 8 8 8 0 4 24 8 16 16 16 16 0 0 None
0x4c 24 dc 0 32 0 r . . 8 8 8 8 4 24 8 16 16 16 16 0 0 None
0x4d 24 dc 0 32 0 r y . 8 8 8 0 4 24 0 16 16 16 16 0 0 None
0x4e 24 dc 0 32 0 r y . 8 8 8 8 4 24 0 16 16 16 16 0 0 None
0x4f 24 dc 0 32 0 r . . 8 8 8 0 4 24 0 16 16 16 16 0 0 None
0x50 24 dc 0 32 0 r . . 8 8 8 8 4 24 0 16 16 16 16 0 0 None
0x51 24 dc 0 32 0 r y . 8 8 8 0 4 16 0 16 16 16 16 0 0 None
0x52 24 dc 0 32 0 r y . 8 8 8 8 4 16 0 16 16 16 16 0 0 None
0x53 24 dc 0 32 0 r . . 8 8 8 0 4 16 0 16 16 16 16 0 0 None
0x54 24 dc 0 32 0 r . . 8 8 8 8 4 16 0 16 16 16 16 0 0 None
0x55 24 dc 0 32 0 r y . 8 8 8 0 4 0 0 16 16 16 16 0 0 None
0x56 24 dc 0 32 0 r y . 8 8 8 8 4 0 0 16 16 16 16 0 0 None
0x57 24 dc 0 32 0 r . . 8 8 8 0 4 0 0 16 16 16 16 0 0 None
0x58 24 dc 0 32 0 r . . 8 8 8 8 4 0 0 16 16 16 16 0 0 None
0x59 24 dc 0 32 0 r y . 8 8 8 0 4 24 0 16 16 16 16 0 0 Ncon
0x5a 24 dc 0 32 0 r y . 8 8 8 8 4 24 0 16 16 16 16 0 0 Ncon
0x5b 24 dc 0 32 0 r y . 8 8 8 0 4 24 0 16 16 16 16 0 0 Ncon
0x5c 24 dc 0 32 0 r y . 8 8 8 8 4 24 0 16 16 16 16 0 0 Ncon
0x5d 24 dc 0 32 0 r . . 8 8 8 0 4 24 0 16 16 16 16 0 0 Ncon
0x5e 24 dc 0 32 0 r . . 8 8 8 8 4 24 0 16 16 16 16 0 0 Ncon
0x5f 24 dc 0 32 0 r . . 8 8 8 0 4 24 0 16 16 16 16 0 0 Ncon
0x60 24 dc 0 32 0 r . . 8 8 8 8 4 24 0 16 16 16 16 0 0 Ncon
0x61 24 dc 0 32 0 r y . 8 8 8 0 4 24 8 16 16 16 16 0 0 Ncon
0x62 24 dc 0 32 0 r y . 8 8 8 8 4 24 8 16 16 16 16 0 0 Ncon
....[/spoiler]
stevenaaus
Posts: 35
Joined: Fri Sep 21, 2007 2:09
Location: Australia
Contact:

Post by stevenaaus »

I dont know if anyone cares for these hacks which add "-window" and a non-persistent "-nomouse" option - useful for quickly running a windowed game for debugging purposes.

[spoiler]

Code: Select all

--- src/d_main.cpp.orig 2008-08-22 22:50:30.000000000 +1000
+++ src/d_main.cpp      2008-08-22 22:50:15.000000000 +1000
@@ -2233,6 +2233,16 @@
files2->Destroy();
files3->Destroy();

+       // S.A. a couple of options is nice ;>
+       if (Args->CheckParm("-w") || Args->CheckParm("-window") || Args->CheckParm("--window"))
+                AddCommandString ("set fullscreen "0"");
+
+       if (Args->CheckParm("-f") || Args->CheckParm("-fullscreen") || Args->CheckParm("--fullscreen"))
+                AddCommandString ("set fullscreen "1"");
+
+       if (Args->CheckParm("-nomouse") || Args->CheckParm("--nomouse"))
+               AddCommandString ("set use_mouse "0"");
+
Printf ("W_Init: Init WADfiles.n");
Wads.InitMultipleFiles (&wadfiles);

--- src/sdl/i_input.cpp.orig    2008-08-23 07:18:53.000000000 +1000
+++ src/sdl/i_input.cpp 2008-08-23 07:18:53.000000000 +1000
@@ -25,7 +25,7 @@

extern int paused;

-CVAR (Bool,  use_mouse,                                true, CVAR_ARCHIVE|CVAR_GLOBALCONFIG)
+CVAR (Bool,  use_mouse,                                true, 0)
CVAR (Bool,  m_noprescale,                      false, CVAR_ARCHIVE|CVAR_GLOBALCONFIG)
CVAR (Bool,      m_filter,                              false, CVAR_ARCHIVE|CVAR_GLOBALCONFIG)

[/spoiler]

Also, the previous hack i submitted... somehow got it's "\n" changed to "n". This fixes it:

[spoiler]

Code: Select all

--- src/sdl/hardware.cpp.orig   2008-08-22 18:07:59.000000000 +1000
+++ src/sdl/hardware.cpp        2008-08-22 18:09:11.000000000 +1000
@@ -153,8 +153,8 @@
// hack by stevenaaus to force software mode if no 32bpp
const SDL_VideoInfo *i = SDL_GetVideoInfo();
if ((i->vfmt)->BytesPerPixel != 4) {
-               fprintf (stderr, "n32 bit colour not found, disabling OpenGL.n");
-               fprintf (stderr, "To enable OpenGL, restart X with 32 color (try 'startx -- :1 -depth 24'), and enable OpenGL in the Display Options.nn");
+               fprintf (stderr, "\n32 bit colour not found, disabling OpenGL.\n");
+               fprintf (stderr, "To enable OpenGL, restart X with 32 color (try 'startx -- :1 -depth 24'), and enable OpenGL in the Display Options.\n\n");
gl_nogl=true;
}
gl_disabled = gl_nogl;
[/spoiler]
Attachments
gz_diffs.zip
(1.12 KiB) Downloaded 177 times
User avatar
GuntherDW
Posts: 117
Joined: Sat Nov 12, 2005 1:53
Location: Belgium, Antwerp
Contact:

Post by GuntherDW »

hmm, graf zahl
the recent svn build - r165 - seems to be broken again for linux, or is it just my compiler? (GCC 4.3.1)

Code: Select all

Scanning dependencies of target zdoom
[ 28%] Building CXX object src/CMakeFiles/zdoom.dir/autostart.o
[ 28%] Building C object src/CMakeFiles/zdoom.dir/sdl/crashcatcher.o
[ 28%] Building CXX object src/CMakeFiles/zdoom.dir/sdl/hardware.o
[ 29%] Building CXX object src/CMakeFiles/zdoom.dir/sdl/i_cd.o
[ 29%] Building CXX object src/CMakeFiles/zdoom.dir/sdl/i_input.o
[ 29%] Building CXX object src/CMakeFiles/zdoom.dir/sdl/i_main.o
[ 29%] Building CXX object src/CMakeFiles/zdoom.dir/sdl/i_movie.o
[ 29%] Building CXX object src/CMakeFiles/zdoom.dir/sdl/i_system.o
[ 30%] Building CXX object src/CMakeFiles/zdoom.dir/sdl/sdlglvideo.o
In file included from /GuntherDW/src/svn/gzdoom/src/sdl/sdlglvideo.cpp:22:
/GuntherDW/src/svn/gzdoom/src/./gl/gl_basic.h:92: error: declaration of &#8216;FreeList<T> UniqueList<T>::FreeList&#8217;
/GuntherDW/src/svn/gzdoom/src/./gl/gl_basic.h:58: error: changes meaning of &#8216;FreeList&#8217; from &#8216;struct FreeList<T>&#8217;
make[2]: *** [src/CMakeFiles/zdoom.dir/sdl/sdlglvideo.o] Error 1
make[1]: *** [src/CMakeFiles/zdoom.dir/all] Error 2
make: *** [all] Error 2
the code it struggles with are these 2 things

Code: Select all

template <class T> struct FreeList
{
	T * freelist;
	T * GetNew();
and

Code: Select all

template<class T> class UniqueList
{
	TArray<T*> Array;
	FreeList<T>	FreeList;
edit: damn, why can't i use [ b] in [ code] :)
User avatar
GuntherDW
Posts: 117
Joined: Sat Nov 12, 2005 1:53
Location: Belgium, Antwerp
Contact:

Post by GuntherDW »

edit: fixed by adding the glsl stuff (only gl_draw.cpp) to the cmake files

hmm, when circumventing this "error" by temporarily renaming the name of the var inside the function, it compiles fully up to the linking fase, which then boots out with a GLSL error

Code: Select all

Linking CXX executable ../gzdoom
CMakeFiles/zdoom.dir/tempfiles.o: In function `FTempFileName::FTempFileName(char const*)':
tempfiles.cpp:(.text+0x96): warning: the use of `tempnam' is dangerous, better use `mkstemp'
CMakeFiles/zdoom.dir/gl/gl_decal.o: In function `GLWall::DrawDecal(DBaseDecal*, seg_t*, sector_t*, sector_t*)':
gl_decal.cpp:(.text+0x10c5): undefined reference to `glsl'
gl_decal.cpp:(.text+0x10eb): undefined reference to `GLSLRenderState::SetLight(int, int, FColormap*, float, bool)'
gl_decal.cpp:(.text+0x1111): undefined reference to `glsl'
gl_decal.cpp:(.text+0x1135): undefined reference to `GLSLRenderState::SetLightAbsolute(float, float, float, float)'
gl_decal.cpp:(.text+0x11b3): undefined reference to `glsl'
gl_decal.cpp:(.text+0x11b8): undefined reference to `GLSLRenderState::Apply()'
gl_decal.cpp:(.text+0x132a): undefined reference to `glsl'
gl_decal.cpp:(.text+0x134f): undefined reference to `GLSLRenderState::SetLightAbsolute(float, float, float, float)'
CMakeFiles/zdoom.dir/gl/gl_light.o: In function `gl_SetRenderStyle(FRenderStyle, bool, bool)':
gl_light.cpp:(.text+0x1137): undefined reference to `glsl'
gl_light.cpp:(.text+0x1142): undefined reference to `GLSLRenderState::SetBlend(int, int)'
gl_light.cpp:(.text+0x1149): undefined reference to `glsl'
gl_light.cpp:(.text+0x1151): undefined reference to `GLSLRenderState::SetTextureMode(int)'
CMakeFiles/zdoom.dir/gl/gl_scene.o: In function `RenderTranslucentGLSL()':
gl_scene.cpp:(.text+0x15f6): undefined reference to `glsl'
gl_scene.cpp:(.text+0x1605): undefined reference to `GLSLRenderState::SetBlend(int, int)'
gl_scene.cpp:(.text+0x160c): undefined reference to `glsl'
gl_scene.cpp:(.text+0x1619): undefined reference to `GLSLRenderState::SetAlphaThreshold(float)'
gl_scene.cpp:(.text+0x1659): undefined reference to `glsl'
gl_scene.cpp:(.text+0x1666): undefined reference to `GLSLRenderState::SetAlphaThreshold(float)'
CMakeFiles/zdoom.dir/gl/gl_scene.o: In function `RenderSceneGLSL(int)':
gl_scene.cpp:(.text+0x1823): undefined reference to `glsl'
gl_scene.cpp:(.text+0x1832): undefined reference to `GLSLRenderState::SetBlend(int, int)'
gl_scene.cpp:(.text+0x1839): undefined reference to `glsl'
gl_scene.cpp:(.text+0x1841): undefined reference to `GLSLRenderState::SetAlphaThreshold(float)'
gl_scene.cpp:(.text+0x187d): undefined reference to `glsl'
gl_scene.cpp:(.text+0x1882): undefined reference to `GLSLRenderState::SetAlphaThreshold(float)'
gl_scene.cpp:(.text+0x1949): undefined reference to `glsl'
gl_scene.cpp:(.text+0x1958): undefined reference to `GLSLRenderState::SetBlend(int, int)'
gl_scene.cpp:(.text+0x195f): undefined reference to `glsl'
gl_scene.cpp:(.text+0x1967): undefined reference to `GLSLRenderState::SetAlphaThreshold(float)'
CMakeFiles/zdoom.dir/gl/gl_texture.o: In function `FGLTexture::BindPatch(int, int, int)':
gl_texture.cpp:(.text+0x408f): undefined reference to `glsl'
gl_texture.cpp:(.text+0x4094): undefined reference to `GLSLRenderState::SetBrightmap(bool)'
gl_texture.cpp:(.text+0x40bd): undefined reference to `glsl'
gl_texture.cpp:(.text+0x40c2): undefined reference to `GLSLRenderState::SetWarp(int, float)'
CMakeFiles/zdoom.dir/gl/gl_texture.o: In function `FGLTexture::Bind(int, int, int, int)':
gl_texture.cpp:(.text+0x453f): undefined reference to `glsl'
gl_texture.cpp:(.text+0x4544): undefined reference to `GLSLRenderState::SetBrightmap(bool)'
gl_texture.cpp:(.text+0x456d): undefined reference to `glsl'
gl_texture.cpp:(.text+0x4572): undefined reference to `GLSLRenderState::SetWarp(int, float)'
collect2: ld returned 1 exit status
make[2]: *** [gzdoom] Error 1
make[1]: *** [src/CMakeFiles/zdoom.dir/all] Error 2
make: *** [all] Error 2
or is it just win32 code at the moment waiting to be ported to unix?
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Post by Graf Zahl »

Should be fixed.
suacy
Posts: 5
Joined: Thu Oct 11, 2007 1:49

Post by suacy »

R169 fails to compile for me with a ton of fmod errors that look like this:

Code: Select all

error: 'FMOD_CAPS' was not declared in this scope

I'm using libfmodex.so.4.18.02. I don't think that's the right version - which version(s) are known to work?
Thanks.
anubis2591
Posts: 6
Joined: Sat Sep 06, 2008 13:41

Post by anubis2591 »

Thanks, making GZDoom from source worked perfectly. Even when I'm pretty new to compiling from source (I love apt get and pacman too much). The only thing I'm wondering about is how to install it. I have the gzdoom excutable in my build directory but I want to get it and everything else required to /usr/whatever. I see that there's a cmake_install.cmake file but I don't know how to pass it to cmake.

Otherwise, awesome job. I was really happy having gzdoom on Linux. It was one of the things I missed most from Windows.
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Post by Graf Zahl »

suacy wrote:R169 fails to compile for me with a ton of fmod errors that look like this:

Code: Select all

error: 'FMOD_CAPS' was not declared in this scope

I'm using libfmodex.so.4.18.02. I don't think that's the right version - which version(s) are known to work?
Thanks.
I use 4.14 but the latest 4.16 seems to work as well.

BTW, can't these idiots leave the API alone? This is really getting annoying.
User avatar
Rachael
Developer
Developer
Posts: 3651
Joined: Sat May 13, 2006 10:30

Post by Rachael »

I tried to see if I could find 4.16.10 for linux, but no dice. :(

Seems Firelight denies access to old versions. Real shame.

It's not gonna matter anyway, when GZDoom gets GPL'd.
User avatar
Enjay
Developer
Developer
Posts: 4748
Joined: Tue Aug 30, 2005 23:19
Location: Scotland
Contact:

Post by Enjay »

The closest that I can find on the FMOD site is 4.16.13. 4.14.21 is also available for Linux

Use this page and search for the appropriate versions

http://www.fmod.org/index.php/download/find
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Post by Graf Zahl »

SoulPriestess wrote: It's not gonna matter anyway, if GZDoom gets GPL'd.

fixed ;)
User avatar
Rachael
Developer
Developer
Posts: 3651
Joined: Sat May 13, 2006 10:30

Post by Rachael »

@Enjay: Cool.

@Graf: Eh, thought it was more "when" than "if"; you just seemed really anxious to do it that's all. :P
Locked

Return to “GZDoom”