The qemu configure script will silently disable graphical output if it can't
find a suitable output library (ie. SDL). This is a very common source of
confusion for people building qemu for the first time. It's not obvious from
the configure output that SDL is effectively required for normal operation.
The attached patch changes the default behaviour so that configure will issue
an error if a user tries configure full system emulation without graphical
output. It also adds an option to suppress this check for users who know what
they are doing.
# OS specific
@@ -186,6 +187,8 @@ for opt do
--enable-cocoa) cocoa="yes" ; sdl="no"
+ --disable-gfx-check) check_gfx="no"
@@ -604,6 +607,14 @@ if expr $target : '.*-user' > /dev/null
+if test "$target_user_only" = "no" -a "$check_gfx" = "yes" \
+ -a "$sdl" = "no" -a "$cocoa" = "no" ; then
+ echo "ERROR: QEMU requires SDL or Cocoa for graphical output"
+ echo "To build QEMU with graphical output configure with --disable-gfx-check"
+ echo "Note that this will disable all output from the virtual graphics card."
+ exit 1;
#echo "Creating $config_mak, $config_h and $target_dir/Makefile"