Cannot compile game in Ubuntu 12.04 LTS.

thorvald
New member
 
Posts: 3
Joined: Mon Nov 16, 2015 04:29

Cannot compile game in Ubuntu 12.04 LTS.

by thorvald » Mon Nov 23, 2015 00:53

My Linux version is

Linux computer 3.8.0-44-generic #66~precise1-Ubuntu SMP Tue Jul 15 04:01:04 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

The problem is that I cannot compile the game following the instructions from here http://dev.minetest.net/Compiling_Minetest

My first output was this:

$ cmake . -DENABLE_GETTEXT=1 -DENABLE_FREETYPE=1 -DENABLE_LEVELDB=1 -DENABLE_REDIS=1
-- 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
-- *** Will build version 0.4.13-dev ***
-- Found Irrlicht: /usr/lib/libIrrlicht.so
-- Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR)
CMake Warning at src/CMakeLists.txt:51 (message):
cURL is required to load the server list


-- Found GetText: /usr/include
-- GetText enabled; locales found: pt_BR;lt;eo;zh_CN;pt;pl;ky;uk;ja;hu;tr;it;he;es;cs;et;id;ro;ko;zh_TW;be;jbo;nl;fr;ca;ru;nb;da;de
-- Found OpenAL: /usr/lib/x86_64-linux-gnu/libopenal.so
-- Could NOT find VORBIS (missing: OGG_INCLUDE_DIR VORBIS_INCLUDE_DIR OGG_LIBRARY VORBIS_LIBRARY VORBISFILE_LIBRARY)
-- Sound enabled, but Vorbis libraries not found!
CMake Error at src/CMakeLists.txt:98 (message):
Sound enabled, but cannot be used.

To continue, either fill in the required paths or disable sound.
(-DENABLE_SOUND=0)


-- Configuring incomplete, errors occurred!

------------------------------------

I know vorbis is there, because I have ogg123. I any case, I tried to set the option given and the result was:

~/minetest$ cmake . -DENABLE_GETTEXT=1 -DENABLE_FREETYPE=1 -DENABLE_LEVELDB=1 -DENABLE_REDIS=1 -DENABLE_SOUND=0
-- *** Will build version 0.4.13-dev ***
-- Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR)
CMake Warning at src/CMakeLists.txt:51 (message):
cURL is required to load the server list


-- GetText enabled; locales found: pt_BR;lt;eo;zh_CN;pt;pl;ky;uk;ja;hu;tr;it;he;es;cs;et;id;ro;ko;zh_TW;be;jbo;nl;fr;ca;ru;nb;da;de
-- Could NOT find Freetype (missing: FREETYPE_LIBRARY FREETYPE_INCLUDE_DIRS)
-- LuaJIT not found, using bundled Lua.
-- Using GMP provided by system.
-- Found GMP: /usr/lib/x86_64-linux-gnu/libgmp.so
-- Found Curses: /usr/lib/x86_64-linux-gnu/libcurses.so
-- ncurses console enabled.
-- LevelDB not found!
-- Redis not found!
-- Found SQLite3: /usr/lib/x86_64-linux-gnu/libsqlite3.so
-- Using bundled JSONCPP library.
-- SpatialIndex not found!
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/x86_64-linux-gnu/libX11.so
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libGL.so
-- Found JPEG: /usr/lib/x86_64-linux-gnu/libjpeg.so
-- Found BZip2: /usr/lib/x86_64-linux-gnu/libbz2.so
-- Looking for BZ2_bzCompressInit in /usr/lib/x86_64-linux-gnu/libbz2.so
-- Looking for BZ2_bzCompressInit in /usr/lib/x86_64-linux-gnu/libbz2.so - found
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.3.4")
-- Found PNG: /usr/lib/x86_64-linux-gnu/libpng.so
-- Looking for include files HAVE_ENDIAN_H
-- Looking for include files HAVE_ENDIAN_H - found
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- Configuring done
-- Generating done
-- Build files have been written to: /home/usr/minetest

-------
And at this point I got stuck in the compiling step.
 

User avatar
TenPlus1
Member
 
Posts: 1874
Joined: Mon Jul 29, 2013 13:38
GitHub: tenplus1

Re: Cannot compile game in Ubuntu 12.04 LTS.

by TenPlus1 » Mon Nov 23, 2015 10:04

Ubuntu 12.04 is seriously out of date and no longer supported, try updating to Ubuntu 14.04 LTS.
 

Hybrid Dog
Member
 
Posts: 2460
Joined: Thu Nov 01, 2012 12:46

Re: Cannot compile game in Ubuntu 12.04 LTS.

by Hybrid Dog » Mon Nov 23, 2015 17:26

If you have the minetest ppa, try
$ sudo apt-get build-dep minetest

if it doesn't work, executing following may help
$ sudo apt-get install curl libcurl3 libcurl3-gnutls libvorbis0a libvorbisfile3

When you installed the packages suggested at the wiki, it didn't abort and complain that one of them wasn't found, did it?
 

thorvald
New member
 
Posts: 3
Joined: Mon Nov 16, 2015 04:29

Re: Cannot compile game in Ubuntu 12.04 LTS.

by thorvald » Tue Nov 24, 2015 02:42

Reading package lists... Done
Building dependency tree
Reading state information... Done
libvorbis0a is already the newest version.
libvorbis0a set to manually installed.
libvorbisfile3 is already the newest version.
libvorbisfile3 set to manually installed.
curl is already the newest version.
libcurl3 is already the newest version.
libcurl3 set to manually installed.
libcurl3-gnutls is already the newest version.
libcurl3-gnutls set to manually installed.
The following packages were automatically installed and are no longer required:
calligra-l10n-engb dkms language-pack-kde-en kde-l10n-engb language-pack-kde-en-base
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 201 not upgraded.

------
It seems all in order
 

User avatar
everamzah
Member
 
Posts: 490
Joined: Thu Jan 29, 2015 00:47
GitHub: everamzah
IRC: everamzah
In-game: everamzah

Re: Cannot compile game in Ubuntu 12.04 LTS.

by everamzah » Tue Nov 24, 2015 08:53

You're going to need the -dev packages if you want to compile the thing. Or does Ubuntu not use separate packages for headers? Typically libcurl3-gnutls will have the libs available for compiled binaries that link against them, but you'd need libcurl3-gnutls-dev in order to source compile.
 

User avatar
PilzAdam
Member
 
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam

Re: Cannot compile game in Ubuntu 12.04 LTS.

by PilzAdam » Tue Nov 24, 2015 11:05

TenPlus1 wrote:Ubuntu 12.04 is seriously out of date and no longer supported, try updating to Ubuntu 14.04 LTS.

I use Ubuntu 12.04, so it is supported.

Also it is not out-of-date, it's an LTS version and supported until 2017.
 

User avatar
TenPlus1
Member
 
Posts: 1874
Joined: Mon Jul 29, 2013 13:38
GitHub: tenplus1

Re: Cannot compile game in Ubuntu 12.04 LTS.

by TenPlus1 » Tue Nov 24, 2015 11:22

My bad, thought it was 3 year support for the earlier 'buntu :)
 

Hybrid Dog
Member
 
Posts: 2460
Joined: Thu Nov 01, 2012 12:46

Re: Cannot compile game in Ubuntu 12.04 LTS.

by Hybrid Dog » Tue Nov 24, 2015 16:56

thorvald, maybe it works after removing CMakeCache.txt and executing "make clean"
 

est31
Member
 
Posts: 172
Joined: Mon Dec 29, 2014 01:49

Re: Cannot compile game in Ubuntu 12.04 LTS.

by est31 » Wed Nov 25, 2015 16:18

0 upgraded, 0 newly installed, 0 to remove and 201 not upgraded.

I would do an apt-get update && sudo apt-get dist-upgrade here, to make sure that causes no problems.

Have you done a sudo apt-get install libvorbisfile3-dev?
 


Return to Minetest Problems

Who is online

Users browsing this forum: No registered users and 8 guests

cron