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的空间

截个图吧

版权声明:
作者:xinyu2ru
链接:https://www.rxx0.com/software/ubuntu/hedgewars-cmake-errors.html
来源:RUBLOG-分享我的生活
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
< <上一篇
下一篇>>