求助,编译韦诺之战

编译安装或者制作Deb包
头像
20072312834
帖子: 277
注册时间: 2009-02-02 17:41
送出感谢: 7 次
接收感谢: 0

求助,编译韦诺之战

#1

帖子 20072312834 » 2013-02-06 10:26

scons: Reading SConscript files ...
Saved options: default_targets = 'wesnoth,wesnothd'
Building Wesnoth version 1.10.2
Checking for C header file poll.h... (cached) yes
Checking for C header file sys/poll.h... (cached) yes
Checking for C header file sys/select.h... (cached) yes
Checking for C header file sys/sendfile.h... (cached) yes
Checking for C function sendfile()... (cached) yes
Checking for C library m... (cached) yes
Checking for C function round()... (cached) yes
Checking whether C++ compiler works (g++ version >= 3.3 required)... (cached) yes
Checking for Gettext's libintl... (cached) libc built-in
Checking for Boost iostreams library version >= 1.34.1... (cached) no
Base prerequisites are not met.
Client prerequisites are not met. wesnoth, cutter and exploder cannot be built.
Unit tests are disabled because their prerequisites are not met.
If any config checks fail, look in build/config.log for details
If a check fails spuriously due to caching, use --config=force to force its rerun
NLS tools are not present...
NLS catalogue installation is disabled.
scons: done reading SConscript files.
scons: Building targets ...
error_action(["wesnoth"], [])
scons: *** [wesnoth] Target disabled because its prerequisites are not met
scons: building terminated because of errors.


看内容,应该是依赖问题,不过我apt不到,怎么办呢?
莫谈国事
ubuntu!
头像
royclark
帖子: 301
注册时间: 2011-05-15 1:01
系统: Debian GNU/Linux sid
送出感谢: 0
接收感谢: 14 次

Re: 求助,编译韦诺之战

#2

帖子 royclark » 2013-02-06 10:57

也许是这个 libboost-iostreams-dev ? :em01
这些用户感谢了作者 royclark 于这个帖子:
20072312834 (2013-02-06 11:03)
评价: 3.7%
xgdgsc
帖子: 277
注册时间: 2010-02-25 11:02
系统: Arch x64
送出感谢: 1 次
接收感谢: 13 次

Re: 求助,编译韦诺之战

#3

帖子 xgdgsc » 2013-02-06 10:57

boost库。
这些用户感谢了作者 xgdgsc 于这个帖子:
20072312834 (2013-02-06 11:03)
评价: 3.7%
头像
20072312834
帖子: 277
注册时间: 2009-02-02 17:41
送出感谢: 7 次
接收感谢: 0

Re: 求助,编译韦诺之战

#4

帖子 20072312834 » 2013-02-06 11:20

sudo apt-get install libboost-iostreams-dev

sudo apt-get install libsdl-dev

经提示,有顺利执行了上面两条命令,然后scons一下后,是如下输出,好吧,又不认识了。

scons: Reading SConscript files ...
Saved options: default_targets = 'wesnoth,wesnothd'
Building Wesnoth version 1.10.2
Checking for C header file poll.h... (cached) yes
Checking for C header file sys/poll.h... (cached) yes
Checking for C header file sys/select.h... (cached) yes
Checking for C header file sys/sendfile.h... (cached) yes
Checking for C function sendfile()... (cached) yes
Checking for C library m... (cached) yes
Checking for C function round()... (cached) yes
Checking whether C++ compiler works (g++ version >= 3.3 required)... (cached) yes
Checking for Gettext's libintl... (cached) libc built-in
Checking for Boost iostreams library version >= 1.34.1... (cached) yes
Checking for gzip support in Boost Iostreams... (cached) yes
Checking for Boost smart_ptr library... (cached) yes
Checking for Simple DirectMedia Layer library version >= 1.2.7... yes
Checking for SDL_net library... no
Base prerequisites are not met.
Client prerequisites are not met. wesnoth, cutter and exploder cannot be built.
Unit tests are disabled because their prerequisites are not met.
If any config checks fail, look in build/config.log for details
If a check fails spuriously due to caching, use --config=force to force its rerun
NLS tools are not present...
NLS catalogue installation is disabled.
scons: done reading SConscript files.
scons: Building targets ...
error_action(["wesnoth"], [])
scons: *** [wesnoth] Target disabled because its prerequisites are not met
scons: building terminated because of errors.

请赐教 :em06
莫谈国事
ubuntu!
头像
20072312834
帖子: 277
注册时间: 2009-02-02 17:41
送出感谢: 7 次
接收感谢: 0

Re: 求助,编译韦诺之战

#5

帖子 20072312834 » 2013-02-06 11:49

继续摸索,得到一下结果,又卡住了!
scons: Reading SConscript files ...
Saved options: default_targets = 'wesnoth,wesnothd'
Building Wesnoth version 1.10.2
Checking for C header file poll.h... (cached) yes
Checking for C header file sys/poll.h... (cached) yes
Checking for C header file sys/select.h... (cached) yes
Checking for C header file sys/sendfile.h... (cached) yes
Checking for C function sendfile()... (cached) yes
Checking for C library m... (cached) yes
Checking for C function round()... (cached) yes
Checking whether C++ compiler works (g++ version >= 3.3 required)... (cached) yes
Checking for Gettext's libintl... (cached) libc built-in
Checking for Boost iostreams library version >= 1.34.1... (cached) yes
Checking for gzip support in Boost Iostreams... (cached) yes
Checking for Boost smart_ptr library... (cached) yes
Checking for Simple DirectMedia Layer library version >= 1.2.7... (cached) yes
Checking for SDL_net library... (cached) yes
Checking for Boost system library... (cached) yes
Checking for Boost thread library... yes
Checking for Boost asio library... yes
Package pangocairo was not found in the pkg-config search path.
Perhaps you should add the directory containing `pangocairo.pc'
to the PKG_CONFIG_PATH environment variable
No package 'pangocairo' found
Checking for Pango with cairo backend... (cached) no
Client prerequisites are not met. wesnoth, cutter and exploder cannot be built.
Unit tests are disabled because their prerequisites are not met.
If any config checks fail, look in build/config.log for details
If a check fails spuriously due to caching, use --config=force to force its rerun
NLS tools are not present...
NLS catalogue installation is disabled.
scons: done reading SConscript files.
scons: Building targets ...
error_action(["wesnoth"], [])
scons: *** [wesnoth] Target disabled because its prerequisites are not met
scons: building terminated because of errors.
莫谈国事
ubuntu!
头像
YeLee
论坛版主
帖子: 26408
注册时间: 2008-08-13 8:48
系统: Fundu i64
来自: 东海硇州,一双管钥。
送出感谢: 25 次
接收感谢: 307 次
联系:

Re: 求助,编译韦诺之战

#6

帖子 YeLee » 2013-02-06 12:26

编译依赖没装全得多得去了,apt-get build-dep 一步到位。
这些用户感谢了作者 YeLee 于这个帖子:
20072312834 (2013-02-06 13:07)
评价: 3.7%
◎当我站在道德的高度上俯视别人的时候,发现自己是多么渺小。
♥执着但不偏激,反对而不排斥,坚决捍卫矛盾体的存在方式。
★★★天气预报★★★
fcitx-yatable一个可以使用的码表输入法
[教程]几个实例攻克软件编译难关
Gentoo Development Guide
字体相关
头像
YeLee
论坛版主
帖子: 26408
注册时间: 2008-08-13 8:48
系统: Fundu i64
来自: 东海硇州,一双管钥。
送出感谢: 25 次
接收感谢: 307 次
联系:

Re: 求助,编译韦诺之战

#7

帖子 YeLee » 2013-02-06 12:32

viewtopic.php?t=400332
编译游戏的话,参考一下这篇文章吧,有些重要的步骤里面都提到了。 :em01 :em01 :em01
◎当我站在道德的高度上俯视别人的时候,发现自己是多么渺小。
♥执着但不偏激,反对而不排斥,坚决捍卫矛盾体的存在方式。
★★★天气预报★★★
fcitx-yatable一个可以使用的码表输入法
[教程]几个实例攻克软件编译难关
Gentoo Development Guide
字体相关
头像
20072312834
帖子: 277
注册时间: 2009-02-02 17:41
送出感谢: 7 次
接收感谢: 0

Re: 求助,编译韦诺之战

#8

帖子 20072312834 » 2013-02-06 13:07

Checking for Pango with cairo backend... (cached) yes
Checking for fontconfig... (cached) yes
Checking for Boost program_options library version >= 1.35.0... (cached) yes
Checking for Boost regex library version >= 1.35.0... (cached) yes
Checking for SDL_ttf library version >= 2.0.8... (cached) yes
Checking for SDL_mixer library version >= 1.2.0... (cached) yes
Checking for SDL_image library version >= 1.2.0... (cached) yes
Checking for Ogg Vorbis support in SDL... (cached) no
Client prerequisites are not met. wesnoth, cutter and exploder cannot be built.
Unit tests are disabled because their prerequisites are not met.
If any config checks fail, look in build/config.log for details
If a check fails spuriously due to caching, use --config=force to force its rerun
scons: done reading SConscript files.
scons: Building targets ...
error_action(["wesnoth"], [])
scons: *** [wesnoth] Target disabled because its prerequisites are not met
scons: building terminated because of errors.

疯了疯了
莫谈国事
ubuntu!
头像
AutoXBC
帖子: 1750
注册时间: 2007-10-23 12:54
送出感谢: 2 次
接收感谢: 24 次

Re: 求助,编译韦诺之战

#9

帖子 AutoXBC » 2013-02-06 13:35

如上面所说,编译前准备编译依赖是必需的步骤,就是简单一句命令

代码: 全选

sudo apt-get build-dep wesnoth
然后全部的依赖都会装好,不需要用户自己纠缠细节。

这个 build-dep 的原理是 ubuntu 的开发者早就把编译一个软件的依赖写到了配置文件中,就是这个文件
http://archive.ubuntu.com/ubuntu/pool/u ... 10.4-1.dsc

代码: 全选

Build-Depends: debhelper (>= 7), libsdl-image1.2-dev, libfreetype6-dev, libsdl-mixer1.2-dev, libsdl-net1.2-dev, libfribidi-dev, libsdl1.2-dev, libsdl-ttf2.0-dev (>= 2.0.8), python-support, libdbus-1-dev, libboost-iostreams-dev, libboost-test-dev, libboost-regex-dev, libboost-serialization-dev, libboost-system-dev, libboost-thread-dev, libboost-program-options-dev, libpango1.0-dev, cmake (>= 2.6)
你说这么复杂的依赖关系人工怎么可能处理完善,必须按照正规的方式走自动化流程。
这些用户感谢了作者 AutoXBC 于这个帖子:
20072312834 (2013-02-06 13:47)
评价: 3.7%
头像
20072312834
帖子: 277
注册时间: 2009-02-02 17:41
送出感谢: 7 次
接收感谢: 0

Re: 求助,编译韦诺之战

#10

帖子 20072312834 » 2013-02-06 13:43

AutoXBC 写了:如上面所说,编译前准备编译依赖是必需的步骤,就是简单一句命令

代码: 全选

sudo apt-get build-dep wesnoth
然后全部的依赖都会装好,不需要用户自己纠缠细节。

这个 build-dep 的原理是 ubuntu 的开发者早就把编译一个软件的依赖写到了配置文件中,就是这个文件
http://archive.ubuntu.com/ubuntu/pool/u ... 10.4-1.dsc

代码: 全选

Build-Depends: debhelper (>= 7), libsdl-image1.2-dev, libfreetype6-dev, libsdl-mixer1.2-dev, libsdl-net1.2-dev, libfribidi-dev, libsdl1.2-dev, libsdl-ttf2.0-dev (>= 2.0.8), python-support, libdbus-1-dev, libboost-iostreams-dev, libboost-test-dev, libboost-regex-dev, libboost-serialization-dev, libboost-system-dev, libboost-thread-dev, libboost-program-options-dev, libpango1.0-dev, cmake (>= 2.6)
你说这么复杂的依赖关系人工怎么可能处理完善,必须按照正规的方式走自动化流程。
事情远远比你讲述的要复杂,首先,我已经执行了这条命令了。但是正如上面的贴图,依然报错。安装指南里有这样两行:libsdl-image >= 1.2 (with png support)
libsdl-mixer >= 1.2 (with Vorbis support)
莫谈国事
ubuntu!
xgdgsc
帖子: 277
注册时间: 2010-02-25 11:02
系统: Arch x64
送出感谢: 1 次
接收感谢: 13 次

Re: 求助,编译韦诺之战

#11

帖子 xgdgsc » 2013-02-06 16:54

20072312834, When using scons, a check can spuriously fail due to caching. If this happens, please use --config=force to force its rerun.
这些用户感谢了作者 xgdgsc 于这个帖子:
20072312834 (2013-02-06 18:45)
评价: 3.7%
头像
20072312834
帖子: 277
注册时间: 2009-02-02 17:41
送出感谢: 7 次
接收感谢: 0

Re: 求助,编译韦诺之战

#12

帖子 20072312834 » 2013-02-06 18:47

xgdgsc 写了:20072312834, When using scons, a check can spuriously fail due to caching. If this happens, please use --config=force to force its rerun.
感谢,但是英语不是很懂,另外,我最终放弃了,执行了一下sudo apt-get install wesnoth,直接用源里的打好的包了。话说真是逆天反人类啊。 :em20
莫谈国事
ubuntu!
xgdgsc
帖子: 277
注册时间: 2010-02-25 11:02
系统: Arch x64
送出感谢: 1 次
接收感谢: 13 次

Re: 求助,编译韦诺之战

#13

帖子 xgdgsc » 2013-02-06 21:06

喜欢新软件/编译的果断来Arch/Gentoo吧。
头像
code vampire
帖子: 193
注册时间: 2010-06-19 12:50
系统: AIX、UBUNTU
送出感谢: 1 次
接收感谢: 4 次
联系:

Re: 求助,编译韦诺之战

#14

帖子 code vampire » 2013-02-06 22:40

要编译软件,为什么不看Readme,或者INSTALL文件,其中详细描述了需要的依赖环境,如你这般编译,岂不是每一个依赖都要停下来问吗?

boost_iostreams >= 1.36.0
boost_regex >= 1.36.0
boost_serialization >= 1.36.0
boost_asio >= 1.36.0
boost_program_options >= 1.36.0
boost_system >= 1.36.0
boost_thread >= 1.36.0
libfontconfig >= 2.4.1
libpango (with cairo backend) >= 1.14.8
libsdl >= 1.2.7
libsdl-image >= 1.2 (with png support)
libsdl-mixer >= 1.2 (with Vorbis support)
libsdl-net
libsdl-ttf >= 2.0.8
libz

scon同make在操作上很相似,现在知道该装什么了吧!
这些用户感谢了作者 code vampire 于这个帖子:
20072312834 (2013-02-07 9:35)
评价: 3.7%
头像
20072312834
帖子: 277
注册时间: 2009-02-02 17:41
送出感谢: 7 次
接收感谢: 0

求助,编译韦诺之战

#15

帖子 20072312834 » 2013-02-07 9:35

code vampire 写了:要编译软件,为什么不看Readme,或者INSTALL文件,其中详细描述了需要的依赖环境,如你这般编译,岂不是每一个依赖都要停下来问吗?

boost_iostreams >= 1.36.0
boost_regex >= 1.36.0
boost_serialization >= 1.36.0
boost_asio >= 1.36.0
boost_program_options >= 1.36.0
boost_system >= 1.36.0
boost_thread >= 1.36.0
libfontconfig >= 2.4.1
libpango (with cairo backend) >= 1.14.8
libsdl >= 1.2.7
libsdl-image >= 1.2 (with png support)
libsdl-mixer >= 1.2 (with Vorbis support)
libsdl-net
libsdl-ttf >= 2.0.8
libz

scon同make在操作上很相似,现在知道该装什么了吧!
我只能说理论和现实的差距很大,我第一个看的就是这个文档!但你应该也知道,这些东西首先不叫这个名字,apt不到。其次,看到看到括号里的东西了么?这才是我最终崩溃的原因。


Sent from my Ubuntu Phone using Tapatalk 2
莫谈国事
ubuntu!
回复

回到 “编译或打包”