qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Peter Maydell <peter.maydell@linaro.org>
To: sai pavan <saipavanboddu@gmail.com>
Cc: Peter Crosthwaite <crosthwaite.peter@gmail.com>,
	alistai@xilinx.com,
	"qemu-devel@nongnu.org Developers" <qemu-devel@nongnu.org>,
	Markus Armbruster <armbru@redhat.com>
Subject: Re: [Qemu-devel] Statically Compiling including SDL
Date: Wed, 21 Oct 2015 13:18:55 +0100	[thread overview]
Message-ID: <CAFEAcA8Va81wT7H1kViUn4KhqipskX0__boRb_wNszNW47rYYw@mail.gmail.com> (raw)
In-Reply-To: <CAH1YCKenVvC-ixo4O9o-f7F7Gw=3cMouRyUBEf_RbWf3sHhbWg@mail.gmail.com>

On 21 October 2015 at 11:04, sai pavan <saipavanboddu@gmail.com> wrote:
> On Tue, Oct 20, 2015 at 11:52 PM, Peter Maydell
> <peter.maydell@linaro.org> wrote:
>> On 20 October 2015 at 18:50, sai pavan <saipavanboddu@gmail.com> wrote:
>>> I also tried manually compiling sdl libraries and installing them.
>>> Then making a static build, but even that did not help much. The
>>> config.log show below error..
>>>
>>> cc -m32 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
>>> -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings
>>> -Wmissing-prototypes -fno-strict-aliasing -fno-common
>>> -DM25P80_ERR_DEBUG=2 -Wendif-labels -Wmissing-include-dirs
>>> -Wempty-body -Wnested-externs -Wformat-security -Wformat-y2k
>>> -Winit-self -Wignored-qualifiers -Wold-style-declaration
>>> -Wold-style-definition -Wtype-limits -fstack-protector-strong
>>> -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -o
>>> config-temp/qemu-conf.exe config-temp/qemu-conf.c -m32 -static -g
>>> /tmp/ccYwbqPp.o: In function `main':
>>> /home/sai/build/config-temp/qemu-conf.c:3: undefined reference to `SDL_Init'
>>> collect2: error: ld returned 1 exit status
>>
>> This link line isn't even trying to link against the SDL library,
>> which suggests that your sdl-config is broken. What does
>> 'sdl-config --static-libs' say?
> here is the output of sdl-config --static-libs
>
> -L/usr/lib/i386-linux-gnu -lSDL -lpthread -lm -ldl -lasound -lm -ldl
> -lpthread -lpulse-simple -lpulse -lX11 -lXext
> -L/usr/lib/i386-linux-gnu -lcaca -lpthread

And is there a static version (a .a file) for all those
libraries in /usr/lib/i386-linux-gnu/ ?

If sdl-config is printing those libraries, I'm confused about
why they're not in the command line we're using for the config
tests. You may have to start debugging configure by adding
suitable 'echo' debug printing in it :-(

thanks
-- PMM

  reply	other threads:[~2015-10-21 12:19 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-20  6:59 [Qemu-devel] Statically Compiling including SDL sai pavan
2015-10-20  8:35 ` Peter Maydell
2015-10-20 17:50   ` sai pavan
2015-10-20 18:22     ` Peter Maydell
2015-10-21 10:04       ` sai pavan
2015-10-21 12:18         ` Peter Maydell [this message]
  -- strict thread matches above, loose matches on Subject: below --
2016-05-11 18:12 Sam McKelvie
2016-05-11 18:30 ` Peter Maydell
2016-05-11 20:39   ` Sam McKelvie
2016-05-11 22:42     ` Peter Maydell

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=CAFEAcA8Va81wT7H1kViUn4KhqipskX0__boRb_wNszNW47rYYw@mail.gmail.com \
    --to=peter.maydell@linaro.org \
    --cc=alistai@xilinx.com \
    --cc=armbru@redhat.com \
    --cc=crosthwaite.peter@gmail.com \
    --cc=qemu-devel@nongnu.org \
    --cc=saipavanboddu@gmail.com \
    /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;
as well as URLs for NNTP newsgroup(s).