求救,编译安装mame

游戏讨论
回复
头像
tor
帖子: 300
注册时间: 2009-01-18 23:26

求救,编译安装mame

#1

帖子 tor » 2016-05-14 18:33

mame$ sudo make
Compiling src/osd/modules/font/font_sdl.c...
../../../../../src/osd/modules/font/font_sdl.c:14:26: fatal error: SDL2/SDL_ttf.h: 没有那个文件或目录
#include <SDL2/SDL_ttf.h>
^
compilation terminated.
make[2]: *** [../../../../linux_gcc/obj/x32/Release/osd_sdl/src/osd/modules/font/font_sdl.o] 错误 1
make[1]: *** [osd_sdl] 错误 2
make: *** [linux_x86] 错误 2
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: 求救,编译安装mame

#2

帖子 vickycq » 2016-05-14 19:02

1. make 不需要 sudo
2. 尝试安装 libsdl2-ttf-dev
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
头像
tor
帖子: 300
注册时间: 2009-01-18 23:26

Re: 求救,编译安装mame

#3

帖子 tor » 2016-05-14 20:08

缺什么什么包究竟是怎么查的?有命令吗?请问? 我搜 谷歌 搜了很就久都没发现
onlylove
论坛版主
帖子: 5214
注册时间: 2007-01-14 16:23

Re: 求救,编译安装mame

#4

帖子 onlylove » 2016-05-14 21:07

试试 sudo apt-get build-dep mame?你编译的是啥,xmame还是sdl mame?(我之前弄过,效果不是很好……)
还有,编译之前看下介绍里面有哪些依赖,还有个问题就是,mame这个,根据版本不一样,需求的rom版本也不一样,国内能下的很多rom在最新的mame上可能不能运行
#include <stdio.h>
void main()
{
double world;
unsigned letter;
short stay;
long memories;
printf("I miss you.\n");
}
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: 求救,编译安装mame

#5

帖子 vickycq » 2016-05-14 21:39

囗囗囗 写了:缺什么什么包究竟是怎么查的?有命令吗?请问? 我搜 谷歌 搜了很就久都没发现
有两种常见的方法

1.
用 apt-file 搜索包含某个具体文件的包名
先安装 apt-file 套件
第一次使用 apt-file 需要先建立索引(用 root 身份运行一次 apt-file update)

代码: 全选

$ apt-file search SDL_ttf.h
cmake-doc: /usr/share/doc/cmake-data/html/module/FindSDL_ttf.html
emscripten: /usr/share/emscripten/system/include/SDL/SDL_ttf.h
libsdl-ttf2.0-dev: /usr/include/SDL/SDL_ttf.h
libsdl2-ttf-dev: /usr/include/SDL2/SDL_ttf.h
可见需要安装 包含 /usr/include/SDL2/SDL_ttf.h 的 libsdl2-ttf-dev

2.
也可到 http://packages.ubuntu.com/ - Search the contents of packages
单选按钮选择 'packages that contain files whose names contain the keyword'
关键词填 SDL_ttf.h
搜索,得到 http://packages.ubuntu.com/search?searc ... l&arch=any
可见 SDL2/SDL_ttf.h 包含在 libsdl2-ttf-dev 这个包中
囗囗囗 写了: 我搜 谷歌 搜了很就久都没发现
谷歌搜索 'mame fatal error: SDL2/SDL_ttf.h' 前几个都是相关结果
https://www.google.com/#q=mame+fatal+er ... FSDL_ttf.h
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
头像
tor
帖子: 300
注册时间: 2009-01-18 23:26

Re: 求救,编译安装mame

#6

帖子 tor » 2016-05-14 23:37

Linking mame...
/usr/bin/ld: ../../../../linux_gcc/bin/x32/Release/mame_mame/libosd_sdl.a(sdlmain.o): undefined reference to symbol 'FcInit'
//usr/lib/i386-linux-gnu/libfontconfig.so.1: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [../../../../../mame] 错误 1
make[1]: *** [mame] 错误 2
make: *** [linux_x86] 错误 2

我还能玩吗? :Hehe :Cry
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: 求救,编译安装mame

#7

帖子 vickycq » 2016-05-14 23:51

有可能是 makefile 中少了 -lfontconfig
把 -lfontconfig 加到某个位置。现在手机不方便帮你具体查看。
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
头像
tor
帖子: 300
注册时间: 2009-01-18 23:26

Re: 求救,编译安装mame

#8

帖子 tor » 2016-05-15 21:07

搞掂http://www.cnblogs.com/IamEasy_Man/archive/201 ... 45609.html
今天在编译android时碰到个问题,错误log如下:

“out/target/product/xxxx/obj/lib/xxxxxx.so: undefined reference to `xxxxxxxx'”

“collect2: ld returned 1 exit status”,这个错误时因为在使用xxxxxx.so库时,库中的xxxxxxxx函数需要其他库文件或者没有实现。所以只需要将相应的库文件加到编译的路徑中.


把libfontconfig.so.1 放到mame文件夹,再编译,OK
头像
tor
帖子: 300
注册时间: 2009-01-18 23:26

Re: 求救,编译安装mame

#9

帖子 tor » 2016-05-16 0:01

想问下怎么安装前端kxmame 我有kde桌面,编译安装说kde-config was not found! 系统是14.04

http://archive.ubuntu.com/ubuntu/pool/m ... /k/kxmame/
这里下的包
头像
nyfair
帖子: 1067
注册时间: 2007-12-07 12:49
系统: winnux10
来自: Tree New Bee

Re: 求救,编译安装mame

#11

帖子 nyfair » 2016-05-16 11:59

囗囗囗 写了:想问下怎么安装前端kxmame 我有kde桌面,编译安装说kde-config was not found! 系统是14.04

http://archive.ubuntu.com/ubuntu/pool/m ... /k/kxmame/
这里下的包
别整这堆没用的,那些东西都死了,只有mame自己的sdlmame还活着
本人在此论坛仅负责吐槽,问题急需解决请支付宝转账5毛至{我的id@qq.com},将会竭诚为您服务

linux常见多媒体问题处理指南

1. 视频播放有问题->卸载gstreamer
2. 音频播放有问题->卸载pulseaudio
3. 远程播放有问题->卸载avahi
4. 系统全都有问题->卸载systemd,远离Lennart这傻逼让你从此轻松自在

⇩自由网络⇩
https://github.com/nyfair/freeweb
回复