Tiny Core Linux
Tiny Core Base => TCB Q&A Forum => Topic started by: Joey_Joejoe on May 24, 2019, 10:04:25 AM
-
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!
-
Did you have both SDL-dev and SDL2-dev loaded at the same time?
If not that, maybe you need sdl2_image-dev?
-
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.
-
I gave things a go on real hardware and it appears to work:
$ 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.
..(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.
-
Hi 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
Maybe you need to run ./configure --enable-sdlui2 again after installing sdl2_image-dev.
Is it possible that it could be a setting in Virtualbox?
The quickest way to find out would be to try it without virtualbox.
-
sdl2_image-dev is not required - vice builds and runs on real hardware without it
-
You're the best!
Thanks for the help, I'll try it out on a USB.
-
OK, So I've got Vice running on a machine (with GTK3 GUI instead of SDL2) using the following dependencies:
- alsa-config
- alsa-dev
- alsa
- libpng-bin
- libpng-dev
- libpng
- compiletc
- readline
- readline-dev
-
sorry ... continued ...
- alsa-config
- alsa-dev
- alsa
- libpng-bin
- libpng-dev
- libpng
- compiletc
- GTK3-dev
- GTK3
- readline
- readline-dev
- bash
and I was thinking of creating a squashed extension and submitting it for posting.
It's not super clear from the wiki, but ...
I know not to include compileTC, but do I include any of the above dependencies into the squishy file?
Or, are they linked via the dependency list that goes along with the submission?
Basically, if someone downloads vice, I want to know if alsa is automatically downloaded along with Vice, or do I have to include it in the Vice.tcz app?
Hope this makes sense!
Thanks,
Joey
-
Hi Joey_Joejoe
You don' need the -dev files or compiletc to run Vice, only to build it. AS near as I can, your dependencies look like this:
Run dependencies:
alsa-config
alsa
libpng-bin
GTK3
bash
readline gets pulled in by bash. libpng gets pulled in by libpng-bin.
Build dependencies:
alsa-config
alsa-dev
compiletc
GTK3-dev
readline-dev
The run dependencies would be listed in your vice.tcz.dep file, not packaged with the app.
-
Perfect, I've enjoyed learning about Linux and Tinycore.
Thanks for the help Rich!