From: HiPhish <hiphish@posteo.de>
To: help-guix@gnu.org
Subject: Need help porting eDuke32
Date: Sat, 16 Feb 2019 10:49:58 +0100 [thread overview]
Message-ID: <2813443.L9NyMg9ZKX@aleksandar-ixtreme-m5740> (raw)
Hello everyone,
I have been trying to build eDuke32[1] (a Free source port of Duke Nukem 3D)
with Guix following their instructions[2], but it looks like I am unable to
set up the environment properly. I first created the following Guile script
(omitting some version, source, description and synopsis for brevity):
(define-public eduke32
(package
(name "eduke32")
(build-system gnu-build-system)
(arguments `())
(native-inputs
`(("pkg-config" ,pkg-config)))
(inputs
`(("sdl-union" ,(sdl-union (list sdl2 sdl2-mixer)))
("glu" ,glu)
("libvorbis" ,libvorbis)
("libvpx" ,libvpx)
("flac" ,flac)
("gtk+" ,gtk+-2)))))
Then I typed `guix environment --load=eduke32.scm` in my shell to set up the
build environment, and executed `make`. This works at first, it builds the
following files:
https://pastebin.com/FyJKK6BD
Then it fails at this step:
In file included from source/build/include/mutex.h:10:0,
from source/build/include/osd.h:12,
from source/build/include/baselayer.h:11,
from source/duke3d/src/duke3d.h:28,
from source/duke3d/src/sdlmusic.cpp:35:
source/build/include/sdl_inc.h:63:25: fatal error: SDL_mixer.h: No such
file or directory
compilation terminated.
Failed building obj/duke3d/sdlmusic.o from source/duke3d/src/sdlmusic.cpp!
make: *** [GNUmakefile:982: obj/duke3d/sdlmusic.o] Error 1
Looking into the offending file shows the following code:
#if defined NEED_SDL_MIXER
# if defined SDL_USEFOLDER
# if SDL_TARGET == 2
# include <SDL2/SDL_mixer.h>
# else
# include <SDL/SDL_mixer.h>
# endif
# else
# include "SDL_mixer.h"
# endif
The second-to-last line is line 63; the compiler looks for the header file in
the same directory as the source file, which is obviously wrong. So it seems
like my environment specification did not set up SDL properly. Can someone who
has experience with SDL please help me out to understand what is going wrong
here?
[1] http://eduke32.com/
[2] https://wiki.eduke32.com/wiki/Building_EDuke32_on_Linux
next reply other threads:[~2019-02-16 9:50 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-16 9:49 HiPhish [this message]
2019-02-16 10:30 ` Need help porting eDuke32 Pierre Neidhardt
2019-02-16 12:15 ` nee
2019-02-16 12:20 ` Pierre Neidhardt
2019-02-16 16:45 ` Marius Bakke
-- strict thread matches above, loose matches on Subject: below --
2019-02-17 8:20 HiPhish
2019-02-17 15:33 ` Pierre Neidhardt
2019-02-17 16:21 ` HiPhish
2019-02-21 19:19 ` Pierre Neidhardt
2019-02-21 19:22 ` Pierre Neidhardt
2019-02-21 19:27 ` Pierre Neidhardt
2019-02-21 20:27 ` HiPhish
2019-02-22 10:36 ` Pierre Neidhardt
2019-02-22 10:57 ` Pierre Neidhardt
2019-02-22 13:01 ` Pierre Neidhardt
2019-02-24 23:04 ` HiPhish
2019-02-25 16:09 ` Pierre Neidhardt
2019-02-25 17:51 ` Andreas Enge
2019-02-25 18:59 ` Giovanni Biscuolo
2019-02-26 9:57 ` Tobias Geerinckx-Rice
2019-02-26 10:00 ` Pierre Neidhardt
2019-02-26 11:18 ` HiPhish
2019-02-26 14:25 ` Ricardo Wurmus
2019-02-26 15:41 ` Jack Hill
2019-02-26 20:50 ` swedebugia
2019-02-24 23:00 ` HiPhish
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2813443.L9NyMg9ZKX@aleksandar-ixtreme-m5740 \
--to=hiphish@posteo.de \
--cc=help-guix@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.