您的位置:首页 > 运维架构 > 网站架构

收集的原创游戏个人网站

2017-03-28 21:11 281 查看

由于没有搞定这个错误

/usr/bin/ld: src/common/common.o: relocation R_X86_64_32S against `.data' can not be used when making a shared object; recompile with -fPIC

src/common/common.o: error adding symbols: Bad value

collect2: error: ld returned 1 exit status

make: *** [shared] Error 1

暂停该更新,好好学makefile.

现在已经是03:31,真是绝望之处找到希望。

需要在编译freetype配置时加上

./configure --enable-static=yes


后面那个选项。

但是还是没有编译过去。

接着又安装了一个libclaw库,我觉得没有耐心的话就不要做这些工作了吧,现在将近快天亮了。

从网上下的库:
https://sourceforge.net/projects/libclaw/
三步

cmake

make

sudo make install

按库就是这么任性。

可是还是缺少wxWidgets,已经是不让我睡的地步了,网速还这么慢。

wxwidgets的安装和下载已经在后一篇文章转过了。

Plee the Bear

http://stuff-o-matic.com/ptb/?lang=en

百度网盘链接
https://pan.baidu.com/s/1nvFfNDn
预安装sudo apt-get install libsdl2-mixer-dev

qt creator打开编译完成。

Andy's Super Great Park
http://www.stuff-o-matic.com/asgp/demo-download.php?lang=en
安装boost,前一篇文章有介绍

安装sdl

 sudo apt-get install libsdl1.2-dev

sudo apt-get install libsdl1.2-dbg

sudo apt-get install libsdl-mixer1.2-dev

安装clew

下载文件,百度网盘
https://pan.baidu.com/s/1qYjR8Ji
打开qt creator编译不成功,以后再说。

可惜

刺猬大作战

 sudo apt-get install hedgewars
http://www.hedgewars.org/download.html
今天再换一个游戏

打不死的小强
https://github.com/Secretchronicles/TSC/blob/devel/INSTALL.md
源码下载地址

编译

Installing from a released tarball

Extract the tarball, create a directory for the build and switch intoit:

$ tar -xvJf TSC-*.tar.xz
$ cd TSC-*/tsc
$ mkdir build
$ cd build

Execute
cmake
to configure and
make
to build and install TSC. Besure to replace
/opt/tsc
with the directory you want TSC to installinto.

$ cmake -DCMAKE_INSTALL_PREFIX=/opt/tsc ..
$ make
# make install

安装基本上都是用cmake,果然是好工具。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: