怎么安装需要make的软件
Tofloor
poster avatar
china9494520
deepin
2019-07-24 00:32
Author
从官网下载了一个mame2.0的版本(应用商店里面是1.85的,需要升级到最新版本),从网站上下载的文件解压后出现的有makefile文件,执行make后,出现了以下提示,这个算是编译成功了吗?
compilation terminated.
bgfx.make:466: recipe for target '../../../../linux_gcc/obj/x64/Release/3rdparty/bgfx/src/glcontext_egl.o' failed
make[2]: *** [../../../../linux_gcc/obj/x64/Release/3rdparty/bgfx/src/glcontext_egl.o] Error 1
Makefile:73: recipe for target 'bgfx' failed
make[1]: *** [bgfx] Error 2
makefile:1292: recipe for target 'linux_x64' failed
make: *** [linux_x64] Error 2


下一步应该怎么安装?

如果把解压后的文件直接复制粘贴到原有的目录里面,是否能升级呢?
Reply Favorite View the author
All Replies
avatar
china9494520
deepin
2019-07-24 00:32
#1
上图是解压后的文件截图
Reply View the author
avatar
crazy0rat
deepin
2019-07-24 00:50
#2
首先,你这编译没有成功。
第二、覆盖原文件,不能升级,且会导致运行错误。

如何升级,可以参考一下unbuntu下如何安装。我对centos还能说一些,深度刚开始使用,能帮你的不多。
Reply View the author
avatar
走钢丝
deepin
2019-07-24 00:59
#3
一般 readme.md 里面会有安装说明。
Reply View the author
avatar
sinx
deepin
2019-07-24 01:38
#4
看下readme.md,可能要安装一些编译依赖库
Reply View the author
avatar
superendermansm
deepin
2019-07-24 01:41
#5
sinx 发表于 2019-7-23 17:38
看下readme.md,可能要安装一些编译依赖库

那就装呗。。。。。。
Reply View the author
avatar
sinx
deepin
2019-07-24 01:42
#6
superendermansm 发表于 2019-7-23 17:41
那就装呗。。。。。。

我不是楼主。。
Reply View the author
avatar
魔法师
deepin
2019-07-24 02:46
#7
就像.net 3.5一样,需要安装库文件的,当然不管静态库.a动态库.so。不过你那报错是没有生成好目标.o,原因可能没有依赖
Reply View the author
avatar
HarryZhao
deepin
2019-07-24 04:14
#8
建议先读下readme.md文件(或者install.md?总之有些说明文件)
Reply View the author
avatar
successfully
deepin
2019-07-24 17:08
#9
你这种情况属于源码安装,第一步需要编译,编译通过的条件是该源码包依赖的所有包都满足条件。第二部是安装,安装就是将编译好的可执行文件添加到环境变量里面。
make的时候报错很大可能是依赖不满足。
直接覆盖是不能升级的,因为你解压出来的是源码,系统不认识。
解决方法两个:一个是你自己看看readme.md文件中的构建依赖,然后在本地安装后再编译。另一个就是找已经打包好的二进制包安装,推荐去ubuntu哪里找找。
Reply View the author
avatar
china9494520
deepin
2019-07-24 20:09
#10
自带的readme文件我是真心看不懂啊,我发了readme的一个截图,希望大神们帮助看一下需要怎么安装。
第1次编译的时候提示我需要安装g++我已经安装过了,执行make后提示正在编译一些文件,到最后结束的时候又给出了以下提示:
compilation terminated.
bgfx.make:466: recipe for target '../../../../linux_gcc/obj/x64/Release/3rdparty/bgfx/src/glcontext_egl.o' failed
make[2]: *** [../../../../linux_gcc/obj/x64/Release/3rdparty/bgfx/src/glcontext_egl.o] Error 1
Makefile:73: recipe for target 'bgfx' failed
make[1]: *** [bgfx] Error 2
makefile:1292: recipe for target 'linux_x64' failed
make: *** [linux_x64] Error 2



这个算是编译成功了吗?是不是还少装了一软件?
Reply View the author
avatar
sinx
deepin
2019-07-25 03:14
#11
送佛送到西,我帮你看了下步骤

https://github.com/mamedev/mame
这个是github上这个项目的readme.md
然后根据里面说的那句
See the Compiling MAME page on our documentation site for more information, including prerequisites for Mac OS X and popular Linux distributions.

找到https://docs.mamedev.org/initial ... -and-odroid-devices

Debian and Ubuntu (including Raspberry Pi and ODROID devices)
You’ll need a few prerequisites from your distro. Make sure you get SDL2 2.0.3 or 2.0.4 as earlier versions are buggy.

sudo apt-get install git build-essential python libsdl2-dev libsdl2-ttf-dev libfontconfig-dev qt5-default

Compilation is exactly as described above in All Platforms.

这英文的意思就是说先执行一些准备
sudo apt-get install git build-essential python libsdl2-dev libsdl2-ttf-dev libfontconfig-dev qt5-default
再执行
make

Reply View the author
avatar
china9494520
deepin
2019-07-25 19:21
#12
执行sudo apt-get install git build-essential python libsdl2-dev libsdl2-ttf-dev libfontconfig-dev qt5-default后给出以下提示:
E: 无法下载 http://packages.deepin.com/deepin/pool/main/w/wayland/libwayland-bin_1.16.0-1~bpo9+1_amd64.deb  Redirection loop encountered
E: 有几个软件包无法下载,要不运行 apt-get update 或者加上 --fix-missing 的选项再试试?


我又执行了sudo apt-get install git build-essential python libsdl2-dev libsdl2-ttf-dev libfontconfig-dev qt5-default --fix-missing
然后执行了make
给出以下提示:
compilation terminated.
qtdbg_sdl.make:394: recipe for target '../../../../linux_gcc/obj/x64/Release/qtdbg_sdl/src/osd/modules/debugger/debugqt.o' failed
make[2]: *** [../../../../linux_gcc/obj/x64/Release/qtdbg_sdl/src/osd/modules/debugger/debugqt.o] Error 1
Makefile:16: recipe for target 'qtdbg_sdl' failed
make[1]: *** [qtdbg_sdl] Error 2
makefile:1292: recipe for target 'linux_x64' failed
make: *** [linux_x64] Error 2


这是不是还是没有编译成功?成功以后是不是会出现install文件?
Reply View the author
avatar
何来
deepin
2019-07-26 08:49
#13
依赖没有安装好
Reply View the author
avatar
china9494520
deepin
2019-07-27 01:18
#14
https://bbs.deepin.org/post/181052
送佛送到西,我帮你看了下步骤

https://github.com/mamedev/mame

我又换了一个版本,这次make完了,下一步应试怎么操作?没有产生install文件
Reply View the author
avatar
china9494520
deepin
2019-07-27 02:22
#15
make后产生了一个新文件,但是不知道怎么安装,哪个大神指导一下啊!
Reply View the author
avatar
走钢丝
deepin
2019-07-27 02:37
#16
https://bbs.deepin.org/post/181052
make后产生了一个新文件,但是不知道怎么安装,哪个大神指导一下啊!

还得你自己看,https://docs.mamedev.org/usingmame/usingmame.html
Reply View the author