编辑“︁
BuildStendhalOnUbuntu
”︁
跳转到导航
跳转到搜索
警告:
您没有登录。如果您进行任何编辑,您的IP地址会公开展示。如果您
登录
或
创建账号
,您的编辑会以您的用户名署名,此外还有其他益处。
反垃圾检查。
不要
加入这个!
Building Stendhal is very simple if you use ant and you satisfy the dependencies. == But first... are you sure that you don't want to use an IDE? == This guide is aimed at those who just want to play the latest version of the game before it is officially released. If you intend to do modifications to the game, it is recommended that you follow [[Configure a development environment (IDE)]] instead. ==Get the source Stendhal code == First of all, you need to get the Stendhal source code. There are two ways: * Download the source distribution at https://arianne-project.org/download/stendhal-src.tar.gz Use <code>tar xzf stendhal-''version''-src.tar.gz</code> to unpack it. * Alternatively you can clone the git repository to get the latest development version: <code>sudo apt-get install git</code> and <code>git clone <nowiki>https://github.com/arianne/stendhal.git</nowiki></code>. ==Requirements== These are the requirements needed to build Stendhal: * OpenJDK or Oracle JDK 1.7 ''or higher'' e.g.: sudo apt-get install openjdk-8-jdk * ant <br>http://ant.apache.org or e.g.: sudo apt-get install ant ant-optional: ==Building with ant== cd stendhal-''version'' ant clean && ant dist This will create the binaries you should be already familiar with, such as: ===Client files=== :build/stendhal-''version''.zip :build/stendhal-FULL-''version''.zip ===Server files=== :build/stendhal-server-''version''.zip ===Source files=== :build/stendhal-src-''version''.tar.gz == Building just the jar files == '''Note:''' If you are unsure, follow the instructions described in the previous section (ant dist) to get a working system with all the files in the correct directory structure. To only build the jar files, without putting them together inside a zip, you just write ant This will build a full set of JAR files at stendhal-''version''/build/lib folder: ===Client files=== :build/lib/stendhal-''version''.jar :build/lib/stendhal-data-''version''.jar :build/lib/stendhal-sound-data-''version''.jar ===Server files=== :build/lib/stendhal-server-''version''.jar :build/lib/stendhal-xmlconf-''version''.jar :build/lib/stendhal-maps-''version''.jar == Trouble shooting == If you have the message error: stendhal_source/build.xml:42: Could not create task or type of type: replaceregexp. For linux users this is corrected by installing the "ant-apache-regexp" package. If you use debian or another debian dist (like Ubuntu) this is included in the "ant-optional" package. == Finally == When you have successfully built Stendhal please read the install documentation. It is available on the Wiki at [[InstallingStendhal]]. In the future if you wish to just create the client and server jars (not zips and all release packages) then ant clean compile will suffice. Remember to "ant clean" before you "ant build" everytime - this is done automatically if you "ant dist", however. [[Category:Stendhal]]
摘要:
请注意,所有对gamedev的贡献均可能会被其他贡献者编辑、修改或删除。如果您不希望您的文字作品被随意编辑,请不要在此提交。
您同时也向我们承诺,您提交的内容为您自己所创作,或是复制自公共领域或类似自由来源(详情请见
Gamedev:著作权
)。
未经许可,请勿提交受著作权保护的作品!
取消
编辑帮助
(在新窗口中打开)
导航菜单
个人工具
未登录
讨论
贡献
创建账号
登录
命名空间
页面
讨论
不转换
不转换
简体
繁體
大陆简体
香港繁體
澳門繁體
大马简体
新加坡简体
臺灣正體
查看
阅读
编辑
查看历史
更多
搜索
导航
首页
最近更改
随机页面
MediaWiki帮助
工具
链入页面
相关更改
特殊页面
页面信息