Summary: | qemu-0.6.0 "Could not initialize SDL - exiting" | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Stephen Tallowitz <dev> |
Component: | Current packages | Assignee: | Luca Barbato <lu_zero> |
Status: | RESOLVED INVALID | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Stephen Tallowitz
2004-11-14 16:13:25 UTC
I'd like to see the error message and maybe a strace Btw: void sdl_display_init(DisplayState *ds) { int flags; flags = SDL_INIT_VIDEO | SDL_INIT_NOPARACHUTE; if (SDL_Init (flags)) { fprintf(stderr, "Could not initialize SDL - exiting\n"); exit(1); } Any other sdl application work for you? Looks like a local issue IMHO SDL does not work at all for me, so it is a local issue. based on the code-snippet from below I've written this: # sdltest.cpp: compile with "gcc -o sdltest -I/usr/include/SDL -lSDL sdltest.cpp" #include <iostream> using namespace std; #include "SDL/SDL.h" int main () { int flags; flags = SDL_INIT_VIDEO | SDL_INIT_NOPARACHUTE; if (SDL_Init (flags)) { cout << "SDL error:\n"; cout << SDL_GetError () << endl; exit (1); } else { cout << "SDL video output is working correctly\n"; } return 0; } this returns the following error on my installtion: SDL error: No available video device I'm looking into the issue, but it's not really related to qemu, just noticed it here. sorry, first line of my code should of course be: // sdltest.cpp: compile with "gcc -o sdltest -I/usr/include/SDL -lSDL sdltest.cpp" for anyone interested: I've read in some other forums that recent versions of libsdl cause those sorts of problems, just out of curiosity I manually installed libsdl-1.2.1 (no ebuild around) and it worked together with qemu-0.6.1 (yes I've just updated to the new version) So as a summary: qemu-0.6.0 and qemu-0.6.1 didn't work with libsdl 1.2.7-r3 qemu-0.6.1 works with libsdl-1.2.1 Now it's all about finding out which version of libsdl doesn't work for my setup (the border must be somewhere between 1.2.1 and 1.2.7). I'll now have a look at some other bugreports and in the forums. Must be someone else around who has also experienced those problems. Please close this bug. My mistake: I had the useflag "-X" set. Don't ask me why ... Nevermind, better one more than one less |