![]() |
No available video device? | ![]() |
![]() |
![]() |
neoaggelos
![]() |
![]() |
Unless I am missing something as well, the render drivers have "nothing" (???) to do with the video device. In SDL2, the Render API is kind of different from the "Display" API, which means that the render drivers are available, but something can be wrong with initializing your video device (screen).
The correct function is "SDL_GetNumVideoDrivers()", not "SDL_GetNumRenderDrivers()". The docs state that this function returns the number of the video drivers SDL was compiled with, so it's possible that something could not be found from your configure script. I might be way off here, but could it be the libXi issue?? Checking what is the version of 'libXi' could be of help in that case... |
||||||||||
|
![]() |
![]() |
REVERSE
![]() |
![]() |
Thank you for your reply!
I've run the test code from http://sdl.beuc.net/sdl.wiki/SDL-1.3_SDL_GetNumVideoDrivers and got these results: Driver x11 doesn't work. Driver dummy works. But the thing is that I use raw framebuffer, no x11. May be I must set something in ./configure part when compiling SDL2 to use it? |
||||||||||
|
![]() |
![]() |
REVERSE
![]() |
![]() |
I've tested my SDL1.2 program, and by using SDL_VideoDriverName obtained, that my driver name is fbcon.
Is there any support in SDL2 for this driver? |
||||||||||
|
![]() |
![]() |
neoaggelos
![]() |
![]() |
Do you mean ''DirectFB" ??? (I don't know for sure, that's the closest I found). If that is the case, then pass the option ''--enable-video-directfb'' when running configure: <code> ./configure --enable-video-directfb ``` other flags ``` make ; make install </code> Also make sure that the required development files for directfb are installed; remember that SDL is a wrapper around os-specific features, so you need the original dev files. |
||||||||||||
|
![]() |
No available video device? | ![]() |
Ryan C. Gordon
Guest
![]() |
![]() |
On 07/14/2013 03:35 PM, REVERSE wrote:
We removed fbcon support in SDL2. The DirectFB code might still work, and I think can talk to the kernel fbcon drivers behind the scenes. --ryan. _______________________________________________ SDL mailing list http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org |
||||||||||||
|