./configure --help
--target-list=*
--disable-sdl
target-list="i386-softmmu ppc-softmmu sparc-softmmu x86_64-softmmu mips-softmmu mipsel-softm
mu arm-softmmu"
使用 Xming.. 啟動qemu ... 出現...
---------------------- DirectFB v0.9.25 ---------------------但是build qemu時,不可以 --disable-sdl 。
(c) 2000-2002 convergence integrated media GmbH
(c) 2002-2004 convergence GmbH
-----------------------------------------------------------
(*) DirectFB/Core: Single Application Core. (2006-12-04 07:00)
(*) Direct/Memcpy: Using MMXEXT optimized memcpy()
(!) Direct/Util: opening '/dev/fb0' failed
--> No such device
(!) DirectFB/FBDev: Error opening framebuffer device!
(!) DirectFB/FBDev: Use 'fbdev' option or set FRAMEBUFFER environment variable.
(!) DirectFB/Core: Could not initialize 'system' core!
--> Initialization error!
Could not initialize SDL - exiting
SDL 一定要用 DirectFB 嗎 ? 可不可以只用 xlib 呀?
拿SDL 下來build 看看..
一樣 ./configure ,從configure.log 中確認 DirectFB supporting is no.
make
sudo make install
和wxGtk 一樣,提供 sdl-config --libs --cflags 作compile option.
依照tutorial 的說明。寫一個 sdlhello.c:
#include <stdio.h>build :
#include "SDL.h"
main(int argc, char *argv[])
{
if(SDL_Init(SDL_INIT_AUDIO | SDL_INIT_VIDEO) < 0) {
fprintf(stderr,"Cannot Init SDL: %s\n",SDL_GetError());
exit(1);
}
atexit(SDL_Quit);
}
gcc `sdl-config --cflags` `sdl-config --libs` -osdlhello sdlhello.c試run..
ALSA lib confmisc.c:670:(snd_func_card_driver) cannot find card '0'嗯...這是??所以重新再來一次..disable ALSA..
ALSA lib conf.c:3500:(_snd_config_evaluate) function snd_func_card_driver returned error: No such device
ALSA lib confmisc.c:391:(snd_func_concat) error evaluating strings
ALSA lib conf.c:3500:(_snd_config_evaluate) function snd_func_concat returned error: No such device
ALSA lib confmisc.c:1070:(snd_func_refer) error evaluating name
ALSA lib conf.c:3500:(_snd_config_evaluate) function snd_func_refer returned error: No such device
ALSA lib conf.c:3968:(snd_config_expand) Evaluate error: No such device
ALSA lib pcm.c:2143:(snd_pcm_open_noupdate) Unknown PCM default
--disable-alsa --disable-video-directfb --disable-video-fbcon --with-x還是一樣。
所以... aptitude install alsa 之後,sdlhello 可以正常工作.
但是 qemu 還是fail..
Could not initialize SDL --exit查一下這個error message是 sdl.c 印出來的。所以print out一下 SDL_GetError( ).是
No available video device奇怪,sdlhello 都可以 SDL_Init( ) OK的。
而且很奇怪的是 colinux 上都可以用Xming 跑 qemu 的呀...
沒有留言:
張貼留言