Error initializing sdl no available video device

I have downloaded an indie game Don't move from this link . When I try to run it on Ubuntu 12.04, it gives following error messages. Could not initialize SDL : No available video device AL lib: (EE)

For me, SDL2-2.0.3 was used.
-> Had trouble with no video driver found.
typed

sudo apt-get install xorg-dev

did another ./configure and it reported this

Assembly Math   : mmx 3dnow sse sse2
Audio drivers   : disk dummy oss
Video drivers   : dummy x11(dynamic) opengl
X11 libraries   : xcursor xinerama xinput2 xinput2_multitouch xrandr xscrnsaver xshape xvidmode
Input drivers   : linuxev linuxkd
Using libudev   : YES
Using dbus      : NO

It went through everything fine but the test folder after trying to make the code it reported «Missing -lGL»
so I just assumed it was missing mesa or something and I did this

sudo apt-get build-dep xscreensaver
sudo apt-get source xscreensaver -b
sudo dpkg -i *.deb

I force installed the popular xscreensaver with my own build and SDL worked. The idea was if I could compile the screensaver then I can get SDL working.
Thanks. Worked for me. (video only)
tried to run testmultiaudio and got this

INFO: Using audio driver: dsp
ERROR: Don't see any specific audio devices!

I guess compiling and making VLC would solve most of this because VLC uses SDL for video and audio.

The counter idea is ncurses 5.9 works just fine.

Honestly, I was using peppermint 6 which was build from ubuntu and debian. I assume it works on that OS too. That is why I am posting in piecemeal steps… VLC compiling…. ERROR. Trying to do the same with totem.
(while compiling totem)
Maybe I should make a scroller demo to my imaginary friends in ncurses «BranMuffin» «Cerealbowl» «Cornflakes» and a «bowl full of cherries»

new SDL2-2.3 configure report

Assembly Math   : mmx 3dnow sse sse2
Audio drivers   : disk dummy oss alsa(dynamic) pulse(dynamic)
Video drivers   : dummy x11(dynamic) opengl opengl_es2
X11 libraries   : xcursor xinerama xinput2 xinput2_multitouch xrandr xscrnsaver xshape xvidmode
Input drivers   : linuxev linuxkd
Using libudev   : YES
Using dbus      : YES

another round of ./configure make make install on SDL
another round of ./configure make and ./testmultiaudio and BINGO I have it after I built and installed totem too
so somewhere in the chaotic view of things from VLC and sudo apt-get build-dep totem | sudo apt-get source totem -b | dpkg -i *deb … I got my audio and video now.

References: [this page] and SDL install and compiling
remember to test if you can compile it yourself.

..to sum it up on another machine and it got it working (not the best way because I am a C average guy)

  1. get SDL2-2.3 from libsdl site

  2. get some packages and compile some. I believe that VLC and XSCREENSAVER are the only packages that are needed VLC for SDL and audio and XSCREENSAVER for opengl

    sudo apt-get install xorg-dev
    sudo apt-get build-dep xscreensaver vlc totem
    sudo apt-get source xscreensaver totem -b
    
  3. (2.5) might as well get xscreensaver and totem freshly built and install the .deb packages

  4. unpack SDL and go into the folder and do the common

    ./configure
    make
    sudo make install
    cd test
    ./configure
    make
    ./testmultiaudio
    
  5. enjoy audio clip

OS USED peppermint linux but I assume that even debian, linux mint, and ubuntu would work.

I tried to start my avd on Ubuntu 64bit 10.10, but it failed and shows the following in the log:

SDL init failure, reason is: No available video device

What can I do with that?

I tried to search for solutions and someone says it needs x11/sdl/jdk library and I installed them all but it still does not work.

Kev's user avatar

Kev

117k52 gold badges297 silver badges381 bronze badges

asked Jan 30, 2011 at 8:23

Sean's user avatar

For Fedora 14 and 16 64bit.

Install these packages:

yum install glibc.i686 ncurses-libs.i686 libstdc libstdc++.i686 
    libzip.i686 libX11.i686 libXrandr.i686 SDL.i686

tzot's user avatar

tzot

90.8k29 gold badges140 silver badges201 bronze badges

answered Apr 14, 2011 at 11:02

3

I just encountered this problem on Ubuntu 12.04 64-bit (Precise) and solved it by installing the 32-bit version of libsdl:

sudo apt-get install libsdl1.2debian:i386

answered Apr 12, 2012 at 17:20

crimeminister's user avatar

2

Try unsetting any environment variables along the line of SDL_*, such as SDL_VIDEODRIVER. If that doesn’t work, try export DISPLAY=:0.

answered Feb 5, 2011 at 22:03

Pierre-Antoine LaFayette's user avatar

2

I finally got this to work after installing:

sudo apt-get install ia32-libs-sdl

Asbjørn Ulsberg's user avatar

answered Jun 26, 2011 at 18:43

Andrew's user avatar

1

sudo apt-get install libsdl1.2debian:i386

also works on Debian/Sid amd64 with the foreign architecture i386.

thank you to crimeminister

Community's user avatar

answered Jul 6, 2012 at 5:28

If working on a 64 bit linux system you should use the emulator64* commands instead of the emulator* commands without the «64» in their name.

answered Dec 14, 2012 at 11:17

Matthias's user avatar

I get the «SDL init failure» when running the «emulator» command with a user with not enough privileges. Ex. jenkins user gets the error, but not root.

Drop to the commandline and run the emulator command with your normal user. You should get the same error.

Then switch to root and run emulator command again to see if user permissions or missing/wrong user environment variables is the cause of your problem.

answered Aug 11, 2011 at 11:10

user77115's user avatar

user77115user77115

5,4576 gold badges35 silver badges40 bronze badges

https://fedoraproject.org/wiki/User:Hpejakle/Android

Couple of things: Run your emulator call with strace, that’ll tell you where it’s going sideways… May not necessarily allow you to fix it easily though…

It could be a number of things, the fact that your on 64 bit ubuntu tells me that there are probably missing libraries (32bit).

Check out the link and see if anyone has come up with a faq for Ubuntu 64

Good luck,

Gary

answered Feb 21, 2011 at 5:39

Gary's user avatar

GaryGary

2,2213 gold badges19 silver badges20 bronze badges

The following command

sudo apt-get install ia32-libs 

works on 11.10.

Alberto Zaccagni's user avatar

answered Jun 6, 2012 at 17:44

sithu's user avatar

sudo apt-get install libsdl1.2debian:i386

also works on ubuntu 13.10

thank you to crimeminister

answered Mar 25, 2014 at 4:50

rahman's user avatar

rahmanrahman

4,75615 gold badges47 silver badges85 bronze badges

Community's user avatar

answered Apr 15, 2014 at 9:25

elektronika's user avatar

If you, like me, by accident installed manually the SDL library downloading the package and running:

./configure

make

sudo make install

but then also installed it using the package administrator with

sudo apt-get install libsdl2-dev

Then it’s possible that you have some conflicts between the libraries.
Try uninstalling the pkg version

sudo apt-get remove --purge libsdl2-dev

and manually cd in the directory where you have run ./config and type

sudo make uninstall

After that you are able to reinstall from pakage(usually preferable) running

sudo apt-get install libsdl2-dev

answered Dec 31, 2021 at 13:09

Alberto Eusebio's user avatar

REVERSE

Joined: 30 Oct 2012
Posts: 10
Location: Russia

Hi all!

I’m using SDL 1.2 on Debian in VirtualBox with success for my project. But the new version can give a major improvement to it.

I’ve downloaded SDL2 tarball, extracted, made ./configure (with —prefix /usr); make; make install.

I’m trying to run some test program just with SDL_Init(SDL_INIT_VIDEO), but it gives me «No available video device» error.

But, when I run this program:

Code:

#include «SDL.h»

int main (int argc, char* argv[])

{

  int numdrivers = SDL_GetNumRenderDrivers();

  printf(«Drivers count: %in»);

  for (int i=0;i<numdrivers;i++)

  {

    SDL_RendererInfo drinfo;

    SDL_GetRenderDriverInfo(i, &drinfo);

    printf(«Driver name: %sn», drinfo.name);

  }

}

I get this result:

Drivers count: 2

Driver name: opengl

Driver name: software

What am I missing?

neoaggelos

Joined: 02 Jan 2013
Posts: 138

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

Joined: 30 Oct 2012
Posts: 10
Location: Russia

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

Joined: 30 Oct 2012
Posts: 10
Location: Russia

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

Joined: 02 Jan 2013
Posts: 138

REVERSE wrote:
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?

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.

Ryan C. Gordon

Guest

On 07/14/2013 03:35 PM, REVERSE wrote:

Quote:
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?

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.

Already on GitHub?
Sign in
to your account

Comments

@AnotherFoxGuy

Package and Environment Details (include every applicable attribute)

  • Package Name/Version: SDL2/2.0.10
  • Operating System+version: Manjaro Linux
  • Compiler+version: GCC 9.2.0
  • Conan version: conan 1.22.0
  • Python version: Python 3.8.1

Conan profile

# Profile generated by PMM 1.9.1
# https://github.com/AnotherFoxGuy/pmm

[settings]
os=Linux
os_build=Linux
compiler=gcc
compiler.version=9
compiler.libcxx=libstdc++11
arch=x86_64
arch_build=x86_64
build_type=Release

[options]

[env]
CC=/usr/bin/cc
CXX=/usr/bin/c++

Steps to reproduce (Include if Applicable)

  1. Download the test project here: https://github.com/AnotherFoxGuy/conan-sdl2-test
  2. Build and run the test project
  3. The executable crashes with SDL_Init failed: No available video device

If you downgrade SDL2 to version 2.0.9 the executable works fine

@SimplyLiz

SDL2 2.0.12 is available on bincrafters and it’s still broken from 2.0.10 and upwards.

It basically prevents us (and other SDL2 based projects) to upgrade from 2.0.9 (next version have sprite batching and other fantastic features) or forces us to build the libraries manually.

This bug applies for all linux distributions

Are there any plans to fix this issue?

@Croydon

Yes, certainly.

I’m -assuming- that we are pretty close to shipping a solution

@SliceOften

I’m also interested in an update to this as my project is broken on Linux right now.

Both video and audio fail to init with the following errors:

Video: No available video device
Audio: ALSA: Couldn’t open audio device: No such file or directory

If I link against Manjaro’s libSDL2 then both video and audio work fine. Not sure why it is defaulting to ALSA either, I would have expected pulseaudio.

@Croydon

This should be solved for a while now. Can any of you re-try on your end please?

@Croydon

Please make also sure that your local copy of the recipe is up to date, that your Conan version is up to date and that you use SDL 2.0.12

@ericLemanissier

This recipe is now in the Conan Center Index.

Please migrate to the recipe version there.
If this is still an issue, please create a new issue in the Conan Center Index issue tracker.

Thanks!

https://conan.io/center/sdl

  • Index
  • » Multimedia and Games
  • » [SOLVED] SDL initialization failure: No available video device

Pages: 1

#1 2018-05-06 10:00:53

stamoulohta
Member
From: Stamoulis
Registered: 2013-10-30
Posts: 9
Website

[SOLVED] SDL initialization failure: No available video device

I get the title error when I try to run dwarf fortress. If I run it with sudo everything runs fine. I thought It might be a group error so I did

for gp in `cut -f 1 -d : /etc/group`; do
usermod -a -G $gp stamoulohta
done 

for testing purposes only but I still get the same error…

Does anyone have an idea on what I might be missing?
Thanks.

Last edited by stamoulohta (2018-05-06 12:50:29)

#2 2018-05-06 10:34:05

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 18,292

Re: [SOLVED] SDL initialization failure: No available video device

Randomly adding your user to every group will definitely not be the fix no.

Details on your hardware would be nice. And this sounds like you broke your session, how do you log in, how do you start X?  What’s the output of

loginctl show-session $XDG_SESSION_ID
hostnamectl

#3 2018-05-06 10:50:11

stamoulohta
Member
From: Stamoulis
Registered: 2013-10-30
Posts: 9
Website

Re: [SOLVED] SDL initialization failure: No available video device

Randomly adding your user to every group will definitely not be the fix no.

lol if it did, I wouldn’t be posting in the forum ^^

I have an ATI Radeon HD 5770 Series card and I use the open source driver.

u@h ~ $ hostnamectl 
   Static hostname: h
         Icon name: computer-desktop
           Chassis: desktop
        Machine ID: ***
           Boot ID: ***
  Operating System: Arch Linux
            Kernel: Linux 4.16.6-1-ARCH
      Architecture: x86-64
u@h ~ $ loginctl show-session $XDG_SESSION_ID
Id=c4
User=1000
Name=u
Timestamp=Sun 2018-05-06 12:38:57 EEST
TimestampMonotonic=874623345
VTNr=1
Seat=seat0
TTY=tty1
Remote=no
Service=login
Scope=session-c4.scope
Leader=1094
Audit=0
Type=tty
Class=user
Active=yes
State=active
IdleHint=yes
IdleSinceHint=1525599545687002
IdleSinceHintMonotonic=882687002
LockedHint=no

also,

I login manually in the tty and i start X by the ‘startx’ script or I start wayland by calling sway and I get the same error.

Last edited by stamoulohta (2018-05-06 10:53:52)

#4 2018-05-06 12:24:27

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 10,652

Re: [SOLVED] SDL initialization failure: No available video device

Looks like dwarffortress uses sdl / gtk2 .

The earliest sdl version with wayland support is sdl2 2.02, so DF won’t run natively on wayland.
Does sway support Xwayland ?

Last edited by Lone_Wolf (2018-05-06 12:24:46)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

(A works at time B)  && (time C > time B ) ≠  (A works at time C)

#5 2018-05-06 12:48:45

stamoulohta
Member
From: Stamoulis
Registered: 2013-10-30
Posts: 9
Website

Re: [SOLVED] SDL initialization failure: No available video device

Does sway support Xwayland ?

I think it does.. at least it runs urxvt.

Anyway, I figured it out. I, per the wiki, had put to my profile file

export SDL_VIDEODRIVER=wayland

witch doesn’t play well with sdl(1)..

Thanks for your time guys. I hope this helps others who did the same mistake. Cheers.

edit:
To clarify, sudo by default doesn’t pass environment variables, that’s why the game was running with sudo.

Last edited by stamoulohta (2018-05-06 12:52:25)

when i run ffplay with a video-file (mkv, ogv, mp4) or audio-file (tested mp3), it fails with the following error:

Code:
Could not initialize SDL — No available video device

(Did you set the DISPLAY variable?)



ffmpeg (ffmpeg version 3.2.2 Copyright (c) 2000-2016 the FFmpeg developers

built with gcc 5.4.0 (Gentoo 5.4.0-r2 p1.2, pie-0.6.5)
was compiled with USE=»sdl» and i recompiled ffmpeg and libsdl yesterday. i recently changed my kernel and omitted V4L, but activating it again did not change this error

Code:
# CONFIG_VIDEO_V4L2_SUBDEV_API is not set

CONFIG_VIDEO_V4L2=y

CONFIG_V4L_PLATFORM_DRIVERS=y

# CONFIG_V4L_MEM2MEM_DRIVERS is not set

# CONFIG_V4L_TEST_DRIVERS is not set

(encoding with ffmpeg works flawlessly)

i recently moved my ~amd64 system from an amd-K-something/radeon-combo to an intel/nvidia-playtform and a thing this error first occured on this new system (recompiled everything, of course)

i run the system with nouveau/nvidia-binary combined under two different kernels and this error occurs under nouveau, but i haven’t tested with nvidia-binary yet (although i don’t see how it could be related to opengl in any way; under nouveau it’s xorg-x11-opengl)

how do i get ffplay to play again (as i need in in some video-conversion-scripts)?

THX for your help!

here’s my emerge —info:

Portage 2.3.3 (python 3.4.5-final-0, default/linux/amd64/13.0/desktop, gcc-5.4.0, glibc-2.23-r3, 4.9.5-gentoo x86_64)

=================================================================

System uname: Linux-4.9.5-gentoo-x86_64-Intel-R-_Core-TM-_i7-2600_CPU_@_3.40GHz-with-gentoo-2.3

KiB Mem: 8122596 total, 6503276 free

KiB Swap: 0 total, 0 free

Timestamp of repository gentoo: Wed, 25 Jan 2017 00:45:01 +0000

sh bash 4.4_p11

ld GNU ld (Gentoo 2.27 p1.0) 2.27

app-shells/bash: 4.4_p11::gentoo

dev-java/java-config: 2.2.0-r3::gentoo

dev-lang/perl: 5.24.1_rc4::gentoo

dev-lang/python: 2.7.12::gentoo, 3.4.5::gentoo, 3.5.2::gentoo

dev-util/cmake: 3.7.2::gentoo

dev-util/pkgconfig: 0.29.1::gentoo

sys-apps/baselayout: 2.3::gentoo

sys-apps/openrc: 0.23.1::gentoo

sys-apps/sandbox: 2.10-r3::gentoo

sys-devel/autoconf: 2.13::gentoo, 2.69-r2::gentoo

sys-devel/automake: 1.11.6-r2::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo

sys-devel/binutils: 2.25.1-r1::gentoo, 2.27::gentoo

sys-devel/gcc: 4.9.3::gentoo, 5.4.0-r2::gentoo

sys-devel/gcc-config: 1.8-r1::gentoo

sys-devel/libtool: 2.4.6-r2::gentoo

sys-devel/make: 4.2.1::gentoo

sys-kernel/linux-headers: 4.9::gentoo (virtual/os-headers)

sys-libs/glibc: 2.23-r3::gentoo

Repositories:

gentoo

location: /usr/portage

sync-type: rsync

sync-uri: rsync://10.10.1.231/gentoo-portage

priority: -1000

gentoo-kodi-overlay

location: /usr/local/portage/kodi-overlay/gentoo-kodi-overlay

sync-type: git

sync-uri: git://github.com/herrnst/gentoo-kodi-overlay.git

masters: gentoo

priority: 50

ACCEPT_KEYWORDS=»amd64 ~amd64″

ACCEPT_LICENSE=»*»

CBUILD=»x86_64-pc-linux-gnu»

CFLAGS=»-march=native -O2 -pipe»

CHOST=»x86_64-pc-linux-gnu»

CONFIG_PROTECT=»/etc /etc/stunnel/stunnel.conf /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt»

CONFIG_PROTECT_MASK=»/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo»

CXXFLAGS=»-march=native -O2 -pipe»

DISTDIR=»/usr/portage/distfiles»

EMERGE_DEFAULT_OPTS=»—keep-going»

FCFLAGS=»-O2 -pipe»

FEATURES=»assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms split-log strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync»

FFLAGS=»-O2 -pipe»

GENTOO_MIRRORS=»http://gentoo.inode.at ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/»

LANG=»de_DE@euro»

LDFLAGS=»-Wl,-O1 -Wl,—as-needed»

MAKEOPTS=»-j9″

PKGDIR=»/usr/portage/packages»

PORTAGE_CONFIGROOT=»/»

PORTAGE_RSYNC_OPTS=»—recursive —links —safe-links —perms —times —omit-dir-times —compress —force —whole-file —delete —stats —human-readable —timeout=180 —exclude=/distfiles —exclude=/local —exclude=/packages —exclude=/.git»

PORTAGE_TMPDIR=»/var/tmp»

USE=»a52 aac acl acpi aiglx alsa amd64 ass avx bash-completion bluray branding bzip2 cairo cdda cddb cdr cli cracklib crypt cups cxx dri dts dvd dvdr dvdread emboss encode erandom examples exif fam firefox flac fortran gif glamor gnutls gtk htmlhandbook iconv imagemagick jpeg jpeg2k kdeenablefinal lcms libass libnotify lzma mad mjpeg mmap mmx mng modern-top modules mp3 mp4 mpeg mpi multilib ncurses nls nptl nptlonly nsplugin offensive ogg opengl openmp optimized-qmake pam pango pch pcre pdf png ppds qt3support qt4 readline rtmp sdl seccomp session speex spell sse sse2 ssl ssse3 startup-notification svg theora threads tiff truetype udev unicode usb userlocales v4l v4l2 vaapi vdpau vim-syntax vorbis vpx wxwidgets x264 x265 xcb xcomposite xml xv xvid zlib» ABI_X86=»32 64″ ALSA_CARDS=»ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci» APACHE2_MODULES=»authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias» CALLIGRA_FEATURES=»kexi words flow plan sheets stage tables krita karbon braindump author» COLLECTD_PLUGINS=»df interface irq load memory rrdtool swap syslog» CPU_FLAGS_X86=»aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3″ ELIBC=»glibc» GPSD_PROTOCOLS=»ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx» INPUT_DEVICES=»evdev keyboard mouse» KERNEL=»linux» L10N=»de en» LCD_DEVICES=»bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text» LIBREOFFICE_EXTENSIONS=»presenter-console presenter-minimizer» LINGUAS=»de de_DE en en_US» OFFICE_IMPLEMENTATION=»libreoffice» PHP_TARGETS=»php5-6″ PYTHON_SINGLE_TARGET=»python2_7″ PYTHON_TARGETS=»python2_7 python3_4 python3_5″ RUBY_TARGETS=»ruby24 ruby21 ruby22 ruby23″ USERLAND=»GNU» VIDEO_CARDS=»nouveau nvidia» XTABLES_ADDONS=»quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account»

USE_PYTHON=»2.7 3.4 3.5″
_________________
DUMM KLICKT GUT.

Device: OGA 1.1 Black
OS image: Ubuntu 20 with ES (Linux goadvance 4.4.189-27 #1 SMP Wed May 13 00:52:14 UTC 2020 aarch64 aarch64 aarch64 GNU/Linux)

I’m working on Ubuntu terminal mode, without GUI.

Installed:
sudo apt-get install xorg-dev

Then I download sdl-go2 source code from: https://github.com/OtherCrashOverride/sdl-go2
cd SDL > mkdir build > cd build > ../configure > make > sudo make install
cd SDL/test > ./configure /make

test SDL audio (works fine):

/sdl/test$ ./loopwave
INFO: Available audio drivers:
INFO: 0: pulseaudio
INFO: 1: alsa
INFO: 2: sndio
INFO: 3: dsp
INFO: 4: disk
INFO: 5: dummy
INFO: Using audio driver: alsa

test SDL video (Couldn’t initialize ) :

sdl/test$ ./testautomation
INFO: Couldn’t initialize video driver: No available video device

lauch another application use SDL:
$love
Error: Could not initialize SDL video subsystem (No available video device)

stack traceback:
[string «boot.lua»]:777: in function <[string «boot.lua»]:773>
C: at 0x7f7e5f1018
C: in function ‘require’
[string «boot.lua»]:505: in function <[string «boot.lua»]:380>
C: in function ‘xpcall’
[string «boot.lua»]:787: in function <[string «boot.lua»]:780>
C: in function ‘xpcall’

How can I fix it? :?: I had a lot of ways try to fix it, but dose not work.

Please help, Thanks!

Moderator: ScummVM Team

alchemist_alchemist

Posts: 2
Joined: Thu Jul 01, 2021 3:02 am

Could not initialize SDL: No available video device!

Hi everyone,

I’ve been trying to run ScummVM 2.2.0 on MX Linux 19.4 (based on Debian 10) for a few days now. Nothing happens when trying to start it from the GUI, and using the Terminal gives the error:

Code: Select all

Could not initialize SDL: No available video device!

I’ve tried uninstalling and reinstalling, both from the .deb package and from the package manager, but haven’t had any luck launching either. I have SDL 2.0.14 installed and am using a NVIDIA 2080 Super with proprietary drivers. Am I doing something wrong here or is this a bug?

alchemist_alchemist

Posts: 2
Joined: Thu Jul 01, 2021 3:02 am

Re: Could not initialize SDL: No available video device!

Post

by alchemist_alchemist » Sun Jul 04, 2021 4:08 am

Thanks; although SDL’s documentation wasn’t much help, knowing that it was not a ScummVM problem helped narrow down the issue. At first I thought I’d just compiled SDL incorrectly, so I removed it and tried installing through Synaptic. For some reason even though Debian’s SDL package includes X11 and Wayland, it still refused to launch regardless of which driver I specified in the environment variables. I searched around some more and found this forum thread https://ubuntuforums.org/showthread.php?t=944671. The second-to-last post was more-or-less the solution that finally worked. TL;DR for anyone else with this problem: remove scummvm and all versions of libsdl that are currently installed, then install libsdl1.2-dev, download the latest SDL version from libsdl.org, extract it, compile using

and

then finally

Reinstall ScummVM and it should (hopefully) launch.

Понравилась статья? Поделить с друзьями:
  • Error initializing rpc system dll was not found protocol dll
  • Error initializing physx dragon age что делать
  • Error initializing opera module 15 logdoc что делать
  • Error initializing main frame buffer
  • Error initializing license system