Tiny Core Base > TCB Q&A Forum

SDL/SDL2 issues with installing Vice 3.3 commodore emulator

(1/3) > >>

Joey_Joejoe:
Hi,

I'm trying to make a small install of Vice3.3 commodore 64.
Right now, I'm trying it out in Virtualbox with TinycoreV10.

Everything seems to work fine when I use the SDL dependency, but when I try
to compile Vice with SDL2 enabled, the program flashes briefly on the screen and I get the following error:
SDLVideo: Error - SDL_CreateRenderer() failed: Couldn't find matching render driver

Any suggestions?

Keeping in mind I'm still very much a noob: as a summary, I do the following in a new virtualbox machine:

- Install TC10 to a new machine
- Install the following dependencies:
    - alsa-config
    - alsa-dev
    - alsa
    - libpng-bin
    - libpng-dev
    - libpng
    - compiletc
    - SDL
    - SDL-dev
    - readline
    - readline-dev
    - SDL2
    - SDL2-dev

download xa-2.3.9, unzip into a folder
download the tarball vice-3.3, unzip into a folder

- in a terminal window, I start up Alsa by the following command: alsactl init
   I compile xa-2.3.9 by "make" followed by "sudo make install"
   I compile vice-3.3 by the following commands
     "./configure --enable-sdlui"   (for SDL)
     "./configure --enable-sdlui2"   (for SDL2)
     "make"
     "sudo make install"

when I enter X64 to start the emulator, it runs fine with SDL,
but when I compile it with SDL2 (which apparently has better graphics), I get the following error
"SDLVideo: Error - SDL_CreateRenderer() failed: Couldn't find matching render driver"

Thanks so much in advance for any ideas I could try!

Juanito:
Did you have both SDL-dev and SDL2-dev loaded at the same time?

If not that, maybe you need sdl2_image-dev?

Joey_Joejoe:
No, only the SDL2-dev was loaded.
I just tried with sdl2_image-dev, and unfortunately had the same error:

SDLVideo: Error - SDL_CreateRenderer() failed: Couldn't find matching render driver

Is it possible that it could be a setting in Virtualbox?

Thank you so much for your help.

Juanito:
I gave things a go on real hardware and it appears to work:
--- Code: ---$ x64
...
Drive: Finished loading ROM images.
Sound: Available sound devices: alsa uss sdl dummy fs dump wav voc iff aiff soundmovie
SDLJoystick: No joysticks found
SDLKeyboard: Loading hotkey map `/usr/local/lib/vice/C64/sdl_hotkeys.vkm'.
SDLKeyboard: Warning - Failed to open `/home/tc/.config/vice/sdl-hotkey-C64.vkm'.
Keyboard: Loading keymap `/usr/local/lib/vice/C64/sdl_sym.vkm'.
SDLVideo: Available Renderers: opengl opengles2 opengles software
SDLVideo: SDL2 renderer driver selected: opengl

SDLVideo: VICII (active) 768x544 32bpp
Main CPU: starting at ($FFFC).
Main CPU: RESET.
ALSA lib pcm_dmix.c:1099:(snd_pcm_dmix_open) unable to open slave
Playback open error for 'default': No such file or directory
Drive 8: RESET.

--- End code ---
..(the alsa error is due to analogue sound not being the default) and I get the "64k ram system 39811 basic bytes free - ready" prompt.

Rich:
Hi Joey_Joejoe

--- Quote from: Joey_Joejoe on May 25, 2019, 05:51:56 PM ---No, only the SDL2-dev was loaded.
I just tried with sdl2_image-dev, and unfortunately had the same error:

SDLVideo: Error - SDL_CreateRenderer() failed: Couldn't find matching render driver
--- End quote ---
Maybe you need to run  ./configure --enable-sdlui2  again after installing  sdl2_image-dev.


--- Quote ---Is it possible that it could be a setting in Virtualbox?
--- End quote ---
The quickest way to find out would be to try it without  virtualbox.

Navigation

[0] Message Index

[#] Next page

Go to full version