[SOLVED][fedora 25] Compilation Problems

Post Reply
User avatar
spyjoshx
Member
Posts: 31
Joined: Mon Mar 03, 2014 15:51
IRC: spyjoshx
In-game: spyjoshx
Location: Somewhere in America

[SOLVED][fedora 25] Compilation Problems

by spyjoshx » Post

Not being satisfied with the pre-compiled .rpm, I have recently been trying to compile MT on fedora 25. After installing the following valid fedora packages,

Code: Select all

Package irrlicht-1.8.4-1.fc25.x86_64 is already installed, skipping.
Package freetype-2.6.5-1.fc25.x86_64 is already installed, skipping.
Package ncurses-6.0-6.20160709.fc25.x86_64 is already installed, skipping.
Package sqlite-3.14.2-1.fc25.x86_64 is already installed, skipping.
Package sqlite-libs-3.14.2-1.fc25.x86_64 is already installed, skipping.
Package leveldb-1.12.0-11.fc24.x86_64 is already installed, skipping.
Package hiredis-0.13.3-2.fc24.x86_64 is already installed, skipping.
(Output of a DNF install)
and after running the following,

Code: Select all

cmake . -DENABLE_FREETYPE=1 -DENABLE_LEVELDB=1 -DENABLE_REDIS=1 -DENABLE_SOUND=0 -DRUN_IN_PLACE=1
I got this:

Code: Select all

-- *** Will build version 0.4.15-dev ***
-- Could NOT find Irrlicht (missing:  IRRLICHT_LIBRARY IRRLICHT_INCLUDE_DIR) 
-- Found CURL: /usr/lib64/libcurl.so  
-- cURL support enabled.
-- GetText disabled.
-- Could NOT find Freetype (missing:  FREETYPE_LIBRARY FREETYPE_INCLUDE_DIRS) 
-- Could NOT find LuaJit (missing:  LUA_LIBRARY LUA_INCLUDE_DIR) 
-- LuaJIT not found, using bundled Lua.
-- Detecting GMP from system failed.
-- Using bundled mini-gmp library.
-- Found GMP: gmp  
-- Could NOT find Curses (missing:  CURSES_LIBRARY CURSES_INCLUDE_PATH) 
-- ncurses not found!
-- Could NOT find PostgreSQL (missing:  PostgreSQL_LIBRARY PostgreSQL_INCLUDE_DIR PostgreSQL_TYPE_INCLUDE_DIR) 
-- PostgreSQL not found!
-- LevelDB not found!
-- Redis not found!
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
  Could NOT find SQLite3 (missing: SQLITE3_LIBRARY SQLITE3_INCLUDE_DIR)
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)
  cmake/Modules/FindSQLite3.cmake:8 (find_package_handle_standard_args)
  src/CMakeLists.txt:255 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/spyjoshx/minetest-compile/minetest/CMakeFiles/CMakeOutput.log".
See also "/home/spyjoshx/minetest-compile/minetest/CMakeFiles/CMakeError.log".
I am also attaching CMakeOutput.log and CMakeError.log
EDIT: Website not allowing uploads... Dropbox Link: https://www.dropbox.com/sh/34wwzpyx9ul4 ... 67aBa?dl=0
Last edited by spyjoshx on Tue Jan 10, 2017 16:46, edited 1 time in total.

843jdc
Member
Posts: 361
Joined: Tue Jan 19, 2016 16:46
GitHub: jdc843
IRC: jdc843
In-game: 843jdc
Location: USA

Re: [fedora 25] Compilation Problems

by 843jdc » Post

Hi spyjoshx

I use Fedora 25 also.
I'm not an expert but I think that cmake isn't finding the required libraries using the cmake scripts. I don't know if these scripts are part of cmake or if they are part of the MT package.

I suggest that you use ccmake. It is easy to use and configure MT for compilation.
You can easily specify where cmake is to find the required libraries and get MT to compile.

Good luck!

User avatar
Crabman
Member
Posts: 13
Joined: Tue Jan 10, 2017 05:12
GitHub: crabman77
IRC: Crabman
In-game: Crabman

Re: [fedora 25] Compilation Problems

by Crabman » Post

Hi,
-- Could NOT find Irrlicht (missing: IRRLICHT_LIBRARY IRRLICHT_INCLUDE_DIR)
-- Could NOT find Freetype (missing: FREETYPE_LIBRARY FREETYPE_INCLUDE_DIRS)
-- LuaJIT not found, using bundled Lua.
-- Detecting GMP from system failed.
-- Using bundled mini-gmp library.
-- PostgreSQL not found!
-- LevelDB not found!
-- Redis not found!
Could NOT find SQLite3 (missing: SQLITE3_LIBRARY SQLITE3_INCLUDE_DIR)
To compile you need the devel files.

https://github.com/minetest/minetest/bl ... E.txt#L117
For Fedora users:
$ sudo dnf install make automake gcc gcc-c++ kernel-devel cmake libcurl* openal* libvorbis* libXxf86vm-devel libogg-devel freetype-devel mesa-libGL-devel zlib-devel jsoncpp-devel irrlicht-devel bzip2-libs gmp-devel sqlite-devel luajit-devel leveldb-devel ncurses-devel doxygen spatialindex-devel bzip2-devel

User avatar
spyjoshx
Member
Posts: 31
Joined: Mon Mar 03, 2014 15:51
IRC: spyjoshx
In-game: spyjoshx
Location: Somewhere in America

Re: [fedora 25] Compilation Problems

by spyjoshx » Post

I'm installing those packages now. I will let you know how it turns out

User avatar
spyjoshx
Member
Posts: 31
Joined: Mon Mar 03, 2014 15:51
IRC: spyjoshx
In-game: spyjoshx
Location: Somewhere in America

Re: [fedora 25] Compilation Problems

by spyjoshx » Post

It worked! Thank you for your help!

User avatar
Neon
Member
Posts: 126
Joined: Thu Aug 15, 2013 02:03
In-game: Neon

Re: [SOLVED][fedora 25] Compilation Problems

by Neon » Post

For future visitors to this thread, compilation instructions for Fedora can be found here

User avatar
acidzebra
Member
Posts: 75
Joined: Sun Sep 10, 2017 09:11

Re: [fedora 25] Compilation Problems

by acidzebra » Post

Crabman wrote:To compile you need the devel files.

https://github.com/minetest/minetest/bl ... E.txt#L117
For Fedora users:
$ sudo dnf install make automake gcc gcc-c++ kernel-devel cmake libcurl* openal* libvorbis* libXxf86vm-devel libogg-devel freetype-devel mesa-libGL-devel zlib-devel jsoncpp-devel irrlicht-devel bzip2-libs gmp-devel sqlite-devel luajit-devel leveldb-devel ncurses-devel doxygen spatialindex-devel bzip2-devel
Still works on Fedora 28, I just had to swap out libcurl* as it would cause a confict

Code: Select all

$ sudo dnf install make automake gcc gcc-c++ kernel-devel cmake libcurl libcurl-devel openal* libvorbis* libXxf86vm-devel libogg-devel freetype-devel mesa-libGL-devel zlib-devel jsoncpp-devel irrlicht-devel bzip2-libs gmp-devel sqlite-devel luajit-devel leveldb-devel ncurses-devel doxygen spatialindex-devel bzip2-devel
did the trick for me.

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests