我从 DOSBox SVN-Duam 的主页上下载了它。也许我已经解决了依赖问题,
$ ldd ./dosbox linux-gate.so.1 => (0xb776d000)
libSDL_sound-1.0.so.1 => /usr/lib/libSDL_sound-1.0.so.1 (0xb7707000)
libasound.so.2 => /usr/lib/i386-linux-gnu/libasound.so.2 (0xb7615000)
libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xb760f000)
libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0xb75f4000)
libSDL-1.2.so.0 => /usr/lib/i386-linux-gnu/libSDL-1.2.so.0 (0xb7559000)
libpng12.so.0 => /lib/i386-linux-gnu/libpng12.so.0 (0xb752f000)
libz.so.1 => /lib/i386-linux-gnu/libz.so.1 (0xb7519000)
libfreetype.so.6 => /usr/lib/i386-linux-gnu/libfreetype.so.6 (0xb747e000)
libpcap.so.1 => /usr/local/lib/libpcap.so.1 (0xb7442000)
libSDL_net-1.2.so.0 => /usr/lib/i386-linux-gnu/libSDL_net-1.2.so.0 (0xb743d000)
libX11.so.6 => /usr/lib/i386-linux-gnu/libX11.so.6 (0xb7309000)
libGL.so.1 => /usr/lib/nvidia-current-updates/libGL.so.1 (0xb722d000)
libfluidsynth.so.1 => /usr/lib/i386-linux-gnu/libfluidsynth.so.1 (0xb7167000)
libphysfs.so.1 => /usr/lib/libphysfs.so.1 (0xb713c000)
libstdc++.so.6 => /usr/lib/i386-linux-gnu/libstdc++.so.6 (0xb7057000)
libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xb702b000)
libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0xb700d000)
libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb6e62000)
libvorbisfile.so.3 => /usr/lib/i386-linux-gnu/libvorbisfile.so.3 (0xb6e58000)
librt.so.1 => /lib/i386-linux-gnu/librt.so.1 (0xb6e4f000)
/lib/ld-linux.so.2 (0xb776e000)
libpulse-simple.so.0 => /usr/lib/i386-linux-gnu/libpulse-simple.so.0 (0xb6e4a000)
libpulse.so.0 => /usr/lib/i386-linux-gnu/libpulse.so.0 (0xb6dfc000)
libXext.so.6 => /usr/lib/i386-linux-gnu/libXext.so.6 (0xb6de9000)
libcaca.so.0 => /usr/lib/i386-linux-gnu/libcaca.so.0 (0xb6d1e000)
libxcb.so.1 => /usr/lib/i386-linux-gnu/libxcb.so.1 (0xb6cfd000)
libnvidia-tls.so.304.64 => /usr/lib/nvidia-current-updates/tls/libnvidia-tls.so.304.64 (0xb6cf9000)
libnvidia-glcore.so.304.64 => /usr/lib/nvidia-current-updates/libnvidia-glcore.so.304.64 (0xb4ff3000)
libglib-2.0.so.0 => /lib/i386-linux-gnu/libglib-2.0.so.0 (0xb4ef9000)
libjack.so.0 => /usr/lib/i386-linux-gnu/libjack.so.0 (0xb4edb000)
libsndfile.so.1 => /usr/lib/i386-linux-gnu/libsndfile.so.1 (0xb4e69000)
libdbus-1.so.3 => /lib/i386-linux-gnu/libdbus-1.so.3 (0xb4e20000)
libreadline.so.6 => /lib/i386-linux-gnu/libreadline.so.6 (0xb4de6000)
libvorbis.so.0 => /usr/lib/i386-linux-gnu/libvorbis.so.0 (0xb4dba000)
libogg.so.0 => /usr/lib/i386-linux-gnu/libogg.so.0 (0xb4db2000)
libpulsecommon-1.1.so => /usr/lib/i386-linux-gnu/libpulsecommon-1.1.so (0xb4d4d000)
libjson.so.0 => /usr/lib/i386-linux-gnu/libjson.so.0 (0xb4d45000)
libslang.so.2 => /lib/i386-linux-gnu/libslang.so.2 (0xb4c25000)
libncursesw.so.5 => /lib/i386-linux-gnu/libncursesw.so.5 (0xb4bf4000)
libtinfo.so.5 => /lib/i386-linux-gnu/libtinfo.so.5 (0xb4bd5000)
libXau.so.6 => /usr/lib/i386-linux-gnu/libXau.so.6 (0xb4bd1000)
libXdmcp.so.6 => /usr/lib/i386-linux-gnu/libXdmcp.so.6 (0xb4bca000)
libpcre.so.3 => /lib/i386-linux-gnu/libpcre.so.3 (0xb4b8e000)
libFLAC.so.8 => /usr/lib/i386-linux-gnu/libFLAC.so.8 (0xb4b3f000)
libvorbisenc.so.2 => /usr/lib/i386-linux-gnu/libvorbisenc.so.2 (0xb49c7000)
libwrap.so.0 => /lib/i386-linux-gnu/libwrap.so.0 (0xb49bd000)
libasyncns.so.0 => /usr/lib/i386-linux-gnu/libasyncns.so.0 (0xb49b6000)
libnsl.so.1 => /lib/i386-linux-gnu/libnsl.so.1 (0xb499c000)
libresolv.so.2 => /lib/i386-linux-gnu/libresolv.so.2 (0xb4983000)
但当我运行它时,
$./dosbox
DOSBox 版本 SVN-Daum
版权所有 2002-2011 DOSBox 团队,根据 GNU GPL 发布。
GUI:按 Ctrl-F10 捕获/释放鼠标,按 Alt-F10 进行配置。配置:从配置文件 dosbox.conf 加载主要设置 ./dosbox:符号查找错误:./dosbox:未定义符号:SDL_GetDesktopMode
它有什么问题?我还没有尝试在其他 Linux 发行版上运行它。但它在 Windows 上很完美。
答案1
您可以在 LIBS 目录中找到 libSDL-1.2.so.0。该文件包含一个名为 SDL_GetDesktopMode 的函数。
如果你要自己编译 SDL,则需要 Moe 的 openglhq 补丁。从他的网站获取 openglhq-dosbox-for-sdl-202121117_msvc_gcc.patch。