qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Statically Compiling including SDL


From: Peter Maydell
Subject: Re: [Qemu-devel] Statically Compiling including SDL
Date: Wed, 21 Oct 2015 13:18:55 +0100

On 21 October 2015 at 11:04, sai pavan <address@hidden> wrote:
> On Tue, Oct 20, 2015 at 11:52 PM, Peter Maydell
> <address@hidden> wrote:
>> On 20 October 2015 at 18:50, sai pavan <address@hidden> 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 via email to

[Prev in Thread] Current Thread [Next in Thread]