为什么运行不了sdlmame
-
- 帖子: 6
- 注册时间: 2010-01-03 9:30
为什么运行不了sdlmame
在笔记本电脑上装双系统,Ubuntu的版本是9.10。已经装了sdl及其扩展函数库,sdlmame也装了,但是输入“sdlmame”,能出现菜单,选择游戏按"enter"键没反应,一会儿就死机了。怎么回事呢?还有要补充的是我的手提是512Mb的,分了一半给Ubuntu。这样的条件跑sdlmame很吃力?
-
- 帖子: 6
- 注册时间: 2010-01-03 9:30
Re: 为什么运行不了sdlmame
运行不起来是这个缘故吗?还有,我下载了一个软件包,自带了makefile文件,在终端进入所在文件夹make之,报错:
**@***-laptop:~/sdlmame0136$ make
Compiling src/osd/sdl/strconv.c...
Package gtk+-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-2.0' found
Package gconf-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gconf-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gconf-2.0' found
cc1: warnings being treated as errors
In file included from src/emu/attotime.h:40,
from src/emu/timer.h:20,
from src/emu/video.h:19,
from src/emu/mame.h:16,
from src/osd/sdl/strconv.c:21:
src/emu/eminline.h: In function ‘compare_exchange_ptr’:
src/emu/eminline.h:346: error: cast from pointer to integer of different size
src/emu/eminline.h:346: error: cast from pointer to integer of different size
src/emu/eminline.h:351: error: cast to pointer from integer of different size
make: *** [obj/sdl/mame/osd/sdl/strconv.o] 错误 1
但是在fedora11是可以编译通过并运行的。是不是我的ubuntu少安装了哪个软件包?
**@***-laptop:~/sdlmame0136$ make
Compiling src/osd/sdl/strconv.c...
Package gtk+-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-2.0' found
Package gconf-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gconf-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gconf-2.0' found
cc1: warnings being treated as errors
In file included from src/emu/attotime.h:40,
from src/emu/timer.h:20,
from src/emu/video.h:19,
from src/emu/mame.h:16,
from src/osd/sdl/strconv.c:21:
src/emu/eminline.h: In function ‘compare_exchange_ptr’:
src/emu/eminline.h:346: error: cast from pointer to integer of different size
src/emu/eminline.h:346: error: cast from pointer to integer of different size
src/emu/eminline.h:351: error: cast to pointer from integer of different size
make: *** [obj/sdl/mame/osd/sdl/strconv.o] 错误 1
但是在fedora11是可以编译通过并运行的。是不是我的ubuntu少安装了哪个软件包?
- eexpress
- 帖子: 58428
- 注册时间: 2005-08-14 21:55
- 来自: 长沙
-
- 帖子: 6
- 注册时间: 2010-01-03 9:30
Re: 为什么运行不了sdlmame
这个软件包不是sdlmame,虽然命名是sdlmame0136,它是一个修改过的软件包。但是修改范围并没有涉及sdl及其扩展函数库以外的库。而且在fedora11下是可以成功编译并运行的。
- parry_all
- 帖子: 732
- 注册时间: 2008-07-01 9:53
- 来自: Dunedin, New Zealand
Re: 为什么运行不了sdlmame
代码: 全选
sudo apt-get install build-essential gnome-core-devel libsdl1.2-dev libasound2-dev
http://rbelmont.mameworld.info/?page_id=163
下载!
解压缩后进入其目录中,执行:
代码: 全选
make
-
- 帖子: 6
- 注册时间: 2010-01-03 9:30
Re: 为什么运行不了sdlmame
谢谢楼上的。今早试了楼上的方法,原来安装的sdlmame居然能运行了。但郁闷的是没有声音,咋回事咧~~我还有另一个问题,我想安装的那个软件包——它用到的函数库是sdl及其扩展函数库,而且在fedora下能编译通过并运行,但在ubuntu9.10下报错,我少装了什么东西吗:
??@??-laptop:~????$ make
Compiling src/osd/sdl/strconv.c...
cc1: warnings being treated as errors
In file included from src/emu/attotime.h:40,
from src/emu/timer.h:20,
from src/emu/video.h:19,
from src/emu/mame.h:16,
from src/osd/sdl/strconv.c:21:
src/emu/eminline.h: In function ‘compare_exchange_ptr’:
src/emu/eminline.h:346: error: cast from pointer to integer of different size
src/emu/eminline.h:346: error: cast from pointer to integer of different size
src/emu/eminline.h:351: error: cast to pointer from integer of different size
make: *** [obj/sdl/mame/osd/sdl/strconv.o] 错误 1
??@??-laptop:~????$ make
Compiling src/osd/sdl/strconv.c...
cc1: warnings being treated as errors
In file included from src/emu/attotime.h:40,
from src/emu/timer.h:20,
from src/emu/video.h:19,
from src/emu/mame.h:16,
from src/osd/sdl/strconv.c:21:
src/emu/eminline.h: In function ‘compare_exchange_ptr’:
src/emu/eminline.h:346: error: cast from pointer to integer of different size
src/emu/eminline.h:346: error: cast from pointer to integer of different size
src/emu/eminline.h:351: error: cast to pointer from integer of different size
make: *** [obj/sdl/mame/osd/sdl/strconv.o] 错误 1
- parry_all
- 帖子: 732
- 注册时间: 2008-07-01 9:53
- 来自: Dunedin, New Zealand
Re: 为什么运行不了sdlmame
我真的不是很清楚为什么会出现这样的错误!tianlan 写了:谢谢楼上的。今早试了楼上的方法,原来安装的sdlmame居然能运行了。但郁闷的是没有声音,咋回事咧~~我还有另一个问题,我想安装的那个软件包——它用到的函数库是sdl及其扩展函数库,而且在fedora下能编译通过并运行,但在ubuntu9.10下报错,我少装了什么东西吗:
??@??-laptop:~????$ make
Compiling src/osd/sdl/strconv.c...
cc1: warnings being treated as errors
In file included from src/emu/attotime.h:40,
from src/emu/timer.h:20,
from src/emu/video.h:19,
from src/emu/mame.h:16,
from src/osd/sdl/strconv.c:21:
src/emu/eminline.h: In function ‘compare_exchange_ptr’:
src/emu/eminline.h:346: error: cast from pointer to integer of different size
src/emu/eminline.h:346: error: cast from pointer to integer of different size
src/emu/eminline.h:351: error: cast to pointer from integer of different size
make: *** [obj/sdl/mame/osd/sdl/strconv.o] 错误 1
但是,最近MAME代码的变化很大,整个编译方法与之前的sdlmame0136有很大的不同!因为现在sdlmame官方网站已经不再提供代码了!sdlmame已经被整合到官方MAME中去成为其一部分了。
具体的编译方法请参照:
http://www.bannister.org/forums/ubbthre ... #Post58111
