From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marius Bakke Subject: Re: Need help porting eDuke32 Date: Sat, 16 Feb 2019 17:45:15 +0100 Message-ID: <8736onwulg.fsf@fastmail.com> References: <2813443.L9NyMg9ZKX@aleksandar-ixtreme-m5740> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:58461) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gv35c-0002FX-9o for help-guix@gnu.org; Sat, 16 Feb 2019 11:45:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gv35a-0005BX-UN for help-guix@gnu.org; Sat, 16 Feb 2019 11:45:19 -0500 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:44533) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gv35a-0005AS-ME for help-guix@gnu.org; Sat, 16 Feb 2019 11:45:18 -0500 In-Reply-To: <2813443.L9NyMg9ZKX@aleksandar-ixtreme-m5740> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: HiPhish , help-guix@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hello, HiPhish writes: > 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 su= ch=20 > 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 =3D=3D 2 > # include > # else > # include > # endif > # else > # include "SDL_mixer.h" > # endif > > The second-to-last line is line 63; the compiler looks for the header fil= e in=20 > the same directory as the source file, which is obviously wrong. So it se= ems=20 > like my environment specification did not set up SDL properly. Can someon= e who=20 > has experience with SDL please help me out to understand what is going wr= ong=20 > here? The 'include' keyword makes the compiler look for header files in $C_INCLUDE_PATH and a few other locations. The Guix daemon will populate that variable with all inputs that have an "include" directory. Running `guix build sdl2-mixer` shows that it has ".../include/SDL2/SDL_mixer.h". What's needed here is to make sure SDL_USEFOLDER is set such that it searches for as on line 58. Alternatively, you could substitute the code on line 63 to read 'include "SDL2/SDL_mixer.h"' as a probably dirty workaround. HTH! --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAlxoPhsACgkQoqBt8qM6 VPo+cAgAxGEYa3XVjl5koDJk1mJo6vBEs2DbYmb6k7Vdmun8fmSMYPUadNqZe5nh +IHmz7uJJsnZUs2xWvcYWbdZg0w5YfuVAv5gB7rPj2OMusIYNryLeFXYeGkihpQE WqHXZroDeHqQQ6edIP/yWE49rXZ34uZjkqlsmb2+WAq6ZL80nmLZom6fQspr5Nbw fAqLzIXZKhHqjRpNSgZimJlb5cUHJ72jnacbh0vW17mLYeypsHKTij59ZkWvrcAk WokMOe0shBGXOL8cxdMhDpFJcwaSe7ppTfm/BghvDerXiUgm7VhOMKWs7fztis/z FFzjLinf3yz8dBrvyZaWySKxkUCglw== =k6aj -----END PGP SIGNATURE----- --=-=-=--