* [Qemu-devel] Minor bug in 0.7.1 install
@ 2005-08-30 2:48 Greg Bell
2005-08-30 5:10 ` Jim C. Brown
2005-08-30 7:26 ` Paul Brook
0 siblings, 2 replies; 6+ messages in thread
From: Greg Bell @ 2005-08-30 2:48 UTC (permalink / raw)
To: qemu-devel
hi qemu,
thanks for a neat project. two minor problems:
1) on my FC3 box, i had to force sdl to compile statically because
the sdl test didn't work for some reason (could be my box's
problem). but there's no way to set sdl = 'yes' from the
configure command line. so i hacked configure, but then line
730 dies:
echo "SDL_LIBS=$sdl_static_libs" >> $config_mak
this is because $sdl_static_libs evaluates to a multiple word string on my
system. eg:
$ sdl-config --static-libs
-L/usr/lib -lSDL -lpthread -lm -ldl -lasound -L/usr/X11R6/lib -lX11 -lXext
so "SDL_LIBS=multiple word thing" is an error.
2) i needed to chmod 777 /usr/local/share/qemu/ before i could run qemu as
a normal user.
~gb
--
Greg Bell +61 4 10 432 772 (alternately gbell_spamless@yahoo.com)
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [Qemu-devel] Minor bug in 0.7.1 install
2005-08-30 2:48 [Qemu-devel] Minor bug in 0.7.1 install Greg Bell
@ 2005-08-30 5:10 ` Jim C. Brown
2005-08-30 7:26 ` Paul Brook
1 sibling, 0 replies; 6+ messages in thread
From: Jim C. Brown @ 2005-08-30 5:10 UTC (permalink / raw)
To: qemu-devel
On Tue, Aug 30, 2005 at 12:48:41PM +1000, Greg Bell wrote:
>
> hi qemu,
>
> thanks for a neat project. two minor problems:
>
> 1) on my FC3 box, i had to force sdl to compile statically because
> the sdl test didn't work for some reason (could be my box's
> problem). but there's no way to set sdl = 'yes' from the
> configure command line. so i hacked configure, but then line
> 730 dies:
>
> echo "SDL_LIBS=$sdl_static_libs" >> $config_mak
>
> this is because $sdl_static_libs evaluates to a multiple word string on my
> system. eg:
>
> $ sdl-config --static-libs
> -L/usr/lib -lSDL -lpthread -lm -ldl -lasound -L/usr/X11R6/lib -lX11 -lXext
>
> so "SDL_LIBS=multiple word thing" is an error.
>
My config.mak has this multi-word line (for dynamic SDL)
SDL_LIBS=-L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread
and it works fine. I'm not sure why its not working for you. At least its not
the length, as I have longer LIB lines which work (tho none of them are static).
>
> 2) i needed to chmod 777 /usr/local/share/qemu/ before i could run qemu as
> a normal user.
>
Assuming its owned by root:root, chmod 555 should be enough (mine is currently
set to 755).
>
> ~gb
>
--
Infinite complexity begets infinite beauty.
Infinite precision begets infinite perfection.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] Minor bug in 0.7.1 install
2005-08-30 2:48 [Qemu-devel] Minor bug in 0.7.1 install Greg Bell
2005-08-30 5:10 ` Jim C. Brown
@ 2005-08-30 7:26 ` Paul Brook
2005-08-30 7:34 ` Greg Bell
1 sibling, 1 reply; 6+ messages in thread
From: Paul Brook @ 2005-08-30 7:26 UTC (permalink / raw)
To: qemu-devel; +Cc: Greg Bell
> 1) on my FC3 box, i had to force sdl to compile statically because
> the sdl test didn't work for some reason (could be my box's
> problem). but there's no way to set sdl = 'yes' from the
> configure command line. so i hacked configure, but then line
> 730 dies:
>
> echo "SDL_LIBS=$sdl_static_libs" >> $config_mak
>
> this is because $sdl_static_libs evaluates to a multiple word string on my
> system. eg:
>
> $ sdl-config --static-libs
> -L/usr/lib -lSDL -lpthread -lm -ldl -lasound -L/usr/X11R6/lib -lX11 -lXext
>
> so "SDL_LIBS=multiple word thing" is an error.
$config_mak is a makefile fragment, not a shell script, so this should work
fine.
Paul
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] Minor bug in 0.7.1 install
2005-08-30 7:26 ` Paul Brook
@ 2005-08-30 7:34 ` Greg Bell
2005-08-30 17:39 ` Henrik Nordstrom
2005-08-30 17:42 ` Henrik Nordstrom
0 siblings, 2 replies; 6+ messages in thread
From: Greg Bell @ 2005-08-30 7:34 UTC (permalink / raw)
To: Paul Brook; +Cc: qemu-devel
> $config_mak is a makefile fragment, not a shell script, so this should work
> fine.
hmmm... configure errors out for me after i hack it to force static
linking with SDL and this is what i traced it to. here's the actual
output rather than my possibly flawed analysis :)
# ./configure
Install prefix /usr/local
BIOS directory /usr/local/share/qemu
binary directory /usr/local/bin
Manual directory /usr/local/share/man
ELF interp prefix /usr/gnemul/qemu-%M
Source path /dl/new/qemu-0.7.1
C compiler gcc
Host C compiler gcc
make make
host CPU i386
host big endian no
target list i386-user arm-user armeb-user sparc-user ppc-user
i386-softmmu ppc-softmmu sparc-softmmu x86_64-softmmu mips-softmmu
gprof enabled no
static build no
SDL support yes
SDL static link
mingw32 support no
Adlib support no
FMOD support no
kqemu support no
./configure: line 732: --libs: command not found
./configure: line 734: --cflags: command not found
./configure: line 732: --libs: command not found
./configure: line 734: --cflags: command not found
./configure: line 732: --libs: command not found
./configure: line 734: --cflags: command not found
./configure: line 732: --libs: command not found
./configure: line 734: --cflags: command not found
./configure: line 732: --libs: command not found
./configure: line 734: --cflags: command not found
$ diff -urN configure.bak configure
--- configure.bak 2005-08-30 17:33:01.000000000 +1000
+++ configure 2005-08-30 17:33:10.000000000 +1000
@@ -272,7 +272,7 @@
# SDL probe
sdl_too_old=no
-
+sdl=yes
if test -z "$sdl" ; then
sdl_config="sdl-config"
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] Minor bug in 0.7.1 install
2005-08-30 7:34 ` Greg Bell
@ 2005-08-30 17:39 ` Henrik Nordstrom
2005-08-30 17:42 ` Henrik Nordstrom
1 sibling, 0 replies; 6+ messages in thread
From: Henrik Nordstrom @ 2005-08-30 17:39 UTC (permalink / raw)
To: qemu-devel; +Cc: Paul Brook
On Tue, 30 Aug 2005, Greg Bell wrote:
> sdl_too_old=no
> -
> +sdl=yes
> if test -z "$sdl" ; then
>
> sdl_config="sdl-config"
This is not sufficient as a lot of the SDL logics is contained in the if
block you have now disabled.. you need to also at minimum set sdl_config,
sdl_static and sdl_static_libs accordingly.
I am a little curious about what exacly you are attemptig to do. SDL is by
default linked statically if your SDL installation supports static
linking..
What is the output of "sdl-config --static-libs" on your system? Prehaps
your SDL is not built with support for static linking?
Regards
Henrik
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] Minor bug in 0.7.1 install
2005-08-30 7:34 ` Greg Bell
2005-08-30 17:39 ` Henrik Nordstrom
@ 2005-08-30 17:42 ` Henrik Nordstrom
1 sibling, 0 replies; 6+ messages in thread
From: Henrik Nordstrom @ 2005-08-30 17:42 UTC (permalink / raw)
To: qemu-devel; +Cc: Paul Brook
On Tue, 30 Aug 2005, Greg Bell wrote:
>> $config_mak is a makefile fragment, not a shell script, so this should work
>> fine.
>
> hmmm... configure errors out for me after i hack it to force static linking
> with SDL and this is what i traced it to. here's the actual output rather
> than my possibly flawed analysis :)
>
> # ./configure
> Install prefix /usr/local
> BIOS directory /usr/local/share/qemu
> binary directory /usr/local/bin
> Manual directory /usr/local/share/man
> ELF interp prefix /usr/gnemul/qemu-%M
> Source path /dl/new/qemu-0.7.1
> C compiler gcc
> Host C compiler gcc
> make make
> host CPU i386
> host big endian no
> target list i386-user arm-user armeb-user sparc-user ppc-user
> i386-softmmu ppc-softmmu sparc-softmmu x86_64-softmmu mips-softmmu
> gprof enabled no
> static build no
I think this is your original problem.. for SDL to be linked statically
qemu must be linked statically.
Try going back to the original version and simply add --static to your
configure line..
Regards
Henrik
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2005-08-30 18:07 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-30 2:48 [Qemu-devel] Minor bug in 0.7.1 install Greg Bell
2005-08-30 5:10 ` Jim C. Brown
2005-08-30 7:26 ` Paul Brook
2005-08-30 7:34 ` Greg Bell
2005-08-30 17:39 ` Henrik Nordstrom
2005-08-30 17:42 ` Henrik Nordstrom
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.