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...
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的库文件,因此编...
SDL_INIT_VIDEO:视频 SDL_INIT_JOYSTICK:摇杆 SDL_INIT_HAPTIC:触摸屏 SDL_INIT_GAMECONTROLLER:游戏控制器 SDL_INIT_EVENTS:事件 SDL_INIT_NOPARACHUTE:不捕获关键信号(这个不理解) SDL_INIT_EVERYTHING:包含上述所有选项 函数调用关系图 SDL_Init()关键函数的调用关系可以用下图表示。
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 ...
"Can't initialize SDL: No available video device"I have tried to setup SDL to use the framebuffer, but i still have no luck in getting the game to run.I have run fbset and the results are:mode "480x272-57" # D: 9.091 MHz, H: 16.992 kHz, V: 57.021 Hz geometry 48...
见地址代码如下:package mainimport ("fmt""github.com/moonfdd/sdl2-go/sdl""github.com/moonfdd/...
hw_availabale表示创建硬件surface的可行性(1表示可以,0表示不可以,后同);wm_available表示是否存在可用的窗口管理器;3-9行表示了一系列硬件到硬件,软件到硬件加速的可行性;video_men表示显存大小;vfmt是当前显示驱动(video device)的像素格式(pixel format);current_w和current_h是当前窗口的宽和高。
GetSDLError() << std::endl; } catch (std::exception& e) { // This also works (e.g. "SDL_Init failed: No available video device") std::cerr << e.what() << std::endl; }There's also more elaborate tutorial.FeaturesCurrently, the library provides wrapper classes for...