Duke4.net Forums: Howto install eduke32 on Ubuntu 13.10 - Duke4.net Forums

Jump to content

Hide message Show message
Welcome to the Duke4.net Forums!

Register an account now to get access to all board features. After you've registered and logged in, you'll be able to create topics, post replies, send and receive private messages, disable the viewing of ads and more!

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Howto install eduke32 on Ubuntu 13.10

User is offline   Rene CD 

  • 0

#1

Hi

I'm a great friend of Duke Nukem, played the original, amazed about playing the new hi-res version.

I can't get it to install under Ubuntu 13.10 though. I've followed the instructions on http://wiki.eduke32..../APT_repository, but after sudo apt-get update I get these errors:

W: Failed to fetch http://apt.duke4.net.../source/Sources 404 Not Found

W: Failed to fetch http://apt.duke4.net...-amd64/Packages 404 Not Found

W: Failed to fetch http://apt.duke4.net...y-i386/Packages 404 Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.

and after sudo apt-get install eduke32 I get

E: Unable to locate package eduke3

I ugess it doesn't like the saucy distro with 13.10? I don't suppose there are any real difference in the program, is there any way I can trick Ubuntu to install it anyway?

Alternatively can I compile it from scratch? I don't have much experience with it but ready to give it a go if that''s what needs to be done.
0

User is online   Hendricks266 

  • EDuke32 Senior Developer
  • 5,346

  #2

Bioman may not have updated our APT packages yet, unless that is done by some other process.

You can try building from source following these directions.
0

User is offline   Rene CD 

  • 0

#3

View PostHendricks266, on 31 October 2013 - 12:44 PM, said:

Bioman may not have updated our APT packages yet, unless that is done by some other process.

You can try building from source following these directions.


Ok, I'll give it a shot.

I installed svn and checked out the source.

I tried to install the dev environment as described in http://wiki.eduke32....uke32_on_Linux. Most of it goes fine, but it fails trying to install flac-devel. It may not be available for Ubuntu 13.10 ?

E: Unable to locate package flac-devel

Or do I need some special repo first?

Anyway, I thought I'd try to push ahead and just run a make and see if this was really needed, but it failed with another error:

~/src/eduke32/eduke32$ make
make: sdl2-config: Command not found
make: sdl2-config: Command not found
make: sdl2-config: Command not found
Build started using:
compiler: "gcc -Wimplicit -Wdeclaration-after-statement -O2 -funswitch-loops -fomit-frame-pointer -DNDEBUG -DUSING_LTO -flto -fno-stack-protector -W -Wall -Werror-implicit-function-declaration -Wpointer-arith -Wextra -funsigned-char -fno-strict-aliasing -DNO_GCC_BUILTINS -D_FORTIFY_SOURCE=2 -fjump-tables -Wno-unused-result -Wno-char-subscripts -DUSE_LIBPNG -DUSE_LIBVPX -Isource -Ibuild/include -Isource/jmact -Isource/jaudiolib/include -Isource/enet/include -fno-pic -DHAVE_GTK2 -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/harfbuzz -DHAVE_INTTYPES -DSDL_TARGET=2 -DRENDERTYPESDL=1 -DMIXERTYPESDL=1 -Wno-strict-overflow -DUSE_OPENGL -DNOASM -DPOLYMER -Wno-attributes"
linker: " -flto -Wl,-Map=start.memmap -lrt -lFLAC -lvorbisfile -lvorbis -logg -lSDL2_mixer -lm -lvpx -ldl -pthread -lpng -lz "
In file included from build/include/sdlayer.h:8:0,
from build/include/renderlayer.h:5,
from source/game.c:26:
build/include/sdl_inc.h:19:18: fatal error: SDL.h: No such file or directory
# include "SDL.h"
^
compilation terminated.
Failed building source/obj/game.o from source/game.c!
make: *** [source/obj/game.o] Error 1

I noticed a couple of sdl libraries were installed during the dev-env installation, it didn't throw any errors.

Sorry but I'm not really familiar with developments.

This post has been edited by Rene CD: 31 October 2013 - 09:33 PM

0

User is online   Hendricks266 

  • EDuke32 Senior Developer
  • 5,346

  #4

I just added the flac-devel package to that list today after replying, so if it doesn't install, don't worry about it. I'll remove from the wiki page. (I'm not a Linux user, and I suddenly thought that the instructions might be out of date.)

You'll have to install SDL2 manually since I don't think a package exists for it.
0

User is offline   NY00123 

  • 76

#5

Think you'd want SDL2_mixer as well.

In case of troubles you can go back to SDL 1.2 (and SDL_mixer 1.2.x). See the guidelines posted by Hendricks266 beforehand for details on targetting these.


This post has been edited by NY00123: 31 October 2013 - 11:41 PM

0

User is offline   Helixhorned 

  • EDuke32 Senior Developer
  • 697

#6

On Ubuntu 13.10:
sudo apt-get install libflac-dev libsdl2-dev libsdl2-mixer-dev


(o~ Lunatic home: documentation, stand-alone LuaJIT, LunaCON and utilities ~o)
1

User is offline   Rene CD 

  • 0

#7

View PostHelixhorned, on 01 November 2013 - 02:01 AM, said:

On Ubuntu 13.10:
sudo apt-get install libflac-dev libsdl2-dev libsdl2-mixer-dev



Yes I got to something like that as well. It finally compiled, I then copied the two exectuables into my old eduke32 game directory (that I copied over from my old Windows PC) and tried to run it, but it's still complaining something is missing. Not sure how to proceed from here....


$ ./eduke32
EDuke32 2.0.0devel rXXXX
Compiled Nov 1 2013 21:59:06
Using /home/renecd/eduke/ for game data
Using /home/renecd/.eduke32/ for game data
Initializing SDL system interface (compiled against SDL version 2.0.0, found version 2.0.0)
Using "x11" video driver
Searching for game data...
./eduke32[0x52163d]
/lib/x86_64-linux-gnu/libc.so.6(+0x36ff0)[0x7fbf0e937ff0]
/lib/x86_64-linux-gnu/libpthread.so.0(pthread_mutex_lock+0x4)[0x7fbf0ecd2f74]
/usr/lib/x86_64-linux-gnu/libX11.so.6(XrmQGetResource+0x3c)[0x7fbf0bfbb15c]
/usr/lib/x86_64-linux-gnu/libX11.so.6(XGetDefault+0xc2)[0x7fbf0bf98a92]
/usr/lib/x86_64-linux-gnu/libcairo.so.2(+0x94dcf)[0x7fbf069f6dcf]
/usr/lib/x86_64-linux-gnu/libcairo.so.2(+0x97110)[0x7fbf069f9110]
/usr/lib/x86_64-linux-gnu/libcairo.so.2(cairo_surface_get_font_options+0x87)[0x7fbf069cbe07]
/usr/lib/x86_64-linux-gnu/libcairo.so.2(+0x2b61f)[0x7fbf0698d61f]
/usr/lib/x86_64-linux-gnu/libcairo.so.2(+0x2ef95)[0x7fbf06990f95]
/usr/lib/x86_64-linux-gnu/libcairo.so.2(cairo_show_glyphs+0x22)[0x7fbf06983f82]
/usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so.0(+0x7da3)[0x7fbf06e94da3]
/usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so.0(+0x80b4)[0x7fbf06e950b4]
/usr/lib/x86_64-linux-gnu/libpango-1.0.so.0(pango_renderer_draw_glyphs+0x3f)[0x7fbf05fa5bcf]
/usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so.0(pango_cairo_show_glyph_string+0x94)[0x7fbf06e95314]
/usr/lib/x86_64-linux-gnu/libpango-1.0.so.0(pango_renderer_draw_glyphs+0x3f)[0x7fbf05fa5bcf]
/usr/lib/x86_64-linux-gnu/libpango-1.0.so.0(pango_renderer_draw_layout_line+0x4a8)[0x7fbf05fa6558]
/usr/lib/x86_64-linux-gnu/libpango-1.0.so.0(pango_renderer_draw_layout+0x115)[0x7fbf05fa68b5]
/usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0(gdk_draw_layout_with_colors+0x1e3)[0x7fbf072c9a13]
/usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0(gdk_draw_layout+0xf7)[0x7fbf072c9c87]
/usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/engines/libmurrine.so(+0x12b74)[0x7fbf02f8fb74]
/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0(+0x122a1d)[0x7fbf07672a1d]
/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0(+0x12d645)[0x7fbf0767d645]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_closure_invoke+0xb2)[0x7fbf05b01102]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(+0x218db)[0x7fbf05b128db]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_signal_emit_valist+0xab9)[0x7fbf05b1a4f9]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_signal_emit+0x82)[0x7fbf05b1aae2]
/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0(+0x23d5f4)[0x7fbf0778d5f4]
/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0(gtk_container_propagate_expose+0x198)[0x7fbf07606678]
/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0(+0x14a8d7)[0x7fbf0769a8d7]
/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0(+0x12d645)[0x7fbf0767d645]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_closure_invoke+0xb2)[0x7fbf05b01102]
hash_find(): table not initialized!
0

User is offline   Rene CD 

  • 0

#8

Hm, no takers, I guess I didn't offer enough details.... below the output of the make command, as you can see everything seems to hvae compiled and linked reasonably ok. A few warnings, but I think that's normal? As I said, I'm not really a programmer so I don't know...

$ make
Build started using:
compiler: "gcc -Wimplicit -Wdeclaration-after-statement -O2 -funswitch-loops -fomit-frame-pointer -DNDEBUG -DUSING_LTO -flto -fno-stack-protector -W -Wall -Werror-implicit-function-declaration -Wpointer-arith -Wextra -funsigned-char -fno-strict-aliasing -DNO_GCC_BUILTINS -D_FORTIFY_SOURCE=2 -fjump-tables -Wno-unused-result -Wno-char-subscripts -DUSE_LIBPNG -DUSE_LIBVPX -Isource -Ibuild/include -Isource/jmact -Isource/jaudiolib/include -Isource/enet/include -fno-pic -DHAVE_GTK2 -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/harfbuzz -DHAVE_INTTYPES -DSDL_TARGET=2 -I/usr/include/SDL2 -D_REENTRANT -DRENDERTYPESDL=1 -DMIXERTYPESDL=1 -Wno-strict-overflow -DUSE_OPENGL -DNOASM -DPOLYMER -Wno-attributes"
linker: " -flto -Wl,-Map=start.memmap -lrt -lFLAC -lvorbisfile -lvorbis -logg -lSDL2_mixer -lm -lvpx -L/usr/lib/x86_64-linux-gnu -lSDL2 -ldl -pthread -lpng -lz "
Changing dir to /home/renecd/src/eduke32/eduke32/build
Changing dir to /home/renecd/src/eduke32/eduke32
Changing dir to /home/renecd/src/eduke32/eduke32/source/jaudiolib
Changing dir to /home/renecd/src/eduke32/eduke32
Changing dir to /home/renecd/src/eduke32/eduke32/source/enet
Changing dir to /home/renecd/src/eduke32/eduke32
source/obj/animlib.o (symbol from plugin): warning: memset used with constant zero length parameter; this could be due to transposed parameters
In function ‘__fread_alias’,
inlined from ‘kzread’ at src/kplib.c:3079:18,
inlined from ‘kread’ at src/cache1d.c:951:9:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:290:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]
return __fread_chk (__ptr, __bos0 (__ptr), __size, __n, __stream);
^
/usr/include/x86_64-linux-gnu/bits/stdio2.h: In function ‘kzaddstack’:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:290:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]
return __fread_chk (__ptr, __bos0 (__ptr), __size, __n, __stream);
^
/usr/include/x86_64-linux-gnu/bits/stdio2.h: In function ‘suckbitsnextblock’:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:290:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]
return __fread_chk (__ptr, __bos0 (__ptr), __size, __n, __stream);
^
Linked executable eduke32
Changing dir to /home/renecd/src/eduke32/eduke32/build
Changing dir to /home/renecd/src/eduke32/eduke32
engine.o (symbol from plugin): warning: memset used with constant zero length parameter; this could be due to transposed parameters
In function ‘__fread_alias’,
inlined from ‘kzread’ at src/kplib.c:3079:18,
inlined from ‘kread’ at src/cache1d.c:951:9:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:290:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]
return __fread_chk (__ptr, __bos0 (__ptr), __size, __n, __stream);
^
/usr/include/x86_64-linux-gnu/bits/stdio2.h: In function ‘kzaddstack’:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:290:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]
return __fread_chk (__ptr, __bos0 (__ptr), __size, __n, __stream);
^
/usr/include/x86_64-linux-gnu/bits/stdio2.h: In function ‘suckbitsnextblock’:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:290:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]
return __fread_chk (__ptr, __bos0 (__ptr), __size, __n, __stream);
^
Linked executable mapster32
Build successful:
-rwxr-xr-x 1 renecd renecd 1833968 Nov 2 23:55 eduke32
-rwxr-xr-x 1 renecd renecd 1378736 Nov 2 23:55 mapster32

If I try to run it in this directory I get a "no recognized game data" error:

$ ./eduke32
EDuke32 2.0.0devel rXXXX
Compiled Nov 1 2013 21:59:06
Using /home/renecd/src/eduke32/eduke32/ for game data
Using /home/renecd/.eduke32/ for game data
Initializing SDL system interface (compiled against SDL version 2.0.0, found version 2.0.0)
Using "x11" video driver
Searching for game data...
Found no recognized game data!
./eduke32[0x52163d]
/lib/x86_64-linux-gnu/libc.so.6(+0x36ff0)[0x7f9c4d737ff0]
/lib/x86_64-linux-gnu/libpthread.so.0(pthread_mutex_lock+0x4)[0x7f9c4dad2f74]
/usr/lib/x86_64-linux-gnu/libX11.so.6(XrmQGetResource+0x3c)[0x7f9c4adbb15c]
/usr/lib/x86_64-linux-gnu/libX11.so.6(XGetDefault+0xc2)[0x7f9c4ad98a92]
/usr/lib/x86_64-linux-gnu/libcairo.so.2(+0x94dcf)[0x7f9c457f6dcf]
/usr/lib/x86_64-linux-gnu/libcairo.so.2(+0x97110)[0x7f9c457f9110]
/usr/lib/x86_64-linux-gnu/libcairo.so.2(cairo_surface_get_font_options+0x87)[0x7f9c457cbe07]
/usr/lib/x86_64-linux-gnu/libcairo.so.2(+0x2b61f)[0x7f9c4578d61f]
/usr/lib/x86_64-linux-gnu/libcairo.so.2(+0x2ef95)[0x7f9c45790f95]
/usr/lib/x86_64-linux-gnu/libcairo.so.2(cairo_show_glyphs+0x22)[0x7f9c45783f82]
/usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so.0(+0x7da3)[0x7f9c45c94da3]
/usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so.0(+0x80b4)[0x7f9c45c950b4]
/usr/lib/x86_64-linux-gnu/libpango-1.0.so.0(pango_renderer_draw_glyphs+0x3f)[0x7f9c44da5bcf]
/usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so.0(pango_cairo_show_glyph_string+0x94)[0x7f9c45c95314]
/usr/lib/x86_64-linux-gnu/libpango-1.0.so.0(pango_renderer_draw_glyphs+0x3f)[0x7f9c44da5bcf]
/usr/lib/x86_64-linux-gnu/libpango-1.0.so.0(pango_renderer_draw_layout_line+0x4a8)[0x7f9c44da6558]
/usr/lib/x86_64-linux-gnu/libpango-1.0.so.0(pango_renderer_draw_layout+0x115)[0x7f9c44da68b5]
/usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0(gdk_draw_layout_with_colors+0x1e3)[0x7f9c460c9a13]
/usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0(gdk_draw_layout+0xf7)[0x7f9c460c9c87]
/usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/engines/libmurrine.so(+0x12b74)[0x7f9c41d8fb74]
/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0(+0x122a1d)[0x7f9c46472a1d]
/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0(+0x12d645)[0x7f9c4647d645]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_closure_invoke+0xb2)[0x7f9c44901102]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(+0x218db)[0x7f9c449128db]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_signal_emit_valist+0xab9)[0x7f9c4491a4f9]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_signal_emit+0x82)[0x7f9c4491aae2]
/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0(+0x23d5f4)[0x7f9c4658d5f4]
/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0(gtk_container_propagate_expose+0x198)[0x7f9c46406678]
/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0(+0x14a8d7)[0x7f9c4649a8d7]
/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0(+0x12d645)[0x7f9c4647d645]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_closure_invoke+0xb2)[0x7f9c44901102]
hash_find(): table not initialized!

So I move the eduke32 binary to my game directory, and now I no longer get the "Found no recognized game data!" line ... the rest is unchanged though.

Any takers now?
0

User is online   Hendricks266 

  • EDuke32 Senior Developer
  • 5,346

  #9

Where are your DUKE3D.GRP and DUKE.RTS located?

That doesn't look like the full output of the build, btw, judging by the fact that it skips all the source folders without building any objects. You'll need to make veryclean before you make.
0

User is offline   Rene CD 

  • 0

#10

View PostHendricks266, on 02 November 2013 - 09:21 AM, said:

Where are your DUKE3D.GRP and DUKE.RTS located?

That doesn't look like the full output of the build, btw, judging by the fact that it skips all the source folders without building any objects. You'll need to make veryclean before you make.


DUKE.RTS and duke3d.grp (not DUKE3D.GRP) is in the eduke direcdtory where I copy the eduke32 binary after it's compiled.

here's a full compile:

$ make veryclean
$ make
Build started using:
compiler: "gcc -Wimplicit -Wdeclaration-after-statement -O2 -funswitch-loops -fomit-frame-pointer -DNDEBUG -DUSING_LTO -flto -fno-stack-protector -W -Wall -Werror-implicit-function-declaration -Wpointer-arith -Wextra -funsigned-char -fno-strict-aliasing -DNO_GCC_BUILTINS -D_FORTIFY_SOURCE=2 -fjump-tables -Wno-unused-result -Wno-char-subscripts -DUSE_LIBPNG -DUSE_LIBVPX -Isource -Ibuild/include -Isource/jmact -Isource/jaudiolib/include -Isource/enet/include -fno-pic -DHAVE_GTK2 -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/harfbuzz -DHAVE_INTTYPES -DSDL_TARGET=2 -I/usr/include/SDL2 -D_REENTRANT -DRENDERTYPESDL=1 -DMIXERTYPESDL=1 -Wno-strict-overflow -DUSE_OPENGL -DNOASM -DPOLYMER -Wno-attributes"
linker: " -flto -Wl,-Map=start.memmap -lrt -lFLAC -lvorbisfile -lvorbis -logg -lSDL2_mixer -lm -lvpx -L/usr/lib/x86_64-linux-gnu -lSDL2 -ldl -pthread -lpng -lz "
Built object source/obj/game.o
Built object source/obj/actors.o
Built object source/obj/anim.o
Built object source/obj/common.o
Built object source/obj/config.o
Built object source/obj/demo.o
Built object source/obj/gamedef.o
Built object source/obj/gameexec.o
Built object source/obj/gamevars.o
Built object source/obj/global.o
Built object source/obj/input.o
Built object source/obj/menus.o
Built object source/obj/namesdyn.o
Built object source/obj/net.o
Built object source/obj/player.o
Built object source/obj/premap.o
Built object source/obj/savegame.o
Built object source/obj/sector.o
Built object source/obj/rts.o
Built object source/obj/osdfuncs.o
Built object source/obj/osdcmds.o
Built object source/obj/grpscan.o
Built object source/obj/sounds.o
Built object source/obj/soundsdyn.o
Built object source/obj/file_lib.o
Built object source/obj/control.o
Built object source/obj/keyboard.o
Built object source/obj/mouse.o
Built object source/obj/joystick.o
Built object source/obj/mathutil.o
Built object source/obj/scriplib.o
Built object source/obj/animlib.o
Built object source/obj/animvpx.o
Built object source/obj/game_banner.o
Built object source/obj/startgtk.game.o
Built object source/obj/game_icon.o
Built object source/obj/sdlmusic.o
Changing dir to /home/renecd/src/eduke32/eduke32/build
Built object ../source/eobj/a-c.o
Built object ../source/eobj/baselayer.o
Built object ../source/eobj/cache1d.o
Built object ../source/eobj/compat.o
Built object ../source/eobj/crc32.o
Built object ../source/eobj/defs.o
Built object ../source/eobj/engine.o
Built object ../source/eobj/polymost.o
Built object ../source/eobj/texcache.o
Built object ../source/eobj/dxtfilter.o
Built object ../source/eobj/hightile.o
Built object ../source/eobj/textfont.o
Built object ../source/eobj/smalltextfont.o
Built object ../source/eobj/kplib.o
Built object ../source/eobj/quicklz.o
Built object ../source/eobj/osd.o
Built object ../source/eobj/pragmas.o
Built object ../source/eobj/scriptfile.o
Built object ../source/eobj/mutex.o
Built object ../source/eobj/mdsprite.o
Built object ../source/eobj/glbuild.o
Built object ../source/eobj/polymer.o
Built object ../source/eobj/sdlayer.o
Built object ../source/eobj/gtkbits.o
Built object ../source/eobj/dynamicgtk.o
Ended compilation in this directory using:
compiler: "gcc -Wimplicit -Wdeclaration-after-statement -O2 -funswitch-loops -fomit-frame-pointer -DNDEBUG -DUSING_LTO -flto -fno-stack-protector -W -Wall -Werror-implicit-function-declaration -Wpointer-arith -Wextra -funsigned-char -fno-strict-aliasing -DNO_GCC_BUILTINS -D_FORTIFY_SOURCE=2 -fjump-tables -Wno-unused-result -Wno-char-subscripts -DUSE_LIBPNG -DUSE_LIBVPX -Iinclude -Isrc -DHAVE_GTK2 -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/harfbuzz -DHAVE_INTTYPES -DSDL_TARGET=2 -I/usr/include/SDL2 -D_REENTRANT -DRENDERTYPESDL=1 -DMIXERTYPESDL=1 -Wno-strict-overflow -DUSE_OPENGL -DNOASM -DPOLYMER -Wno-attributes"
Created library archive ../source/eobj/libengine.a
Changing dir to /home/renecd/src/eduke32/eduke32
Changing dir to /home/renecd/src/eduke32/eduke32/source/jaudiolib
Built object obj/drivers.o
Built object obj/fx_man.o
Built object obj/multivoc.o
Built object obj/mix.o
Built object obj/mixst.o
Built object obj/pitch.o
Built object obj/formats.o
Built object obj/vorbis.o
Built object obj/flac.o
Built object obj/driver_nosound.o
Built object obj/driver_sdl.o
Ended compilation in this directory using:
compiler: "gcc -Wimplicit -Wdeclaration-after-statement -O2 -funswitch-loops -fomit-frame-pointer -DNDEBUG -DUSING_LTO -flto -fno-stack-protector -W -Wall -Werror-implicit-function-declaration -Wpointer-arith -Wextra -funsigned-char -fno-strict-aliasing -DNO_GCC_BUILTINS -D_FORTIFY_SOURCE=2 -fjump-tables -Wno-unused-result -Wno-char-subscripts -DUSE_LIBPNG -DUSE_LIBVPX -DHAVE_INTTYPES -DSDL_TARGET=2 -I/usr/include/SDL2 -D_REENTRANT -DRENDERTYPESDL=1 -DMIXERTYPESDL=1 -Wno-strict-overflow -DUSE_OPENGL -DNOASM -DPOLYMER -Iinclude -I../../build/include -Isrc -DHAVE_VORBIS -DHAVE_FLAC -DHAVE_SDL -Wno-attributes"
Created library archive libjfaudiolib.a
Changing dir to /home/renecd/src/eduke32/eduke32
Changing dir to /home/renecd/src/eduke32/eduke32/source/enet
Built object obj/callbacks.o
Built object obj/host.o
Built object obj/list.o
Built object obj/packet.o
Built object obj/peer.o
Built object obj/protocol.o
Built object obj/compress.o
Built object obj/unix.o
Ended compilation in this directory using:
compiler: "gcc -Wimplicit -Wdeclaration-after-statement -O2 -funswitch-loops -fomit-frame-pointer -DNDEBUG -DUSING_LTO -flto -fno-stack-protector -W -Wall -Werror-implicit-function-declaration -Wpointer-arith -Wextra -funsigned-char -fno-strict-aliasing -DNO_GCC_BUILTINS -D_FORTIFY_SOURCE=2 -fjump-tables -Wno-unused-result -Wno-char-subscripts -DUSE_LIBPNG -DUSE_LIBVPX -DHAVE_INTTYPES -DSDL_TARGET=2 -I/usr/include/SDL2 -D_REENTRANT -DRENDERTYPESDL=1 -DMIXERTYPESDL=1 -Wno-strict-overflow -DUSE_OPENGL -DNOASM -DPOLYMER -Iinclude -Isrc -I../../build/include -Wno-attributes"
Created library archive libenet.a
Changing dir to /home/renecd/src/eduke32/eduke32
source/obj/animlib.o (symbol from plugin): warning: memset used with constant zero length parameter; this could be due to transposed parameters
In function ‘__fread_alias’,
inlined from ‘kzread’ at src/kplib.c:3079:18,
inlined from ‘kread’ at src/cache1d.c:951:9:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:290:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]
return __fread_chk (__ptr, __bos0 (__ptr), __size, __n, __stream);
^
/usr/include/x86_64-linux-gnu/bits/stdio2.h: In function ‘kzaddstack’:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:290:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]
return __fread_chk (__ptr, __bos0 (__ptr), __size, __n, __stream);
^
/usr/include/x86_64-linux-gnu/bits/stdio2.h: In function ‘suckbitsnextblock’:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:290:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]
return __fread_chk (__ptr, __bos0 (__ptr), __size, __n, __stream);
^
Linked executable eduke32
Built object source/obj/astub.o
Built object source/obj/m32def.o
Built object source/obj/m32exec.o
Built object source/obj/m32vars.o
Built object source/obj/sounds_mapster32.o
Built object source/obj/editor_banner.o
Built object source/obj/build_icon.o
Changing dir to /home/renecd/src/eduke32/eduke32/build
Built object ../source/eobj/build.o
Built object ../source/eobj/config.o
Built object ../source/eobj/startgtk.editor.o
Ended compilation in this directory using:
compiler: "gcc -Wimplicit -Wdeclaration-after-statement -O2 -funswitch-loops -fomit-frame-pointer -DNDEBUG -DUSING_LTO -flto -fno-stack-protector -W -Wall -Werror-implicit-function-declaration -Wpointer-arith -Wextra -funsigned-char -fno-strict-aliasing -DNO_GCC_BUILTINS -D_FORTIFY_SOURCE=2 -fjump-tables -Wno-unused-result -Wno-char-subscripts -DUSE_LIBPNG -DUSE_LIBVPX -Iinclude -Isrc -DHAVE_GTK2 -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/harfbuzz -DHAVE_INTTYPES -DSDL_TARGET=2 -I/usr/include/SDL2 -D_REENTRANT -DRENDERTYPESDL=1 -DMIXERTYPESDL=1 -Wno-strict-overflow -DUSE_OPENGL -DNOASM -DPOLYMER -Wno-attributes"
Created library archive ../source/eobj/libbuild.a
Changing dir to /home/renecd/src/eduke32/eduke32
engine.o (symbol from plugin): warning: memset used with constant zero length parameter; this could be due to transposed parameters
In function ‘__fread_alias’,
inlined from ‘kzread’ at src/kplib.c:3079:18,
inlined from ‘kread’ at src/cache1d.c:951:9:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:290:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]
return __fread_chk (__ptr, __bos0 (__ptr), __size, __n, __stream);
^
/usr/include/x86_64-linux-gnu/bits/stdio2.h: In function ‘kzaddstack’:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:290:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]
return __fread_chk (__ptr, __bos0 (__ptr), __size, __n, __stream);
^
/usr/include/x86_64-linux-gnu/bits/stdio2.h: In function ‘suckbitsnextblock’:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:290:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]
return __fread_chk (__ptr, __bos0 (__ptr), __size, __n, __stream);
^
Linked executable mapster32
Build successful:
-rwxr-xr-x 1 renecd renecd 1833968 Nov 3 21:02 eduke32
-rwxr-xr-x 1 renecd renecd 1378736 Nov 3 21:03 mapster32
0

User is offline   Helixhorned 

  • EDuke32 Senior Developer
  • 697

#11

View PostRene CD, on 02 November 2013 - 09:03 AM, said:

/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0(+0x12d645)[0x7f9c4647d645]

It looks like the crash is happening when trying to display an error message box. Are you sure you're building with SDL2? I thought their "SDL_ShowSimpleMessageBox" didn't have any GTK dependencies, but would implement the box using X functionality only.

(o~ Lunatic home: documentation, stand-alone LuaJIT, LunaCON and utilities ~o)
0

User is offline   NY00123 

  • 76

#12

Now, as helixhorned as quoted this:

View PostRene CD, on 02 November 2013 - 09:03 AM, said:

/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0(+0x12d645)[0x7f9c4647d645]


I guess that you get the usual GTK2 startup window for a second or two, and then there is a crash?

I'm afraid to tell this is a known problem, for which the cause is unknown. While I'm very far from being an EDuke32 dev, I did tackle this part during the period of finalizing the SDL2 port. After trying to fight with it a bit, I still don't know the cause (although more could've been done, of course).

Who knows, maybe there is a conflict between GTK2 and SDL2 somewhere. There is no problem when the GTK2 startup window is not compiled in, or SDL 1.2 is used.

For now, either disable the startup window by building EDuke32 with "make HAVE_GTK2=0" (and more arguments to make if desired/required), or use SDL 1.2.


This post has been edited by NY00123: 04 November 2013 - 10:14 AM

1

User is offline   Rene CD 

  • 0

#13

View PostNY00123, on 04 November 2013 - 10:13 AM, said:

Now, as helixhorned as quoted this:



I guess that you get the usual GTK2 startup window for a second or two, and then there is a crash?

I'm afraid to tell this is a known problem, for which the cause is unknown. While I'm very far from being an EDuke32 dev, I did tackle this part during the period of finalizing the SDL2 port. After trying to fight with it a bit, I still don't know the cause (although more could've been done, of course).

Who knows, maybe there is a conflict between GTK2 and SDL2 somewhere. There is no problem when the GTK2 startup window is not compiled in, or SDL 1.2 is used.

For now, either disable the startup window by building EDuke32 with "make HAVE_GTK2=0" (and more arguments to make if desired/required), or use SDL 1.2.



Sorry but I had a small setback, suddenly for no apparent reason grub failed to boot and after spending two days trying to get it to work I ended up throwing it away in discust and install Mint Linux 15 Olivia instead (Cinnamon UI with Ubuntu repositories). But enought about that.

I ended up having to install sdl2 and sdl2_mixer from source, it was easy enough anyway, and after that it appears to have compiled fine. I symlinked the binary into the game directory and tried to start it, and the eduke32 splash/config screen came up, so partly victory.

Still doesn't start the game though. The "video mode" field is grayed out and not changeable, and the console throws this error:

Unable to set video mode: SDL_CreateWindow failed: No available video device
Failure setting video mode 320x240x0 windowed! Attempting safer mode...
Unable to set failsafe video mode!

I had a look around for this error but there are apparently so many different possible reasons they can't all be right. I wonder if anyone can offer a more specifc place to look?
0

User is offline   Helixhorned 

  • EDuke32 Senior Developer
  • 697

#14

Did you install the proprietary drivers for your graphics card?

Maybe it'll help if you tell us a bit about your system. Your problems are rather unique.

(o~ Lunatic home: documentation, stand-alone LuaJIT, LunaCON and utilities ~o)
0

User is offline   Rene CD 

  • 0

#15

View PostHelixhorned, on 07 November 2013 - 02:55 PM, said:

Did you install the proprietary drivers for your graphics card?

Maybe it'll help if you tell us a bit about your system. Your problems are rather unique.


Sorry, was out of circulation for health reasons until now. In the meantime I gave up on Mint as well and returned to the platform I know, Fedora. I've installed all the rpm's on the Wiki page and tried to 'make' eduke32, but it complained

/usr/bin/ld: cannot find -lSDL2_mixer

So I was able to find and install SDK2_mixer (SDL2_mixer.x86_64 0:2.0.0-3.fc20) - but it still complains with the same error. Any ideas?

/usr/bin/ld: cannot find -lSDL2_mixer
collect2: error: ld returned 1 exit status
Failed linking executable eduke32!
0

User is offline   Plagman 

  • Former VP of Media Operations
  • 350

#16

Is there an SDL2_mixer-devel or dev package? That's what you need to build against it.

EDuke32 - "The corrupt doctrine of terror has begun."
0

User is offline   Rene CD 

  • 0

#17

Yay! It works!

View PostPlagman, on 01 January 2014 - 06:30 PM, said:

Is there an SDL2_mixer-devel or dev package? That's what you need to build against it.


I had

SDL2-devel-2.0.1-2.fc20.x86_64
SDL2-2.0.1-2.fc20.x86_64
SDL2_mixer-2.0.0-3.fc20.x86_64

But not

SDL2_mixer-devel-2.0.0-3.fc20.x86_64

After installing that and a make veryclean it compiled and linked, probably the easiest compile of all the distros.

Now only one remaining problem -- trying to continue where I left off, loading a saved game, I get this error:

Version mismatch
Saved: 1.3.280 32-bit
Our: 1.3.289 64-bit

The saved games were saved in the standard Windows version. Is there any way I can force this version to load the game anyway, or will I have to start chapter 4 from episode 1 again? Not a big problem, just wondering....
0

User is offline   Plagman 

  • Former VP of Media Operations
  • 350

#18

Yeah, you pretty much have to restart.. sorry. You can use cheats to warp to the level you were at and give yourself itens, though..

EDuke32 - "The corrupt doctrine of terror has begun."
0

User is offline   Rene CD 

  • 0

#19

View PostPlagman, on 03 January 2014 - 07:27 PM, said:

Yeah, you pretty much have to restart.. sorry. You can use cheats to warp to the level you were at and give yourself itens, though..


Nah it's ok, what's the point in cheating in a game you play for fun. I'll just play through it again.
0

User is offline   peachesjelly 

  • 2

#20

same thing happened to mw but im using ubuntu 14.04 and building from source didnt work as well what to do.
0

User is online   Hendricks266 

  • EDuke32 Senior Developer
  • 5,346

  #21

It's a two step process: install all the packages, and make. Could you post the output of "make -Bk RELEASE=0"?
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic


All copyrights and trademarks are property of their respective owners and all comments are owned by their posters. Yes, our forum uses cookies. © 2004-2017 Duke4.net and Voidpoint, LLC

Enter your sign in name and password


Sign in options