当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 16 篇帖子 ]  前往页数 1, 2  下一页
作者 内容
1 楼 
 文章标题 : 求助,编译韦诺之战
帖子发表于 : 2013-02-06 10:26 
头像

注册: 2009-02-02 17:41
帖子: 277
送出感谢: 7
接收感谢: 0 次
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!


页首
 用户资料  
 
2 楼 
 文章标题 : Re: 求助,编译韦诺之战
帖子发表于 : 2013-02-06 10:57 
头像

注册: 2011-05-15 1:01
帖子: 301
系统: Debian GNU/Linux sid
送出感谢: 1
接收感谢: 17
也许是这个 libboost-iostreams-dev ? :em01



_________________
评价: 3.7% 20072312834
 
页首
 用户资料  
 
3 楼 
 文章标题 : Re: 求助,编译韦诺之战
帖子发表于 : 2013-02-06 10:57 

注册: 2010-02-25 11:02
帖子: 277
系统: Arch x64
送出感谢: 2
接收感谢: 14
boost库。



_________________
评价: 3.7% 20072312834
 
页首
 用户资料  
 
4 楼 
 文章标题 : Re: 求助,编译韦诺之战
帖子发表于 : 2013-02-06 11:20 
头像

注册: 2009-02-02 17:41
帖子: 277
送出感谢: 7
接收感谢: 0 次
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!


页首
 用户资料  
 
5 楼 
 文章标题 : Re: 求助,编译韦诺之战
帖子发表于 : 2013-02-06 11:49 
头像

注册: 2009-02-02 17:41
帖子: 277
送出感谢: 7
接收感谢: 0 次
继续摸索,得到一下结果,又卡住了!
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!


页首
 用户资料  
 
6 楼 
 文章标题 : Re: 求助,编译韦诺之战
帖子发表于 : 2013-02-06 12:26 
头像

注册: 2008-08-13 8:48
帖子: 26391
地址: 东海硇州,一双管钥。
系统: Fundu i64
送出感谢: 50
接收感谢: 344
编译依赖没装全得多得去了,apt-get build-dep 一步到位。


_________________
◎当我站在道德的高度上俯视别人的时候,发现自己是多么渺小。
♥执着但不偏激,反对而不排斥,坚决捍卫矛盾体的存在方式。
★★★天气预报★★★
fcitx-yatable一个可以使用的码表输入法
[教程]几个实例攻克软件编译难关
Gentoo Development Guide
字体相关



_________________
评价: 3.7% 20072312834
 
页首
 用户资料  
 
7 楼 
 文章标题 : Re: 求助,编译韦诺之战
帖子发表于 : 2013-02-06 12:32 
头像

注册: 2008-08-13 8:48
帖子: 26391
地址: 东海硇州,一双管钥。
系统: Fundu i64
送出感谢: 50
接收感谢: 344
http://forum.ubuntu.org.cn/viewtopic.php?t=400332
编译游戏的话,参考一下这篇文章吧,有些重要的步骤里面都提到了。 :em01 :em01 :em01


_________________
◎当我站在道德的高度上俯视别人的时候,发现自己是多么渺小。
♥执着但不偏激,反对而不排斥,坚决捍卫矛盾体的存在方式。
★★★天气预报★★★
fcitx-yatable一个可以使用的码表输入法
[教程]几个实例攻克软件编译难关
Gentoo Development Guide
字体相关


页首
 用户资料  
 
8 楼 
 文章标题 : Re: 求助,编译韦诺之战
帖子发表于 : 2013-02-06 13:07 
头像

注册: 2009-02-02 17:41
帖子: 277
送出感谢: 7
接收感谢: 0 次
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!


页首
 用户资料  
 
9 楼 
 文章标题 : Re: 求助,编译韦诺之战
帖子发表于 : 2013-02-06 13:35 
头像

注册: 2007-10-23 12:54
帖子: 1750
送出感谢: 3
接收感谢: 28
如上面所说,编译前准备编译依赖是必需的步骤,就是简单一句命令
代码:
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)

你说这么复杂的依赖关系人工怎么可能处理完善,必须按照正规的方式走自动化流程。



_________________
评价: 3.7% 20072312834
 
页首
 用户资料  
 
10 楼 
 文章标题 : Re: 求助,编译韦诺之战
帖子发表于 : 2013-02-06 13:43 
头像

注册: 2009-02-02 17:41
帖子: 277
送出感谢: 7
接收感谢: 0 次
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!


页首
 用户资料  
 
11 楼 
 文章标题 : Re: 求助,编译韦诺之战
帖子发表于 : 2013-02-06 16:54 

注册: 2010-02-25 11:02
帖子: 277
系统: Arch x64
送出感谢: 2
接收感谢: 14
20072312834, When using scons, a check can spuriously fail due to caching. If this happens, please use --config=force to force its rerun.



_________________
评价: 3.7% 20072312834
 
页首
 用户资料  
 
12 楼 
 文章标题 : Re: 求助,编译韦诺之战
帖子发表于 : 2013-02-06 18:47 
头像

注册: 2009-02-02 17:41
帖子: 277
送出感谢: 7
接收感谢: 0 次
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!


页首
 用户资料  
 
13 楼 
 文章标题 : Re: 求助,编译韦诺之战
帖子发表于 : 2013-02-06 21:06 

注册: 2010-02-25 11:02
帖子: 277
系统: Arch x64
送出感谢: 2
接收感谢: 14
喜欢新软件/编译的果断来Arch/Gentoo吧。


页首
 用户资料  
 
14 楼 
 文章标题 : Re: 求助,编译韦诺之战
帖子发表于 : 2013-02-06 22:40 
头像

注册: 2010-06-19 12:50
帖子: 193
系统: AIX、UBUNTU
送出感谢: 2
接收感谢: 5
要编译软件,为什么不看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在操作上很相似,现在知道该装什么了吧!



_________________
评价: 3.7% 20072312834
 
页首
 用户资料  
 
15 楼 
 文章标题 : 求助,编译韦诺之战
帖子发表于 : 2013-02-07 9:35 
头像

注册: 2009-02-02 17:41
帖子: 277
送出感谢: 7
接收感谢: 0 次
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!


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 16 篇帖子 ]  前往页数 1, 2  下一页

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 2 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译