Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Hebbar <gururajakr@sanyo.co.in>
To: buildroot@busybox.net
Subject: [Buildroot] svn commit: trunk/buildroot/package/sdl
Date: Thu, 13 Mar 2008 18:05:24 -0700 (PDT)	[thread overview]
Message-ID: <16042261.post@talk.nabble.com> (raw)
In-Reply-To: <20080307133125.0D12A1201B3@busybox.net>



Hi,

With this commit, sdl header are not copied to $(STAGING_DIR)/usr/include
folder and sdl_mixer fails to build because of missing sdl.h and other sdl
related header files.


I think we need to maintain --includedir option.

Regards
Gururaja

/bin/sh ./libtool --mode=compile
/opt/buildroot/build_arm/staging_dir/usr/bin/arm-linux-uclibcgnueabi-gcc -O0 
-I/opt/buildroot/build_arm/staging_dir/usr/include
-I/opt/buildroot/build_arm/staging_dir/include
--sysroot=/opt/buildroot/build_arm/staging_dir/ -isysroot
/opt/buildroot/build_arm/staging_dir -mtune=arm9tdmi  -D_GNU_SOURCE=1
-I/opt/buildroot/build_arm/staging_dir/usr/include/SDL -D_GNU_SOURCE=1
-D_REENTRANT -DCMD_MUSIC -DWAV_MUSIC -DMOD_MUSIC -I./mikmod -DMID_MUSIC
-DUSE_TIMIDITY_MIDI -I./timidity -c ./effect_position.c  -o
build/effect_position.lo
mkdir build/.libs
 /opt/buildroot/build_arm/staging_dir/usr/bin/arm-linux-uclibcgnueabi-gcc
-O0 -I/opt/buildroot/build_arm/staging_dir/usr/include
-I/opt/buildroot/build_arm/staging_dir/include
--sysroot=/opt/buildroot/build_arm/staging_dir/ -isysroot
/opt/buildroot/build_arm/staging_dir -mtune=arm9tdmi -D_GNU_SOURCE=1
-I/opt/buildroot/build_arm/staging_dir/usr/include/SDL -D_GNU_SOURCE=1
-D_REENTRANT -DCMD_MUSIC -DWAV_MUSIC -DMOD_MUSIC -I./mikmod -DMID_MUSIC
-DUSE_TIMIDITY_MIDI -I./timidity -c ./effect_position.c  -fPIC -DPIC -o
build/.libs/effect_position.o
./effect_position.c:31:17: error: SDL.h: No such file or directory
In file included from ./effect_position.c:32:
./SDL_mixer.h:28:23: error: SDL_types.h: No such file or directory
./SDL_mixer.h:29:23: error: SDL_rwops.h: No such file or directory
./SDL_mixer.h:30:23: error: SDL_audio.h: No such file or directory
./SDL_mixer.h:31:24: error: SDL_endian.h: No such file or directory
./SDL_mixer.h:32:25: error: SDL_version.h: No such file or directory
./SDL_mixer.h:33:24: error: begin_code.h: No such file or directory
In file included from ./effect_position.c:32:
./SDL_mixer.h:66: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 'const'
./SDL_mixer.h:87: error: expected specifier-qualifier-list before 'Uint8'
./SDL_mixer.h:114: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 'int'
./SDL_mixer.h:122: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 'int'
./SDL_mixer.h:127: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 'int'
./SDL_mixer.h:130: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 'Mix_Chunk'




root at guru_vlinux:/opt/buildroot# ls -la
build_arm/staging_dir/usr/include/SDL
ls: build_arm/staging_dir/usr/include/SDL: No such file or directory
root at guru_vlinux:/opt/buildroot#                                            


root at guru_vlinux:/opt/buildroot# ls -la
build_arm/staging_dir/usr/lib/libSDL*
lrwxrwxrwx 1 root root      20 Mar 14 12:50
build_arm/staging_dir/usr/lib/libSDL-1.2.so.0 -> libSDL-1.2.so.0.11.2
-rwxr-xr-x 1 root root 1053059 Mar 14 12:51
build_arm/staging_dir/usr/lib/libSDL-1.2.so.0.11.2
-rw-r--r-- 1 root root 1544098 Mar 14 12:50
build_arm/staging_dir/usr/lib/libSDL.a
-rwxr-xr-x 1 root root    1145 Mar 14 12:50
build_arm/staging_dir/usr/lib/libSDL.la
lrwxrwxrwx 1 root root      20 Mar 14 12:50
build_arm/staging_dir/usr/lib/libSDL.so -> libSDL-1.2.so.0.11.2
-rw-r--r-- 1 root root    1750 Mar 14 12:50
build_arm/staging_dir/usr/lib/libSDLmain.a
root at guru_vlinux:/opt/buildroot#                                                            




Peter Korsgaard-3 wrote:
> 
> Log:
> sdl: cleanup configure args + sdl-config, fixup /lib vs /usr/lib
> 
> 
> Modified:
>    trunk/buildroot/package/sdl/sdl.mk
> 
> 
> Changeset:
> Modified: trunk/buildroot/package/sdl/sdl.mk
> ===================================================================
> --- trunk/buildroot/package/sdl/sdl.mk	2008-03-07 13:31:16 UTC (rev 21269)
> +++ trunk/buildroot/package/sdl/sdl.mk	2008-03-07 13:31:24 UTC (rev 21270)
> @@ -55,18 +55,10 @@
>  		--target=$(GNU_TARGET_NAME) \
>  		--host=$(GNU_TARGET_NAME) \
>  		--build=$(GNU_HOST_NAME) \
> -		--prefix=/usr \
> +		--prefix=$(STAGING_DIR)/usr \
>  		--exec-prefix=/usr \
> -		--bindir=/bin \
> -		--sbindir=/sbin \
> -		--libdir=/lib \
> -		--libexecdir=/lib \
>  		--sysconfdir=/etc \
> -		--datadir=/share \
>  		--localstatedir=/var \
> -		--includedir=/include \
> -		--mandir=/man \
> -		--infodir=/info \
>  		--enable-pulseaudio=no \
>  		--disable-arts \
>  		--disable-esd \
> @@ -91,11 +83,9 @@
>  	touch $@
>  
>  $(STAGING_DIR)/usr/lib/libSDL.so: $(SDL_DIR)/.compiled
> -	$(MAKE) DESTDIR=$(STAGING_DIR)/usr -C $(SDL_DIR) install
> -	$(SED) "s,^prefix=.*,prefix=\'$(STAGING_DIR)\',g" \
> -		-e "s,^exec_prefix=.*,exec_prefix=\'$(STAGING_DIR)/usr\',g" \
> -		-e "s,^libdir=.*,libdir=\'$(STAGING_DIR)/lib\',g" \
> -		-e "s,-I/include/SDL,-I\'$(STAGING_DIR)/include/SDL\',g" \
> +	$(MAKE) DESTDIR=$(STAGING_DIR) -C $(SDL_DIR) install
> +# sdl-config uses -Lexec_prefix/lib instead of -Lprefix/lib - fix it
> +	$(SED) 's^-L\$${exec_prefix}^-L\$${prefix}^' \
>  		$(STAGING_DIR)/usr/bin/sdl-config
>  	touch -c $@
>  
> 
> _______________________________________________
> buildroot mailing list
> buildroot at uclibc.org
> http://busybox.net/mailman/listinfo/buildroot
> 
> 

-- 
View this message in context: http://www.nabble.com/svn-commit%3A-trunk-buildroot-package-sdl-tp15896866p16042261.html
Sent from the BuildRoot mailing list archive at Nabble.com.

  reply	other threads:[~2008-03-14  1:05 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-07 13:31 [Buildroot] svn commit: trunk/buildroot/package/sdl jacmet at uclibc.org
2008-03-14  1:05 ` Hebbar [this message]
2008-03-17 16:47   ` Peter Korsgaard
2008-03-14  2:40 ` Hebbar
  -- strict thread matches above, loose matches on Subject: below --
2009-01-22  7:51 ulf at uclibc.org
2009-01-11 20:24 ulf at uclibc.org
2008-03-17 16:39 jacmet at uclibc.org
2008-03-07 13:31 jacmet at uclibc.org
2008-03-07 13:31 jacmet at uclibc.org
2008-03-07 13:31 jacmet at uclibc.org
2007-11-16 15:35 vanokuten at uclibc.org
2007-11-16 12:37 vanokuten at uclibc.org
2007-09-23  9:53 ulf at uclibc.org
2007-08-12 23:31 ulf at uclibc.org
2007-08-11 22:09 ulf at uclibc.org
2007-08-11 21:47 ulf at uclibc.org
2007-08-11 22:46 ` Ivan Kuten
2007-07-25 17:39 ulf at uclibc.org
2007-07-25 22:39 ` Bernhard Fischer
2007-07-25 23:47   ` Ulf Samuelsson
2007-07-26  1:06     ` Rex Ashbaugh
2007-07-26  6:55       ` Ulf Samuelsson
2007-06-25 11:12 aldot at uclibc.org
2006-11-30  9:06 aldot at uclibc.org

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=16042261.post@talk.nabble.com \
    --to=gururajakr@sanyo.co.in \
    --cc=buildroot@busybox.net \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox