这是什么问题?编译安装advancemame-1.4

游戏讨论
头像
tor
帖子: 296
注册时间: 2009-01-18 23:26
送出感谢: 4 次
接收感谢: 0

这是什么问题?编译安装advancemame-1.4

#1

帖子 tor » 2016-08-19 3:33

make
obj/mame/linux/blend/advmame
obj/mame/linux/blend/advance/sdl/ssdl.o:在函数‘soundb_sdl_init’中:
ssdl.c:(.text+0x121):对‘os_internal_sdl_get’未定义的引用
obj/mame/linux/blend/advance/sdl/msdl.o:在函数‘mouseb_sdl_init’中:
msdl.c:(.text+0xe3):对‘os_internal_sdl_get’未定义的引用
obj/mame/linux/blend/advance/sdl/ksdl.o:在函数‘keyb_sdl_init’中:
ksdl.c:(.text+0x105):对‘os_internal_sdl_get’未定义的引用
obj/mame/linux/blend/advance/sdl/jsdl.o:在函数‘joystickb_sdl_init’中:
jsdl.c:(.text+0x63):对‘os_internal_sdl_get’未定义的引用
obj/mame/linux/blend/advance/sdl/vsdl.o:在函数‘sdl_init’中:
vsdl.c:(.text+0x7ec):对‘os_internal_sdl_get’未定义的引用
vsdl.c:(.text+0xb1f):对‘os_internal_sdl_title_get’未定义的引用
vsdl.c:(.text+0xb27):对‘os_internal_sdl_title_get’未定义的引用
obj/mame/linux/blend/advance/sdl/vsdl.o:在函数‘sdl_mode_set’中:
vsdl.c:(.text+0x1100):对‘os_internal_sdl_title_get’未定义的引用
vsdl.c:(.text+0x1108):对‘os_internal_sdl_title_get’未定义的引用
collect2: error: ld returned 1 exit status
advance/emu.mak:671: recipe for target 'obj/mame/linux/blend/advmame' failed
make: *** [obj/mame/linux/blend/advmame] Error 1
头像
tor
帖子: 296
注册时间: 2009-01-18 23:26
送出感谢: 4 次
接收感谢: 0

Re: 这是什么问题?编译安装advancemame-1.4

#2

帖子 tor » 2016-08-19 4:01

dpkg -l |grep sdl
ii libsdl-ttf2.0-0:amd64 2.0.11-3 amd64 TrueType Font library for Simple DirectMedia Layer 1.2, libraries
ii libsdl1.2debian:amd64 1.2.15+dfsg1-3 amd64 Simple DirectMedia Layer
ii libsdl2-2.0-0:amd64 2.0.4+dfsg1-2ubuntu2 amd64 Simple DirectMedia Layer
ii libsdl2-ttf-2.0-0:amd64 2.0.14+dfsg1-1 amd64 TrueType Font library for Simple DirectMedia Layer 2, libraries

sudo apt-get install libsdl1.2-dev
下列软件包有未满足的依赖关系:
libsdl1.2-dev : 依赖: libcaca-dev 但是它将不会被安装
E: 无法修正错误,因为您要求某些软件包保持现状,就是它们破坏了软件包间的依赖关系。
头像
tor
帖子: 296
注册时间: 2009-01-18 23:26
送出感谢: 4 次
接收感谢: 0

Re: 这是什么问题?编译安装advancemame-1.4

#3

帖子 tor » 2016-08-19 4:03

编译安装advancemame-1.4
出现configure: WARNING: the SDL library was not found
sudo apt-get install libsdl1.2-dev
出现依赖问题


http://www.libsdl.org/download-1.2.php
下载SDL-1.2.15.tar.gz
./configure
出现 make: *** [build/SDL_x11dyn.lo] Error 1
需要修改src/video/x11/SDL_x11sym.h 文件,按照提示修改168行

原来是:SDL_X11_SYM(int,_XData32,(Display *dpy,register long *data,unsigned len),(dpy,data,len),return)

改后添加一个单词即可:_Xconst
SDL_X11_SYM(int,_XData32,(Display *dpy,register _Xconst long *data,unsigned len),(dpy,data,len),return)


出现configure: WARNING: no text video mode library found. The advv/advcfg utilities will not work!
http://www.libpng.org/pub/png/libpng.html
下载libpng-1.6.24.tar.gz

:Cry :Cry :Cry :Cry :Cry :Cry :Cry
头像
vickycq
论坛版主
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
送出感谢: 100 次
接收感谢: 995 次
联系:

Re: 这是什么问题?编译安装advancemame-1.4

#4

帖子 vickycq » 2016-08-19 8:47

囗囗囗 写了:sudo apt-get install libsdl1.2-dev 出现依赖问题
下载SDL-1.2.15.tar.gz
方向路线错误。此处应集中解决依赖问题。出现依赖问题的原因:混源或其它不当操作,如“您要求某些软件包保持现状”
执行以下命令将结果全部复制贴上来

代码: 全选

cat /etc/os-release /etc/issue
cat /etc/apt/sources.list
cat /etc/apt/sources.list.d/*
cat /etc/apt/preferences
cat /etc/apt/preferences.d/*
apt-cache policy libcaca-dev
aptitude why-not libcaca-dev
囗囗囗 写了:对‘os_internal_sdl_title_get’未定义的引用
先安装所有依赖
囗囗囗 写了:no text video mode library found.
未安装 libcaca
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
头像
tor
帖子: 296
注册时间: 2009-01-18 23:26
送出感谢: 4 次
接收感谢: 0

Re: 这是什么问题?编译安装advancemame-1.4

#5

帖子 tor » 2016-08-19 18:12

cat /etc/os-release /etc/issue
NAME="Ubuntu"
VERSION="16.04 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
UBUNTU_CODENAME=xenial
Ubuntu 16.04 LTS \n \l


cat /etc/apt/sources.list
# added by the release upgrader
# deb cdrom:[Lubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420)]/ xenial main multiverse restricted universe
#

# deb cdrom:[Lubuntu 15.10 _Wily Werewolf_ - Release amd64 (20151021)]/ wily main multiverse restricted universe

# deb cdrom:[Lubuntu 15.10 _Wily Werewolf_ - Release amd64 (20151021)]/ wily main multiverse restricted universe

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://archive.ubuntu.com/ubuntu xenial main restricted
deb-src http://archive.ubuntu.com/ubuntu xenial main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://archive.ubuntu.com/ubuntu xenial-updates main restricted
deb-src http://archive.ubuntu.com/ubuntu xenial-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://archive.ubuntu.com/ubuntu xenial universe
deb-src http://archive.ubuntu.com/ubuntu xenial universe
deb http://archive.ubuntu.com/ubuntu xenial-updates universe
deb-src http://archive.ubuntu.com/ubuntu xenial-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://archive.ubuntu.com/ubuntu xenial multiverse
deb-src http://archive.ubuntu.com/ubuntu xenial multiverse
deb http://archive.ubuntu.com/ubuntu xenial-updates multiverse
deb-src http://archive.ubuntu.com/ubuntu xenial-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://archive.ubuntu.com/ubuntu xenial-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu xenial-backports main restricted universe multiverse

deb http://archive.ubuntu.com/ubuntu xenial-security main restricted
deb-src http://archive.ubuntu.com/ubuntu xenial-security main restricted
deb http://archive.ubuntu.com/ubuntu xenial-security universe
deb-src http://archive.ubuntu.com/ubuntu xenial-security universe
deb http://archive.ubuntu.com/ubuntu xenial-security multiverse
deb-src http://archive.ubuntu.com/ubuntu xenial-security multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu wily partner
# deb-src http://archive.canonical.com/ubuntu wily partner

# deb http://ppa.launchpad.net/gnome3-team/gnome3/ubuntu xenial-updates main restricted
# deb-src http://ppa.launchpad.net/gnome3-team/gnome3/ubuntu xenial-updates main restricted

##测试版源
deb http://archive.ubuntu.com/ubuntu xenial-proposed main restricted universe multiverse
# 源码
##测试版源
deb-src http://archive.ubuntu.com/ubuntu xenial-proposed main restricted universe multiverse




cat /etc/apt/sources.list.d/*
# deb http://ppa.launchpad.net/gnome3-team/gn ... ing/ubuntu xenial main
# deb-src http://ppa.launchpad.net/gnome3-team/gn ... ing/ubuntu xenial main
# deb http://ppa.launchpad.net/gnome3-team/gn ... ing/ubuntu xenial main
# deb-src http://ppa.launchpad.net/gnome3-team/gn ... ing/ubuntu xenial main
# deb http://ppa.launchpad.net/gnome3-team/gnome3/ubuntu xenial main
# deb-src http://ppa.launchpad.net/gnome3-team/gnome3/ubuntu xenial main
# deb http://ppa.launchpad.net/gnome3-team/gnome3/ubuntu xenial main
# deb-src http://ppa.launchpad.net/gnome3-team/gnome3/ubuntu xenial main
deb http://ppa.launchpad.net/oibaf/graphics-drivers/ubuntu xenial main
# deb-src http://ppa.launchpad.net/oibaf/graphics-drivers/ubuntu xenial main
deb http://ppa.launchpad.net/oibaf/graphics-drivers/ubuntu xenial main
# deb-src http://ppa.launchpad.net/oibaf/graphics-drivers/ubuntu xenial main
deb http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu xenial main
# deb-src http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu xenial main
deb http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu xenial main
# deb-src http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu xenial main
# deb http://ppa.launchpad.net/vascofalves/gn ... rts/ubuntu xenial main
# deb-src http://ppa.launchpad.net/vascofalves/gn ... rts/ubuntu xenial main
# deb http://ppa.launchpad.net/vascofalves/gn ... rts/ubuntu xenial main
# deb-src http://ppa.launchpad.net/vascofalves/gn ... rts/ubuntu xenial main
# deb http://ppa.launchpad.net/wine/wine-builds/ubuntu xenial main
# deb-src http://ppa.launchpad.net/wine/wine-builds/ubuntu xenial main
# deb http://ppa.launchpad.net/wine/wine-builds/ubuntu xenial main
# deb-src http://ppa.launchpad.net/wine/wine-builds/ubuntu xenial main



cat /etc/apt/preferences
cat: /etc/apt/preferences: 没有那个文件或目录
cat /etc/apt/preferences.d/*
cat: '/etc/apt/preferences.d/*': 没有那个文件或目录



apt-cache policy libcaca-dev
libcaca-dev:
已安装:(无)
候选: 0.99.beta19-2build2~gcc5.2
版本列表:
0.99.beta19-2build2~gcc5.2 500
500 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages



aptitude why-not libcaca-dev
未能找到理由以移除 libcaca-dev
头像
tor
帖子: 296
注册时间: 2009-01-18 23:26
送出感谢: 4 次
接收感谢: 0

Re: 这是什么问题?编译安装advancemame-1.4

#6

帖子 tor » 2016-08-19 18:16

sudo apt-get install libcaca-dev

下列软件包有未满足的依赖关系:
libcaca-dev : 依赖: libslang2-dev 但是它将不会被安装
E: 无法修正错误,因为您要求某些软件包保持现状,就是它们破坏了软件包间的依赖关系。
头像
tor
帖子: 296
注册时间: 2009-01-18 23:26
送出感谢: 4 次
接收感谢: 0

Re: 这是什么问题?编译安装advancemame-1.4

#7

帖子 tor » 2016-08-19 21:17

看不出有问题吗? :Smile
头像
astolia
论坛版主
帖子: 3202
注册时间: 2008-09-18 13:11
送出感谢: 1 次
接收感谢: 538 次

Re: 这是什么问题?编译安装advancemame-1.4

#8

帖子 astolia » 2016-08-19 21:41

sudo apt-get install libslang2-dev
你看看这个报什么错
头像
tor
帖子: 296
注册时间: 2009-01-18 23:26
送出感谢: 4 次
接收感谢: 0

Re: 这是什么问题?编译安装advancemame-1.4

#9

帖子 tor » 2016-08-19 22:59

astolia 写了:sudo apt-get install libslang2-dev
你看看这个报什么错
sudo apt-get install libslang2-dev

下列软件包有未满足的依赖关系:
libslang2-dev : 依赖: libpng-dev
E: 无法修正错误,因为您要求某些软件包保持现状,就是它们破坏了软件包间的依赖关系。
头像
vickycq
论坛版主
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
送出感谢: 100 次
接收感谢: 995 次
联系:

Re: 这是什么问题?编译安装advancemame-1.4

#10

帖子 vickycq » 2016-08-19 23:16

囗囗囗 写了:libslang2-dev : 依赖: libpng-dev
执行以下指令将结果全部复制贴上来

代码: 全选

sudo apt install libpng-dev
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
头像
tor
帖子: 296
注册时间: 2009-01-18 23:26
送出感谢: 4 次
接收感谢: 0

Re: 这是什么问题?编译安装advancemame-1.4

#11

帖子 tor » 2016-08-19 23:33

vickycq 写了:
囗囗囗 写了:libslang2-dev : 依赖: libpng-dev
执行以下指令将结果全部复制贴上来

代码: 全选

sudo apt install libpng-dev
sudo apt-get install libpng-dev
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
注意,选中 'libpng12-dev' 而非 'libpng-dev'
有一些软件包无法被安装。如果您用的是 unstable 发行版,这也许是
因为系统无法达到您要求的状态造成的。该版本中可能会有一些您需要的软件
包尚未被创建或是它们已被从新到(Incoming)目录移出。
下列信息可能会对解决问题有所帮助:

下列软件包有未满足的依赖关系:
libpng12-dev : 依赖: libpng12-0 (= 1.2.54-1ubuntu1) 但是 1.2.54-6ubuntu1~ubuntu16.04.1~ppa1 正要被安装
E: 无法修正错误,因为您要求某些软件包保持现状,就是它们破坏了软件包间的依赖关系。
头像
vickycq
论坛版主
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
送出感谢: 100 次
接收感谢: 995 次
联系:

Re: 这是什么问题?编译安装advancemame-1.4

#12

帖子 vickycq » 2016-08-19 23:48

囗囗囗 写了: libpng12-dev : 依赖: libpng12-0 (= 1.2.54-1ubuntu1) 但是 1.2.54-6ubuntu1~ubuntu16.04.1~ppa1 正要被安装。
执行以下命令将结果全部复制贴上来

代码: 全选

apt-cache policy libpng12-0
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
头像
tor
帖子: 296
注册时间: 2009-01-18 23:26
送出感谢: 4 次
接收感谢: 0

Re: 这是什么问题?编译安装advancemame-1.4

#13

帖子 tor » 2016-08-19 23:59

vickycq 写了:
囗囗囗 写了: libpng12-dev : 依赖: libpng12-0 (= 1.2.54-1ubuntu1) 但是 1.2.54-6ubuntu1~ubuntu16.04.1~ppa1 正要被安装。
执行以下命令将结果全部复制贴上来

代码: 全选

apt-cache policy libpng12-0

sudo apt-cache policy libpng12-0

libpng12-0:
已安装:1.2.54-6ubuntu1~ubuntu16.04.1~ppa1
候选: 1.2.54-6ubuntu1~ubuntu16.04.1~ppa1
版本列表:
*** 1.2.54-6ubuntu1~ubuntu16.04.1~ppa1 100
100 /var/lib/dpkg/status
1.2.54-1ubuntu1 500
500 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages
头像
astolia
论坛版主
帖子: 3202
注册时间: 2008-09-18 13:11
送出感谢: 1 次
接收感谢: 538 次

Re: 这是什么问题?编译安装advancemame-1.4

#14

帖子 astolia » 2016-08-20 0:03

导致问题的libpng12-0是由 https://launchpad.net/~vascofalves/+arc ... -backports 这个ppa提供的。但看你源列表中已经把这个源注释掉了,应该注释后没有 sudo apt update 更新过
头像
vickycq
论坛版主
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
送出感谢: 100 次
接收感谢: 995 次
联系:

Re: 这是什么问题?编译安装advancemame-1.4

#15

帖子 vickycq » 2016-08-20 0:05

尝试在楼上指示基础上执行以下指令

代码: 全选

sudo apt-get install --reinstall libpng12-0=1.2.54-1ubuntu1
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
回复

回到 “游戏和游戏模拟器”