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
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Post by Graf Zahl »

It's more 'if'. So far the only person who offered to help me was Grubber and that came with a big 'but' due to time constraints - which is the same thing that's holding me back.
stevenaaus
Posts: 35
Joined: Fri Sep 21, 2007 2:09
Location: Australia
Contact:

Post by stevenaaus »

anubis2591 wrote: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.
I dont think there *is* any standard install. I just copy the necessary files (the pk3 file, gzdoom and doom2.wad) to /usr/local/games/gzdoom.
User avatar
GuntherDW
Posts: 117
Joined: Sat Nov 12, 2005 1:53
Location: Belgium, Antwerp
Contact:

Post by GuntherDW »

graf, could you check this patch?

everything seems to work, besides the fact that it enters the rendering fase twice, ie blank screen, exit render and blank screen again and then show gzdoom

and i don't know if this patch has anything to do with it (i guess it has nada to do with it), but gibbing no longer works in this revision
(r185), neither with a BFG blast, nor does the mdk command.
Attachments
patch.r185.diff.zip
patch
(1.48 KiB) Downloaded 190 times
User avatar
Enjay
Developer
Developer
Posts: 4748
Joined: Tue Aug 30, 2005 23:19
Location: Scotland
Contact:

Post by Enjay »

Gibbing certainly works with the Windows version of r185 so it's either that patch or somethig else specific to a Linux build.
User avatar
Agent ME
Posts: 229
Joined: Mon Jan 02, 2006 12:39
Contact:

Post by Agent ME »

I get the gibbing problem under zdoom r1250 on linux, so its not specific to gzdoom or that patch. (Posted at zdoom's bugs forum.)
Garron
Posts: 8
Joined: Sat Oct 04, 2008 14:55

Post by Garron »

GuntherDW: Patch makes r185 compile for me, but it crashes at startup (with or without the nomusic switch). Using 32-bit Linux, GCC 4.2.3

[spoiler]

Code: Select all

 % gzdoom -nomusic
GZDoom v1.1.4 - SVN revision 185M - SDL version
Compiled on Oct  6 2008

M_LoadDefaults: Load system defaults.
W_Init: Init WADfiles.
 adding /home/gxx/Applications/Games/gzdoom/gzdoom.pk3
 adding ./doom2.wad (2919 lumps)
I_Init: Setting up machine state.
CPU Vendor ID: AuthenticAMD
  Name: AMD Athlon(tm) XP 2400+
  Family 6 (7), Model 8, Stepping 1
  Features: MMX SSE
I_InitSound: Initializing FMOD
FMOD Sound System, copyright © Firelight Technologies Pty, Ltd., 1994-2008.
V_Init: allocate screen.
Switching to OpenGL renderer...
You must restart GZDoom to switch the renderer
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.
Texman.Init: Init texture manager.
TEAMINFO_Init: Load team definitions.
LoadDecorations: Load external actors.
*** glibc detected *** gzdoom: free(): invalid pointer: 0x085e1438 ***
======= Backtrace: =========
/lib/libc.so.6[0xb72b28c4]
/lib/libc.so.6(cfree+0x90)[0xb72b6370]
/usr/lib/libstdc++.so.6(_ZdlPv+0x21)[0xb7475c21]
/usr/lib/libstdc++.so.6(_ZdaPv+0x1d)[0xb7475c7d]
gzdoom(_ZN17FStateDefinitions16ResolveGotoLabelEP6AActorPK6PClassPc+0x1f0)[0x81ffc40]
======= Memory map: ========
08048000-0847a000 r-xp 00000000 03:03 21054392   /home/gxx/Applications/Games/gzdoom/gzdoom
0847a000-0848e000 rwxp 00431000 03:03 21054392   /home/gxx/Applications/Games/gzdoom/gzdoom
0848e000-086df000 rwxp 0848e000 00:00 0          [heap]
b4900000-b4921000 rwxp b4900000 00:00 0
b4921000-b4a00000 ---p b4921000 00:00 0
b4a53000-b4a54000 ---p b4a53000 00:00 0
b4a54000-b5253000 rwxp b4a54000 00:00 0
b5253000-b5254000 ---p b5253000 00:00 0
b5254000-b5a7f000 rwxp b5254000 00:00 0
b5a7f000-b5a80000 ---p b5a7f000 00:00 0
b5a80000-b627f000 rwxp b5a80000 00:00 0
b627f000-b62b5000 r-xp 00000000 03:03 268506974  /usr/lib/locale/en_US/LC_CTYPE
b62b5000-b631c000 rwxp b62b5000 00:00 0
b631c000-b6320000 r-xp 00000000 03:03 4910244    /usr/lib/libXdmcp.so.6.0.0
b6320000-b6321000 rwxp 00003000 03:03 4910244    /usr/lib/libXdmcp.so.6.0.0
b6321000-b633f000 r-xp 00000000 03:03 481        /usr/lib/libexpat.so.1.5.2
b633f000-b6341000 rwxp 0001d000 03:03 481        /usr/lib/libexpat.so.1.5.2
b6341000-b6343000 r-xp 00000000 03:03 4910200    /usr/lib/libXau.so.6.0.0
b6343000-b6344000 rwxp 00001000 03:03 4910200    /usr/lib/libXau.so.6.0.0
b6344000-b6345000 rwxp b6344000 00:00 0
b6345000-b635b000 r-xp 00000000 03:03 4930812    /usr/lib/libxcb.so.1.0.0
b635b000-b635c000 rwxp 00016000 03:03 4930812    /usr/lib/libxcb.so.1.0.0
b635c000-b635d000 r-xp 00000000 03:03 4930820    /usr/lib/libxcb-xlib.so.0.0.0
b635d000-b635e000 rwxp 00000000 03:03 4930820    /usr/lib/libxcb-xlib.so.0.0.0
b635e000-b635f000 r-xp 00000000 03:03 539936635  /usr/lib/tls/libnvidia-tls.so.173.14.12
b635f000-b6360000 rwxp 00000000 03:03 539936635  /usr/lib/tls/libnvidia-tls.so.173.14.12
b6360000-b6f0e000 r-xp 00000000 03:03 3983800    /usr/lib/libGLcore.so.173.14.12
b6f0e000-b709b000 rwxp 00bad000 03:03 3983800    /usr/lib/libGLcore.so.173.14.12
b709b000-b70a0000 rwxp b709b000 00:00 0
b70a0000-b70da000 r-xp 00000000 03:03 28873      /usr/lib/libpng12.so.0.1.2.27
b70da000-b70db000 rwxp 0003a000 03:03 28873      /usr/lib/libpng12.so.0.1.2.27
b70db000-b70dc000 rwxp b70db000 00:00 0
b70dc000-b7146000 r-xp 00000000 03:03 187        /usr/lib/libfreetype.so.6.3.16
b7146000-b714a000 rwxp 00069000 03:03 187        /usr/lib/libfreetype.so.6.3.16
b714a000-b7170000 r-xp 00000000 03:03 3905862    /usr/lib/libpangoft2-1.0.so.0.2000.0
b7170000-b7171000 rwxp 00026000 03:03 3905862    /usr/lib/libpangoft2-1.0.so.0.2000.0
b7171000-b7179000 r-xp 00000000 03:03 4910234    /usr/lib/libXcursor.so.1.0.2
b7179000-b717a000 rwxp 00007000 03:03 4910234    /usr/lib/libXcursor.so.1.0.2
b717a000-b7181000 r-xp 00000000 03:03 4910431    /usr/lib/libXi.so.6.0.0
b7181000-b7182000 rwxp 00006000 03:03 4910431    /usr/lib/libXi.so.6.0.0
b7182000-b7184000 r-xp 00000000 03:03 4910441    /usr/lib/libXinerama.so.1.0.0
b7184000-b7185000 rwxp 00001000 03:03 4910441    /usr/lib/libXinerama.so.1.0.0
b7185000-b7186000 rwxp b7185000 00:00 0
b7186000-b71a9000 r-xp 00000000 03:03 4908990    /usr/lib/libfontconfig.so.1.2.0
b71a9000-b71b1000 rwxp 00022000 03:03 4908990    /usr/lib/libfontconfig.so.1.2.0
b71b1000-b71b5000 r-xp 00000000 03:03 4910262    /usr/lib/libXfixes.so.3.1.0
b71b5000-b71b6000 rwxp 00003000 03:03 4910262    /usr/lib/libXfixes.so.3.1.0
b71b6000-b71b8000 r-xp 00000000 03:03 4910233    /usr/lib/libXdamage.so.1.1.0
b71b8000-b71b9000 rwxp 00001000 03:03 4910233    /usr/lib/libXdamage.so.1.1.0
b71b9000-b71bb000 r-xp 00000000 03:03 4910226    /usr/lib/libXcomposite.so.1.0.0
b71bb000-b71bc000 rwxp 00001000 03:03 4910226    /usr/lib/libXcomposite.so.1.0.0
b71bc000-b721a000 r-xp 00000000 03:03 485        /usr/lib/libvga.so.1.9.25
b721a000-b7220000 rwxp 0005d000 03:03 485        /usr/lib/libvga.so.1.9.25
b7220000-b7239000 rwxp b7220000 00:00 0
b7239000-b7240000 r-xp 00000000 03:03 4910488    /usr/lib/libXrender.so.1.3.0
b7240000-b7241000 rwxp 00006000 03:03 4910488    /usr/lib/libXrender.so.1.3.0
b7241000-b7246000 r-xp 00000000 03:03 4910483    /usr/lib/libXrandr.so.2.1.0
b7246000-b7247000 rwxp 00004000 03:03 4910483    /usr/lib/libXrandr.so.2.1.0
b7247000-b738d000 r-xp 00000000 03:03 537393385  /lib/libc-2.7.so
b738d000-b738e000 r-xp 00146000 03:03 537393385  /lib/libc-2.7.so
b738e000-b7390000 rwxp 00147000 03:03 537393385  /lib/libc-2.7.so
b7390000-b7393000 rwxp b7390000 00:00 0
b7393000-b739d000 r-xp 00000000 03:03 490        /usr/lib/libgcc_s.so.1
b739d000-b739e000 rwxp 00009000 03:03 490        /usr/lib/libgcc_s.so.1
b739e000-b73c2000 r-xp 00000000 03:03 537393389  /lib/libm-2.7.so
b73c2000-b73c4000 rwxp 00023000 03:03 537393389  /lib/libm-2.7.so
b73c4000-b749f000 r-xp 00000000 03:03 1095       /usr/lib/libstdc++.so.6.0.9
b749f000-b74a3000 r-xp 000da000 03:03 1095       /usr/lib/libstdc++.so.6.0.9
b74a3000-b74a4000 rwxp 000de000 03:03 1095       /usr/lib/libstdc++.so.6.0.9
b74a4000-b74ab000 rwxp b74a4000 00:00 0
b74ab000-b75c5000 r-xp 00000000 03:03 20843325   /usr/lib/libfmodex.so.4.18.03
b75c5000-b75d6000 rwxp 0011a000 03:03 20843325   /usr/lib/libfmodex.so.4.18.03
b75d6000-b768d000 rwxp b75d6000 00:00 0
b768d000-b76ac000 r-xp 00000000 03:03 512        /usr/lib/libjpeg.so.62.0.0
b76ac000-b76ad000 rwxp 0001e000 03:03 512        /usr/lib/libjpeg.so.62.0.0
b76ad000-b76c0000 r-xp 00000000 03:03 185        /usr/lib/libz.so.1.2.3
b76c0000-b76c1000 rwxp 00012000 03:03 185        /usr/lib/libz.so.1.2.3
b76c1000-b76c8000 r-xp 00000000 03:03 537393401  /lib/librt-2.7.so
b76c8000-b76ca000 rwxp 00006000 03:03 537393401  /lib/librt-2.7.so
b76ca000-b76d7000 r-xp 00000000 03:03 4910254    /usr/lib/libXext.so.6.4.0
b76d7000-b76d8000 rwxp 0000c000 03:03 4910254    /usr/lib/libXext.so.6.4.0
b76d8000-b77bb000 r-xp 00000000 03:03 4909923    /usr/lib/libX11.so.6.2.0
b77bb000-b77bf000 rwxp 000e2000 03:03 4909923    /usr/lib/libX11.so.6.2.0
b77bf000-b77c0000 rwxp b77bf000 00:00 0
b77c0000-b77d4000 r-xp 00000000 03:03 4909913    /usr/lib/libICE.so.6.3.0
b77d4000-b77d6000 rwxp 00013000 03:03 4909913    /usr/lib/libICE.so.6.3.0
b77d6000-b77d7000 rwxp b77d6000 00:00 0
b77d7000-b77de000 r-xp 00000000 03:03 4909920    /usr/lib/libSM.so.6.0.0
b77de000-b77df000 rwxp 00006000 03:03 4909920    /usr/lib/libSM.so.6.0.0
b77df000-b7868000 r-xp 00000000 03:03 15292      /usr/lib/libGL.so.173.14.12
b7868000-b7883000 rwxp 00089000 03:03 15292      /usr/lib/libGL.so.173.14.12
b7883000-b7884000 rwxp b7883000 00:00 0
b7884000-b78fb000 r-xp 00000000 03:03 4931314    /usr/lib/libGLU.so.1.3.070002
b78fb000-b78fc000 rwxp 00077000 03:03 4931314    /usr/lib/libGLU.so.1.3.070002
b78fc000-b79b7000 r-xp 00000000 03:03 504        /usr/lib/libglib-2.0.so.0.1400.6
b79b7000-b79b8000 rwxp 000bb000 03:03 504        /usr/lib/libglib-2.0.so.0.1400.6
b79b8000-b79ba000 r-xp 00000000 03:03 537393388  /lib/libdl-2.7.so
b79ba000-b79bc000 rwxp 00001000 03:03 537393388  /lib/libdl-2.7.so
b79bc000-b79bd000 rwxp b79bc000 00:00 0
b79bd000-b79bf000 r-xp 00000000 03:03 488        /usr/lib/libgmodule-2.0.so.0.1400.6
b79bf000-b79c0000 rwxp 00002000 03:03 488        /usr/lib/libgmodule-2.0.so.0.1400.6
b79c0000-b79f8000 r-xp 00000000 03:03 487        /usr/lib/libgobject-2.0.so.0.1400.6
b79f8000-b79f9000 rwxp 00038000 03:03 487        /usr/lib/libgobject-2.0.so.0.1400.6
b79f9000-b7a6d000 r-xp 00000000 03:03 12594      /usr/lib/libcairo.so.2.11.7
b7a6d000-b7a6f000 rwxp 00073000 03:03 12594      /usr/lib/libcairo.so.2.11.7
b7a6f000-b7aa9000 r-xp 00000000 03:03 3905866    /usr/lib/libpango-1.0.so.0.2000.0
b7aa9000-b7aab000 rwxp 00039000 03:03 3905866    /usr/lib/libpango-1.0.so.0.2000.0
b7aab000-b7ab3000 r-xp 00000000 03:03 3905865    /usr/lib/libpangocairo-1.0.so.0.2000.0
b7ab3000-b7ab4000 rwxp 00008000 03:03 3905865    /usr/lib/libpangocairo-1.0.so.0.2000.0
b7ab4000-b7aca000 r-xp 00000000 03:03 3647383    /usr/lib/libgdk_pixbuf-2.0.so.0.1200.9
b7aca000-b7acb000 rwxp 00016000 03:03 3647383    /usr/lib/libgdk_pixbuf-2.0.so.0.1200.9
b7acb000-b7acc000 rwxp b7acb000 00:00 0
b7acc000-b7ae3000 r-xp 00000000 03:03 3510728    /usr/lib/libatk-1.0.so.0.2209.1
b7ae3000-b7ae5000 rwxp 00017000 03:03 3510728    /usr/lib/libatk-1.0.so.0.2209.1
b7ae5000-b7b64000 r-xp 00000000 03:03 3647377    /usr/lib/libgdk-x11-2.0.so.0.1200.9
b7b64000-b7b67000 rwxp 0007e000 03:03 3647377    /usr/lib/libgdk-x11-2.0.so.0.1200.9
b7b67000-b7ec6000 r-xp 00000000 03:03 3647386    /usr/lib/libgtk-x11-2.0.so.0.1200.9
b7ec6000-b7ecc000 rwxp 0035e000 03:03 3647386    /usr/lib/libgtk-x11-2.0.so.0.1200.9
b7ecc000-b7ecd000 rwxp b7ecc000 00:00 0
b7ecd000-b7ee0000 r-xp 00000000 03:03 537393399  /lib/libpthread-2.7.so
b7ee0000-b7ee2000 rwxp 00013000 03:03 537393399  /lib/libpthread-2.7.so
b7ee2000-b7ee4000 rwxp b7ee2000 00:00 0
b7ee4000-b7f4a000 r-xp 00000000 03:03 3973936    /usr/lib/libSDL-1.2.so.0.11.2
b7f4a000-b7f4c000 rwxp 00066000 03:03 3973936    /usr/lib/libSDL-1.2.so.0.11.2
b7f4c000-b7f99000 rwxp b7f4c000 00:00 0
b7fa9000-b7faa000 rwxp b7fa9000 00:00 0
b7faa000-b7fab000 r-xp 00000000 03:03 537393124  /usr/lib/gconv/ISO8859-1.so
b7fab000-b7fad000 rwxp 00000000 03:03 537393124  /usr/lib/gconv/ISO8859-1.so
b7fad000-b7fae000 rwxp b7fad000 00:00 0
b7fae000-b7faf000 r-xp 00000000 03:03 268506967  /usr/lib/locale/en_US/LC_NUMERIC
b7faf000-b7fb0000 r-xp 00000000 03:03 270472345  /usr/lib/locale/en_US/LC_TIME
b7fb0000-b7fb1000 r-xp 00000000 03:03 270472341  /usr/lib/locale/en_US/LC_MONETARY
b7fb1000-b7fb2000 r-xp 00000000 03:03 3603207    /usr/lib/locale/en_US/LC_MESSAGES/SYS_LC_MESSAGES
b7fb2000-b7fb3000 r-xp 00000000 03:03 268503845  /usr/lib/locale/en_US/LC_PAPER
b7fb3000-b7fb4000 r-xp 00000000 03:03 807072442  /usr/lib/locale/en_US/LC_NAME
b7fb4000-b7fb5000 r-xp 00000000 03:03 270472343  /usr/lib/locale/en_US/LC_ADDRESS
b7fb5000-b7fb6000 r-xp 00000000 03:03 270489148  /usr/lib/locale/en_US/LC_TELEPHONE
b7fb6000-b7fb7000 r-xp 00000000 03:03 268503846  /usr/lib/locale/en_US/LC_MEASUREMENT
b7fb7000-b7fb8000 r-xp 00000000 03:03 270472342  /usr/lib/locale/en_US/LC_IDENTIFICATION
b7fb8000-b7fb9000 rwxp b7fb8000 00:00 0
b7fb9000-b7fbb000 rwxp 00000000 00:0d 242        /dev/zero
b7fbb000-b7fbc000 rwxp b7fbb000 00:00 0
b7fbc000-b7fd8000 r-xp 00000000 03:03 537393427  /lib/ld-2.7.so
b7fd8000-b7fda000 rwxp 0001b000 03:03 537393427  /lib/ld-2.7.so
bf851000-bf866000 rwxp bffeb000 00:00 0          [stack]
ffffe000-fffff000 r-xp 00000000 00:00 0          [vdso]
zsh: abort      gzdoom -nomusic
[/spoiler]

Also, latest zdoom (r1256) compiles and runs fine, but no gibs.
User avatar
GuntherDW
Posts: 117
Joined: Sat Nov 12, 2005 1:53
Location: Belgium, Antwerp
Contact:

Post by GuntherDW »

i can't figure out why it's crashing from that crash log :x
it runs fine here now, except the gibbing yeah, and that it inits its video twice

i'm on a 64bit install however, but i don't think that would cause it
i'll check if that's it though
Garron
Posts: 8
Joined: Sat Oct 04, 2008 14:55

Post by Garron »

EDIT: clearing my $CFLAGS/$CXXFLAGS seems to make it stop crashing. Forgot to try that earlier, sorry.

Code: Select all

% echo $CFLAGS
-march=athlon-xp -O3 -pipe -fomit-frame-pointer -Wall -mmmx
It looks like -march=athlon-xp was the culprit.
--------

Old post:

I don't know that gdb produces any more useful output, but here it is anyhow.

Also, fiddling with ini options to use software mode doesn't seem to help, unless there's something non-obvious I wouldn't likely try. (tried fullscreen, vid_renderer, gl_vid_allowsoftware, gl_nogl, in various combinations)

[spoiler]

Code: Select all

Starting program: /home/gxx/Desktop/src/gzdoom-svn/trunk/debug/gzdoom 
[Thread debugging using libthread_db enabled]
[New Thread 0xb62886f0 (LWP 6306)]
[New Thread 0xb61edb90 (LWP 6309)]
[New Thread 0xb50aab90 (LWP 6312)]
[New Thread 0xb48aab90 (LWP 6313)]

Program received signal SIGABRT, Aborted.
[Switching to Thread 0xb62886f0 (LWP 6306)]
0xb71e0c66 in raise () from /lib/libc.so.6
#0  0xb71e0c66 in raise () from /lib/libc.so.6
#1  0xb71e2571 in abort () from /lib/libc.so.6
#2  0xb721996b in __libc_message () from /lib/libc.so.6
#3  0xb72218c4 in _int_free () from /lib/libc.so.6
#4  0xb7225370 in free () from /lib/libc.so.6
#5  0xb73e4c21 in operator delete () from /usr/lib/libstdc++.so.6
#6  0xb73e4c7d in operator delete[] () from /usr/lib/libstdc++.so.6
#7  0x0820f370 in FStateDefinitions::ResolveGotoLabel (this=0xbfb2f570, actor=0x86022a8, mytype=0x85631a0, 
    name=0x86024b0 "") at /home/gxx/Desktop/src/gzdoom-svn/trunk/src/p_states.cpp:708
#8  0x0820fbfe in FStateDefinitions::FinishStates (this=0xbfb2f570, actor=0x85ffea8, defaults=0x86022a8, 
    StateArray=@0xbfb2f57c) at /home/gxx/Desktop/src/gzdoom-svn/trunk/src/p_states.cpp:747
#9  0x083aca8e in FinishActor (sc=@0xbfb2f6ec, info=0x85ffea8, bag=@0xbfb2f560)
    at /home/gxx/Desktop/src/gzdoom-svn/trunk/src/thingdef/thingdef_parse.cpp:532
#10 0x083a05e4 in ParseActor (sc=@0xbfb2f6ec) at /home/gxx/Desktop/src/gzdoom-svn/trunk/src/thingdef/thingdef.cpp:579
#11 0x083ac2ef in ParseDecorate (sc=@0xbfb2f6ec)
    at /home/gxx/Desktop/src/gzdoom-svn/trunk/src/thingdef/thingdef_main.cpp:117
#12 0x083ac249 in ParseDecorate (sc=@0xbfb2f7f4) at /home/gxx/Desktop/src/gzdoom-svn/trunk/src/thingdef/thingdef_main.cpp:80
#13 0x083ac356 in LoadDecorations () at /home/gxx/Desktop/src/gzdoom-svn/trunk/src/thingdef/thingdef_main.cpp:148
#14 0x08165e7e in FActorInfo::StaticInit () at /home/gxx/Desktop/src/gzdoom-svn/trunk/src/info.cpp:107
#15 0x0812e791 in D_DoomMain () at /home/gxx/Desktop/src/gzdoom-svn/trunk/src/d_main.cpp:2503
#16 0x080fc5ae in main (argc=1, argv=0xbfb30be4) at /home/gxx/Desktop/src/gzdoom-svn/trunk/src/sdl/i_main.cpp:272
The program is running.  Exit anyway? (y or n) 
[/spoiler]

Thanks for working on this.
User avatar
GuntherDW
Posts: 117
Joined: Sat Nov 12, 2005 1:53
Location: Belgium, Antwerp
Contact:

Post by GuntherDW »

gdb does usually provide a better log, if a DEBUG build was made :p
(and why does : x look like an angry face? :s)
it's odd that that would be the culprit, since my standard CFLAGS are "-march=athlon64 -msse3 -O2 -pipe"

O3 is usually regarded as the unstable optimisation flag, i'd recommend using O2 above anything :)
anubis2591
Posts: 6
Joined: Sat Sep 06, 2008 13:41

Post by anubis2591 »

stevenaaus wrote:
anubis2591 wrote: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.
I dont think there *is* any standard install. I just copy the necessary files (the pk3 file, gzdoom and doom2.wad) to /usr/local/games/gzdoom.
Ah, I though I had to move gzdoom into /usr/bin and libraries and everyting in their respective directories, but I guess this is only really compiling GZDoom anyways. Thanks though.

I'm trying to compile this on the same machine after a reinstall of Arch. I get this error while compiling:

Code: Select all

Scanning dependencies of target zdoom
[ 31%] Building CXX object src/CMakeFiles/zdoom.dir/sdl/i_main.o
[ 31%] Building CXX object src/CMakeFiles/zdoom.dir/sdl/i_system.o
[ 32%] Building CXX object src/CMakeFiles/zdoom.dir/sdl/sdlglvideo.o
In file included from /tmp/trunk/src/sdl/sdlglvideo.cpp:19:
/tmp/trunk/src/gl/gl_functions.h:63: error: ‘subsector_t’ has not been declared
/tmp/trunk/src/gl/gl_functions.h:97: error: ‘FTextureID’ does not name a type
/tmp/trunk/src/gl/gl_functions.h:125: error: ‘angle_t’ has not been declared
/tmp/trunk/src/gl/gl_functions.h:133: error: ‘angle_t’ does not name a type
/tmp/trunk/src/gl/gl_functions.h:151: error: variable or field ‘gl_RecalcVertexHeights’ declared void
/tmp/trunk/src/gl/gl_functions.h:151: error: ‘vertex_t’ was not declared in this scope
/tmp/trunk/src/gl/gl_functions.h:151: error: ‘v’ was not declared in this scope
make[2]: *** [src/CMakeFiles/zdoom.dir/sdl/sdlglvideo.o] Error 1
make[1]: *** [src/CMakeFiles/zdoom.dir/all] Error 2
make: *** [all] Error 2
Garron
Posts: 8
Joined: Sat Oct 04, 2008 14:55

Post by Garron »

anubis2591 wrote:I'm trying to compile this on the same machine after a reinstall of Arch. I get this error while compiling:
Same error I was getting. You need to use r185 (I haven't tested it with the newest version, it may or may not work) and apply the patch posted above by GuntherDW.
Graf Zahl wrote:It's more 'if'. So far the only person who offered to help me was Grubber and that came with a big 'but' due to time constraints - which is the same thing that's holding me back.
Out of curiosity, what parts of GZDoom are non-GPL?
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Post by Graf Zahl »

Currently, all of it, except FraggleScript.

The parts that are GPL incompatible are parts of the software render (which obviously can be removed), FMOD and the OPL synth. Regrettably there's not much that canbe done about that. It will have to go, sadly.
anubis2591
Posts: 6
Joined: Sat Sep 06, 2008 13:41

Post by anubis2591 »

Thanks, it worked perfectly after I figured out how to apply the patch.
Garron
Posts: 8
Joined: Sat Oct 04, 2008 14:55

Post by Garron »

Graf Zahl wrote:Currently, all of it, except FraggleScript.

The parts that are GPL incompatible are parts of the software render (which obviously can be removed), FMOD and the OPL synth. Regrettably there's not much that canbe done about that. It will have to go, sadly.
So FMOD is the main thing. What would you use ideally? OpenAL? This is probably beyond my meagre coding skills, but I'd offer what help I could. At least, I might be interested in poking at the code a bit.

As for the OPL synth, http://www.cozendey.com/opl3/opl3.html looks interesting although I'm sure it would take a bit of work to get it useful for gzdoom.
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Post by Graf Zahl »

Over at zdoom.org someone is already working on an OpenAL implementation but I haven't had time yet to check it out.

As for your OPL link, Java is useless. I once had a look at AdPlug but its distribution is a hopeless mess. In any case, it's not important enough - at least to get a GPL version going.
Locked

Return to “GZDoom”