分享我的生活
分享能使人快乐

hedgewars cmake errors

下载一个游戏,本来是有deb包的,可是deb包不一定能适合现在使用的系统,所以果断的选择代码包,自己编译。
  在催悲的网速下,下载完了代码包,却毅然发现他是qt的,死啦死啦地,我还有安装qt,呜呜
  下载的这个催悲的游戏叫做 Hedgewars中文名叫 刺猬大作战或者刺猬战争,是和百战天虫相似的游戏(我没玩过百战天虫^_^),结果编译的时候发现,少很多东东阿,出了以下的错误

root@rublog-desktop:/home/rublog/下载/hedgewars-src-0.9.14.1# cmake .
— The C compiler identification is GNU
— The CXX compiler identification is GNU
— Check for working C compiler: /usr/bin/gcc
— Check for working C compiler: /usr/bin/gcc — works
— Detecting C compiler ABI info
— Detecting C compiler ABI info – done
— Check for working CXX compiler: /usr/bin/c++
— Check for working CXX compiler: /usr/bin/c++ — works
— Detecting CXX compiler ABI info
— Detecting CXX compiler ABI info – done
— Building Release
— Looking for include files CMAKE_HAVE_PTHREAD_H
— Looking for include files CMAKE_HAVE_PTHREAD_H – found
— Looking for pthread_create in pthreads
— Looking for pthread_create in pthreads – not found
— Looking for pthread_create in pthread
— Looking for pthread_create in pthread – found
— Found Threads: TRUE
CMake Error at cmake_modules/FindLua.cmake:14 (MESSAGE):
  Couldn’t find Lua 5.1 library!
Call Stack (most recent call first):
  hedgewars/CMakeLists.txt:6 (find_package)

— Configuring incomplete, errors occurred!
root@rublog-desktop:/home/rublog/下载/hedgewars-src-0.9.14.1# cmake .
— Building Release
CMake Error at cmake_modules/FindLua.cmake:14 (MESSAGE):
  Couldn’t find Lua 5.1 library!
Call Stack (most recent call first):
  hedgewars/CMakeLists.txt:6 (find_package)

— Configuring incomplete, errors occurred!

 sudo apt-get install liblua5.1-0-dev 解决问题

root@rublog-desktop:/home/rublog/下载/hedgewars-src-0.9.14.1# cmake .– Building Release
CMake Error at hedgewars/CMakeLists.txt:138 (message):
  No Pascal compiler found!

— Configuring incomplete, errors occurred!

 apt-get install fp-compiler 解决

— Building Release
— Freepascal version detected: 2.4
CMake Error at /usr/share/cmake-2.8/Modules/FindQt4.cmake:1726 (MESSAGE):
  Qt qmake not found!
Call Stack (most recent call first):
  QTfrontend/CMakeLists.txt:12 (find_package)

 apt-get install qt4-qmake解决

最后发现,原来ubuntu的wiki中有怎么弄编译环境,而且你可以再新立德中搜索hedgewars,会有安装包的,呜呜

所有编译包

apt-get install cmake qt4-qmake libqt4-dev libsdl1.2-dev libsdl-net1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libsdl-ttf2.0-dev liblua5.1-dev fpc

需要下载43M多,占用200M的空间

截个图吧

赞(0)
未经允许不得转载:RUBLOG-分享我的生活 » hedgewars cmake errors

我想说 11

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
  1. #-49

    玩个游戏也不容易
    你评论这个地方留下的名字怎么是七七?

    学夫子9年前 (2010-11-30)Reply
  2. #-48

    怎么是七七?在哪儿?你那儿?

    xinyu2ru9年前 (2010-11-30)Reply
  3. #-47

    @学夫子

    哪儿是七七?没明白哎

    xinyu2ru9年前 (2010-11-30)Reply
  4. #-46

    我没 水,绝对 没

    魑魅9年前 (2010-11-30)Reply
  5. #-45

    我说我是来水的……

    不色9年前 (2010-12-01)Reply
  6. #-44

    玩游戏不但花钱还有花好多经精力

    个人简历9年前 (2010-12-01)Reply
  7. #-43

    @不色

    插件直接把你这条回复拉到垃圾评论

    xinyu2ru9年前 (2010-12-01)Reply
  8. #-42

    @个人简历

    有些时候必须需要游戏

    xinyu2ru9年前 (2010-12-01)Reply
  9. #-41

    百战天虫的确是非常经典,非常好玩!2D版是最经典,3D版玩起来不怎么爽,不过还可以

    villen9年前 (2010-12-03)Reply
  10. #-40

    @villen

    xinyu2ru9年前 (2010-12-05)Reply
  11. #-39

    @villen
    呵呵

    xinyu2ru9年前 (2010-12-05)Reply