could not initialize sdl: no available video device 文心快码BaiduComate 针对你遇到的“could not initialize sdl: no available video device”错误,这通常表明SDL(Simple DirectMedia Layer)库在尝试初始化视频子系统时未能找到可用的视频设备。以下是一些可能的解决步骤,按照你的提示进行组织: 确认SDL库是否正确...
SDL2 报错:No available video device 搜索后找到了对应的解决方案,原话是这样的 If you built your own SDL, you probably didn’t have development headers for PulseAudio (or ALSA), so it’s trying to use /dev/dsp, which doesn’t exist on many modern Linux systems (hence, SDL_Init(SDL_INIT...
device model: Samsung A04 Android version: 13 Describe the bug scrcpy 2.1.1 <https://github.com/Genymobile/scrcpy> ERROR: Could not initialize SDL video: No available video device ERROR: Could not start adb server I have installed all the prerequisites as required from theReadme.MD, addition...
Is there any way to use the library on a Ubuntu Server without a display? if err := sdl.Init(sdl.INIT_VIDEO); err != nil { println(err.Error()) return } Gives the following error:No available video device, which is expected. ...
下载地址:https://www.libsdl.org/download-2.0.php Linux环境搭建 下载SDL源码库, SDL2-2.0.10.tar.gz 解压,然后依次执行命令 ./configure make sudo make install 如果出现Could not initialize SDL - No available video device(Did you set the DISPLAY variable?)错误说明系统中没有安装x11的库文件,因此编...
(3)如果出现Could not initialize SDL - No available video device(Did you set the DISPLAY variable?)错误提示,就说明系统中没有安装x11的库文件,因此编译出来的SDL库实际上不能用。需要安装如下库,命令如下: sudo apt-getinstalllibx11-dev sudo apt-getinstallxorg-dev ...
SDL_INIT_VIDEO:视频 SDL_INIT_JOYSTICK:摇杆 SDL_INIT_HAPTIC:触摸屏 SDL_INIT_GAMECONTROLLER:游戏控制器 SDL_INIT_EVENTS:事件 SDL_INIT_NOPARACHUTE:不捕获关键信号(这个不理解) SDL_INIT_EVERYTHING:包含上述所有选项 函数调用关系图 SDL_Init()关键函数的调用关系可以用下图表示。
见地址代码如下:package mainimport ("fmt""github.com/moonfdd/sdl2-go/sdl""github.com/moonfdd/...
也是提示:Could not initialize SDL - No available video device。 一翻搜索,说是SDL2需要directfb。 buildroot选中directfb,继续编译测试。 设置export SDL_VIDEODRIVER=directfb,运行ffplay,显示: Could not initialize SDL - directfb not available(Did you set the DISPLAY variable?) 后面怎么破。。。 离线 ...
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:380) Copy link Collaborator rom1vcommentedSep 29, 2021• edited error: XDG_RUNTIME_DIR not set in the environment. CRITICAL: Could not initialize SDL: No available video device ...