[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
(Guile-SDL) Build system woes
From: |
David Thompson |
Subject: |
(Guile-SDL) Build system woes |
Date: |
Mon, 13 Oct 2014 20:45:42 -0400 |
User-agent: |
Notmuch/0.18.1 (http://notmuchmail.org) Emacs/24.3.1 (x86_64-pc-linux-gnu) |
Hello,
In trying to package guile-sdl for the GNU Guix distribution, I've
encountered problems with the build system. In Guix, each package
occupies its own place in the "store", a directory in /gnu/store. This
means that each SDL library installed to a different place, the libs and
headers aren't in /usr/lib and /usr/include.
Here's what some SDL directories look like on my system right now:
/gnu/store/lkfv5wld3rw1n87jl5fspp5xn0ihd9cs-sdl-1.2.15
/gnu/store/n664n4210g2hblvfbp2dks224wv32ln2-sdl-gfx-2.0.24
/gnu/store/3daj0irsjgzb1kvxm22ixkxvg2xa17bb-sdl-image-1.2.12
/gnu/store/7jsaq8islf9chs2r16yr9j8sjy4hch9i-sdl-ttf-2.0.11
Guix automatically sets environment variables such as LIBRARY_PATH,
CPATH, and PKG_CONFIG path to the right values. The 'configure' script
successfully detects the libraries. However, during 'make', things go
south. Here is one such error:
../../build-aux/guile-baux/gbaux-do k2c -o init.c init.kf
-I/gnu/store/lkfv5wld3rw1n87jl5fspp5xn0ihd9cs-sdl-1.2.15/include/SDL
sdl.c:183:20: fatal error: k/init.c: No such file or directory
#include "k/init.c"
^
compilation terminated.
sdlvideo.c:24:23: fatal error: SDL_image.h: No such file or directory
#include "SDL_image.h"
^
compilation terminated.
sdlsurface.c:24:23: fatal error: SDL_image.h: No such file or directory
#include "SDL_image.h"
^
compilation terminated.
I can see that the -I flag only has the path to the core SDL headers,
but not the extension libraries. I tried passing the proper CFLAGS into
'make' but to no avail.
Is it possible for the build system to work with such a configuration
right now? If not, would it be easy to patch?
Thanks!
--
David Thompson
Web Developer - Free Software Foundation - http://fsf.org
GPG Key: 0FF1D807
Support the FSF: https://fsf.org/donate
- (Guile-SDL) Build system woes,
David Thompson <=