Trying to build minetest

3 posts / 0 new
Last post
#1 Fri, 2015-01-02 23:59
greencopper
  • greencopper's picture
  • Offline
  • Last seen: 1 year 2 months ago
  • Joined: 2014-12-15

I am trying to build minetest using source code:

http://minetest.net/download#source_code

The following dependencies are given for Debian:

  # apt-get install build-essential libirrlicht-dev cmake libbz2-dev libpng12-dev libjpeg8-dev libxxf86vm-dev libgl1-mesa-dev libsqlite3-dev libogg-dev libvorbis-dev libopenal-dev libcurl4-gnutls-dev libfreetype6-dev

So I have installed the following on Alpine:

  # apk add cmake irrlicht-dev libbz2 libpng-dev libjpeg-turbo-dev libxxf86vm-dev mesa-gl mesa-dev sqlite-dev libogg-dev libvorbis-dev openal-soft-dev gnutls-dev freetype-dev

Which I think are all the right ones. I don't know about libbz2 since there is no -dev package for that on Alpine Edge, which I am currently on.

I have fetched the source for Minetest using git clone, but when I run cmake I get the following:

$ cmake . -DRUN_IN_PLACE=1
CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_C_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_C_COMPILER
CMake Error: Could not find cmake module file: /home/martin/building/minetest/CMakeFiles/3.1.0/CMakeCCompiler.cmake
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_CXX_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_CXX_COMPILER
CMake Error: Could not find cmake module file: /home/martin/building/minetest/CMakeFiles/3.1.0/CMakeCXXCompiler.cmake
CMake Error at CMakeLists.txt:8 (project):
  No CMAKE_C_COMPILER could be found.
 
  Tell CMake where to find the compiler by setting the CMake cache entry
  CMAKE_C_COMPILER to the full path to the compiler, or to the compiler name
  if it is in the PATH.
 
CMake Error at CMakeLists.txt:8 (project):
  No CMAKE_CXX_COMPILER could be found.
 
  Tell CMake where to find the compiler by setting the CMake cache entry
  CMAKE_CXX_COMPILER to the full path to the compiler, or to the compiler
  name if it is in the PATH.
 
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!

What am I missing?

Thanks.

Sat, 2015-01-03 09:21
AmatCoder
  • AmatCoder's picture
  • Offline
  • Last seen: 1 year 4 months ago
  • Joined: 2013-10-18

You need to add build-base to those dependencies (and bzip2-dev instead of libbz2).

Sun, 2015-01-04 05:22 (Reply to #2)
greencopper
  • greencopper's picture
  • Offline
  • Last seen: 1 year 2 months ago
  • Joined: 2014-12-15

Thank you very very much! :)

Log in or register to post comments