请问不用apt-get怎么安装dosbox?

游戏讨论
回复
zeng.sr
帖子: 4
注册时间: 2010-07-19 21:24

请问不用apt-get怎么安装dosbox?

#1

帖子 zeng.sr » 2015-10-30 17:40

我需要装个dosbox0.65或者0.63,但是直接sudo apt-get install dosbox得到的是0.74
我从sourceforge下载到0.65源码,在代码根目录执行./configure后,执行make,弹出一大堆报错..
make all-recursive
make[1]: 正在进入目录 `/usual/entertainment/game/tools/dosbox-0.65'
Making all in src
make[2]: 正在进入目录 `/usual/entertainment/game/tools/dosbox-0.65/src'
Making all in cpu
make[3]: 正在进入目录 `/usual/entertainment/game/tools/dosbox-0.65/src/cpu'
Making all in core_full
make[4]: 正在进入目录 `/usual/entertainment/game/tools/dosbox-0.65/src/cpu/core_full'
make[4]: 没有什么可以做的为 `all'。
make[4]:正在离开目录 `/usual/entertainment/game/tools/dosbox-0.65/src/cpu/core_full'
Making all in core_normal
make[4]: 正在进入目录 `/usual/entertainment/game/tools/dosbox-0.65/src/cpu/core_normal'
make[4]: 没有什么可以做的为 `all'。
make[4]:正在离开目录 `/usual/entertainment/game/tools/dosbox-0.65/src/cpu/core_normal'
Making all in core_dyn_x86
make[4]: 正在进入目录 `/usual/entertainment/game/tools/dosbox-0.65/src/cpu/core_dyn_x86'
make[4]: 没有什么可以做的为 `all'。
make[4]:正在离开目录 `/usual/entertainment/game/tools/dosbox-0.65/src/cpu/core_dyn_x86'
make[4]: 正在进入目录 `/usual/entertainment/game/tools/dosbox-0.65/src/cpu'
if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -g -O2 -MT cpu.o -MD -MP -MF ".deps/cpu.Tpo" -c -o cpu.o cpu.cpp; \
then mv -f ".deps/cpu.Tpo" ".deps/cpu.Po"; else rm -f ".deps/cpu.Tpo"; exit 1; fi
cpu.cpp: In member function ‘void TaskStateSegment::Get_SSx_ESPx(Bitu, Bitu&, Bitu&)’:
cpu.cpp:197:37: error: expected primary-expression before ‘,’ token
PhysPt where=base+offsetof(TSS_32,esp0)+level*8;
^
cpu.cpp:197:38: error: ‘esp0’ was not declared in this scope
PhysPt where=base+offsetof(TSS_32,esp0)+level*8;
^
cpu.cpp:197:42: error: ‘offsetof’ was not declared in this scope
PhysPt where=base+offsetof(TSS_32,esp0)+level*8;
^
cpu.cpp:201:37: error: expected primary-expression before ‘,’ token
PhysPt where=base+offsetof(TSS_16,sp0)+level*4;
^
cpu.cpp:201:38: error: ‘sp0’ was not declared in this scope
PhysPt where=base+offsetof(TSS_16,sp0)+level*4;
^
cpu.cpp:201:41: error: ‘offsetof’ was not declared in this scope
PhysPt where=base+offsetof(TSS_16,sp0)+level*4;
^
cpu.cpp: In function ‘bool CPU_SwitchTask(Bitu, TSwitchType, Bitu)’:
cpu.cpp:249:86: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
E_Exit("Illegal TSS for switch, selector=%x, switchtype=%x",new_tss_selector,tstype);

是我的安装方法错了吗?...
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: 请问不用apt-get怎么安装dosbox?

#2

帖子 vickycq » 2015-10-30 17:54

不想编译可以到这里找老版的 deb,但不能保证正确运作。
http://old-releases.ubuntu.com/ubuntu/p ... /d/dosbox/
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
zeng.sr
帖子: 4
注册时间: 2010-07-19 21:24

Re: 请问不用apt-get怎么安装dosbox?

#3

帖子 zeng.sr » 2015-10-30 22:48

可以用,谢谢
Tsunami1
帖子: 1
注册时间: 2016-09-07 6:59
系统: best

Re: 请问不用apt-get怎么安装dosbox?

#4

帖子 Tsunami1 » 2016-09-07 7:12

我想知道如何安装此程序?
xiao127x
帖子: 2
注册时间: 2019-04-18 20:22
系统: ubuntu 18.04

Re: 请问不用apt-get怎么安装dosbox?

#5

帖子 xiao127x » 2019-04-18 20:51

18.04可以正确安装DOSBOX,但是无法使用鼠标
回复