public inbox for gentoo-embedded@lists.gentoo.org
 help / color / mirror / Atom feed
From: Ned Ludd <solar@gentoo.org>
To: gentoo-embedded@lists.gentoo.org
Subject: Re: [gentoo-embedded] SDL library usage
Date: Thu, 22 Jun 2006 04:45:27 -0400	[thread overview]
Message-ID: <1150965927.14597.3.camel@localhost> (raw)
In-Reply-To: <200606221001.24096.ladmanj@volny.cz>

On Thu, 2006-06-22 at 10:01 +0200, Jakub Ladman wrote:
> Greetings
> 
> My friend has recomended me SDL library for graphical output of my SuperH4 
> embedded system with framebuffer device.
> 
> After succesfull cross emerge the media-libs/libsdl library, i am trying to 
> crosscompile any demo, but everythings fails.
> 
> Do you have tip to a crosscompilable test software for graphics via sdl?
> 
> Here is output of running Makefile, where i have manually changed gcc compiler 
> to sh4-pc-linux-uclibc.
> 
> ladmanj@trotl ~/src/fire_sh $ make
> sh4-pc-linux-uclibc-gcc -DPACKAGE=\"fire\" -DVERSION=\"1.0\"  -I. -I.      -g -O2 -I/usr/include/SDL -D_REENTRANT -c 
> fire.c
> sh4-pc-linux-uclibc-gcc  -g -O2 -I/usr/include/SDL -D_REENTRANT  -o fire  
> fire.o  -lSDL -lpthread
> /usr/lib/gcc/sh4-pc-linux-uclibc/3.4.6/../../../../sh4-pc-linux-uclibc/bin/ld: 
> cannot find -lSDL
> collect2: ld returned 1 exit status
> make: *** [fire] Error 1
> ladmanj@trotl ~/src/fire_sh $                
> 
> 
> It seems, like the cross compiler does not know the native library.


Try including and linking with the sdl in your ROOT environment vs
your / env. You know the -L/path -I/path flags..

-- 
Ned Ludd <solar@gentoo.org>
Gentoo Linux

-- 
gentoo-embedded@gentoo.org mailing list



  reply	other threads:[~2006-06-22  8:46 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-22  8:01 [gentoo-embedded] SDL library usage Jakub Ladman
2006-06-22  8:45 ` Ned Ludd [this message]
2006-06-22 11:24   ` Jakub Ladman
2006-06-24  7:28 ` Mike Frysinger
2006-06-26  8:34   ` Jakub Ladman

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=1150965927.14597.3.camel@localhost \
    --to=solar@gentoo.org \
    --cc=gentoo-embedded@lists.gentoo.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox