我正在学习如何用编写一个基本的操作系统内核
我在Windows10 v1607上的Windows Subsystem for Linux中运行。
现在我想用qemu-systems-x86_64 -cdrom os.iso运行我的.iso了。
以前我可以运行这个命令,QEMU会运行一个窗口,它遇到了另一个问题,这里发布了:
现在,当运行该命令时,我收到以下错误:Could not initialize SDL(No available video device) - exiting
当我在安装Xming之前遇到这个问题时,运行它,然后QEMU成功运行。但是现在,当我尝试运行Xming时,它不再
运行马里奥游戏时在此文件中出错我从以下链接(https://github.com/Ja1r0/DQN-play-SuperMario)下载了代码当尝试运行文件super_mario.py时,我得到了上面的错误(pygame.error视频系统未初始化)。 我正在使用windows10中的ubuntu18.04小部件。 import platform
p_name = platform.system()
print(p_name)
import os
import pygame as pg
from . import tools
from . import constants as c
O
我被构建了Android 7.0.0_r14,然后被仿真,但失败了。问题是停止“模拟器: android_hw_fingerprint_init:指纹qemud侦听服务初始化”,只是停留在黑屏。我不知道该怎么办..。
这是日志。
jinscorp@jinscorp:~/sdk/emulator$ ./emulator @Test7 -verbos
unknown option: -verbos
please use -help for a list of valid options
jinscorp@jinscorp:~/sdk/emulator$ ./emulator @Test7 -ver
我目前正在浏览这个网站关于SDL的教程:
(),
使用Windows 10上的Bash作为平台。我已经安装了SDL软件包
apt-get install libsdl2-dev
并且能够编译课程源代码()。
使用g++ 01_hello_SDL.cpp -w -lSDL2 -o 01_hello_SDL。
但是,当我使用./01_hello_SDL运行可执行文件时,程序输出了SDL could not initialize! SDL_Error: Failed to connect to the Mir Server。有人知道解决这个问题的办法吗?
自从我收到这些错误后:
[xcb] Unknown request in queue while dequeuing
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.
main: ../../src/xcb_io.c:178: dequeue_pending_request: Assertion `!xcb_xlib_unknown_req_in_deq' failed.
编辑:我有时也会遇到这样
我按照以下步骤安装qemu
# On Linux, you may need to install the SDL development libraries to get a graphical VGA window. On Debian/Ubuntu, this is the libsdl1.2-dev package.
# Configure the source code
Linux: ./configure --disable-kvm [--prefix=PFX] [--target-list="i386-softmmu x86_64-softmmu"]
OS X:
基本上,当在VirtualBox机器中运行时,SDL无法获得显示模式。
SDL_GetNumDisplayModes()失败报告-1然后SDL_InitSubSystem(SDL_INIT_VIDEO)在没有可用视频设备的情况下失败。
int main(void)
{
int numberOfDrivers = SDL_GetNumVideoDrivers();
printf("Number of drivers: %d\n", numberOfDrivers);
for (int i = 0; i < numberOfDrivers; i++)
环境: Ubuntu 11.04。SDL 1.2.15。
在基于SDL的应用程序中,我一个接一个地播放多个视频剪辑。对于每个视频,我在开头调用SDL_OpenAudio,在结尾调用SDL_CloseAudio。但是,每轮都会留下两个未释放的内存块。它们都来自内部的SDL函数AudioAvailable。
==17035== 372 bytes in 3 blocks are definitely lost in loss record 139 of 169
==17035== at 0x4C28F9F: malloc (vg_replace_malloc.c:236)
==17035==
最近我安装了QEMU + Virt,所以我可以在不离开linux的情况下运行一些windows程序。我被困在网络里了。
我将default网络的源设置为NAT,设备模型设置为virtio。而且它很活跃。
我以前使用过bridged连接,但它只是在启动时抛出Error starting domain: Cannot get interface MTU on 'win10vm': No such device。
有人知道怎么修吗?