From mboxrd@z Thu Jan 1 00:00:00 1970 From: HiPhish Subject: Re: Need help porting eDuke32 Date: Thu, 21 Feb 2019 21:27:45 +0100 Message-ID: <1778948.l3vIaAGMXl@aleksandar-ixtreme-m5740> References: <4082254.2VInIakpOu@aleksandar-ixtreme-m5740> <3942569.6XaQy4PdK7@aleksandar-ixtreme-m5740> <87imxdj6ew.fsf@ambrevar.xyz> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Return-path: Received: from eggs.gnu.org ([209.51.188.92]:48229) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gwuwt-0004dE-CW for help-guix@gnu.org; Thu, 21 Feb 2019 15:28:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gwuwl-0006il-WA for help-guix@gnu.org; Thu, 21 Feb 2019 15:27:59 -0500 Received: from mout02.posteo.de ([185.67.36.66]:57913) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gwuwi-0006a5-0v for help-guix@gnu.org; Thu, 21 Feb 2019 15:27:54 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 422312400E5 for ; Thu, 21 Feb 2019 21:27:48 +0100 (CET) In-Reply-To: <87imxdj6ew.fsf@ambrevar.xyz> 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: Pierre Neidhardt Cc: help-guix@gnu.org Thank you for looking it this. I have done my own poking around and here is the idea I came up with, after looking at how some other games were handling SDL: (arguments `(#:phases (modify-phases %standard-phases (delete 'configure) (add-after 'set-paths 'set-sdl-paths ;; The makefile adds the output of `sdl2-config --cflags` to the ;; compiler flags, but sdl2-config gives us the wrong directory to ;; include. We have to add the SDL2 header directory ourselves. (lambda* (#:key inputs #:allow-other-keys) (setenv "CPLUS_INCLUDE_PATH" (string-append (assoc-ref inputs "sdl-union") "/include/SDL2" ":" (getenv "CPLUS_INCLUDE_PATH"))) #t)) (delete 'install)))) This seems cleaner to me than patching. I tested it with `guix build` and it seems to work, but I won't have time until next week to look into it again. On Thursday, 21 February 2019 20:19:35 CET you wrote: > I've looked into this and found the culprit. > > > $ echo $C_INCLUDE_PATH > > /gnu/store/x3r6c04n583q3fz7szm32ahycrxgfiz6-profile/include > > This is not correct. You should have a ":"-separated list of store items > brom bzip2 to libxau. > > > $ sdl2-config --cflags > > -I/gnu/store/4bhz5xzr39v0kgxf3ipv6kswicrdmkk4-sdl2-2.0.9/include/SDL2 > > Indeed, sdl2-config should return the path to the union, not the sdl2 > package. SDL2_mixer is missing, which leads to the error. > > It seems to be an issue with sdl2-config. Any idea, anyone?