Problem while using cmake

User avatar
srifqi
Member
 
Posts: 556
Joined: Sat Jun 28, 2014 04:31
Location: Indonesia
GitHub: srifqi
IRC: srifqi
In-game: srifqi

Problem while using cmake

by srifqi » Sun Jan 24, 2016 23:26

Hi,

I just want to compile Minetest using cmake.
But, it failed when running mingw32-make:
Code: Select all
Scanning dependencies of target jsoncpp
Linking CXX static library libjsoncpp.a
[  0%] Built target jsoncpp
Scanning dependencies of target gmp
Linking C static library libgmp.a
[  0%] Built target gmp
Scanning dependencies of target GenerateVersion
[  0%] Built target GenerateVersion
[  0%] Generating winresource_rc.o
Scanning dependencies of target minetest
[  0%] Building CXX object src/CMakeFiles/minetest.dir/client/clientlauncher.cpp
.obj
[  1%] Building CXX object src/CMakeFiles/minetest.dir/client/tile.cpp.obj
[  1%] Building CXX object src/CMakeFiles/minetest.dir/network/clientopcodes.cpp
.obj
[  1%] Building CXX object src/CMakeFiles/minetest.dir/network/clientpackethandl
er.cpp.obj
[  1%] Building CXX object src/CMakeFiles/minetest.dir/network/connection.cpp.ob
j
[  2%] Building CXX object src/CMakeFiles/minetest.dir/network/networkpacket.cpp
.obj
[  2%] Building CXX object src/CMakeFiles/minetest.dir/network/serveropcodes.cpp
.obj
[  2%] Building CXX object src/CMakeFiles/minetest.dir/network/serverpackethandl
er.cpp.obj
In file included from D:/compile/minetest_build/minetest-master/src/script/scrip
ting_game.h:23:0,
                 from D:\compile\minetest_build\minetest-master\src\network\serv
erpackethandler.cpp:29:
D:/compile/minetest_build/minetest-master/src/script/cpp_api/s_base.h:27:17: fat
al error: lua.h: No such file or directory
 #include <lua.h>
                 ^
compilation terminated.
src\CMakeFiles\minetest.dir\build.make:227: recipe for target 'src/CMakeFiles/mi
netest.dir/network/serverpackethandler.cpp.obj' failed
mingw32-make[2]: *** [src/CMakeFiles/minetest.dir/network/serverpackethandler.cp
p.obj] Error 1
CMakeFiles\Makefile2:135: recipe for target 'src/CMakeFiles/minetest.dir/all' fa
iled
mingw32-make[1]: *** [src/CMakeFiles/minetest.dir/all] Error 2
Makefile:135: recipe for target 'all' failed
mingw32-make: *** [all] Error 2


and this is the cmake's console:
Code: Select all
*** Will build version 0.4.13-dev ***
CMake Warning at src/CMakeLists.txt:51 (message):
  cURL is required to load the server list


CMake Warning at src/CMakeLists.txt:54 (message):
  cURL is required to announce to the server list


GetText library: D:/compile/minetest_build/gettext-0.19.7/windows/
GetText DLL: D:/compile/minetest_build/gettext-0.14.4-lib/lib/libintl.dll.a
GetText iconv DLL: D:/compile/minetest_build/gettext-0.14.4-lib/lib/libgettextlib.dll.a
GetText enabled; locales found: be;ca;cs;da;de;eo;es;et;fr;he;hu;id;it;ja;jbo;ko;ky;lt;nb;nl;pl;pt;pt_BR;ro;ru;tr;uk;zh_CN;zh_TW
Sound enabled.
Detecting GMP from system failed.
Using bundled mini-gmp library.
Could NOT find JSONCPP (missing:  JSON_LIBRARY JSON_INCLUDE_DIR)
Using bundled JSONCPP library.
Could NOT find Doxygen (missing:  DOXYGEN_EXECUTABLE)
Configuring done
WARNING: Target "minetest" requests linking to directory "D:/compile/minetest_build/irrlicht-1.8.1/lib/Win32-gcc".  Targets may link only to libraries.  CMake is dropping the item.
WARNING: Target "minetest" requests linking to directory "D:/compile/minetest_build/gettext-0.19.7/windows/".  Targets may link only to libraries.  CMake is dropping the item.
WARNING: Target "minetest" requests linking to directory "D:/compile/minetest_build/libvorbis-1.3.5/win32".  Targets may link only to libraries.  CMake is dropping the item.
WARNING: Target "minetest" requests linking to directory "D:/compile/minetest_build/libogg-1.3.2/win32".  Targets may link only to libraries.  CMake is dropping the item.
WARNING: Target "minetest" requests linking to directory "D:/compile/minetest_build/LuaJIT-2.0.4/src/".  Targets may link only to libraries.  CMake is dropping the item.
WARNING: Target "minetestserver" requests linking to directory "D:/compile/minetest_build/gettext-0.19.7/windows/".  Targets may link only to libraries.  CMake is dropping the item.
WARNING: Target "minetestserver" requests linking to directory "D:/compile/minetest_build/LuaJIT-2.0.4/src/".  Targets may link only to libraries.  CMake is dropping the item.
Generating done
I'm from Indonesia! Saya dari Indonesia!
Terjemahkan Minetest!
Mods by me. Modifikasi oleh saya.

Pronounce my nick as in: es-rifqi (IPA: /es rifˈki/)
 

User avatar
lisacvuk
Member
 
Posts: 274
Joined: Sat Jul 19, 2014 11:52
Location: Serbia, Užice
GitHub: lisacvuk
IRC: lisac
In-game: lisacvuk

Re: Problem while using cmake

by lisacvuk » Thu Jan 28, 2016 20:09

What operating system are you using?
It's lisac, not lisa.
400 character limit? Am I writing a book?
Administrator on Craig's server. Minetest player.
"The enemy pales when they see the face of Dazzle!" ~ Dazzle obviously.
I live in Serbia.
Steam | OpenDOTA
My mods:
Tool ranks
I appreciate donations in TF2 items. :)
 

User avatar
DI3HARD139
Member
 
Posts: 154
Joined: Sat Oct 18, 2014 21:04
GitHub: DI3HARD139
IRC: DI3HARD139
In-game: DI3HARD139 DI3HARD139_

Re: Problem while using cmake

by DI3HARD139 » Sun Jan 31, 2016 08:44

Srifqi is running windows. Not sure what version tho.
 

User avatar
srifqi
Member
 
Posts: 556
Joined: Sat Jun 28, 2014 04:31
Location: Indonesia
GitHub: srifqi
IRC: srifqi
In-game: srifqi

Re: Problem while using cmake

by srifqi » Mon Feb 08, 2016 08:28

lisacvuk wrote:What operating system are you using?

DI3HARD139 wrote:Srifqi is running windows. Not sure what version tho.

I'm using Windows 7 32-bit.

Sorry for long reply.
I'm from Indonesia! Saya dari Indonesia!
Terjemahkan Minetest!
Mods by me. Modifikasi oleh saya.

Pronounce my nick as in: es-rifqi (IPA: /es rifˈki/)
 

User avatar
lisacvuk
Member
 
Posts: 274
Joined: Sat Jul 19, 2014 11:52
Location: Serbia, Užice
GitHub: lisacvuk
IRC: lisac
In-game: lisacvuk

Re: Problem while using cmake

by lisacvuk » Mon Feb 08, 2016 10:29

It would seem you need to install lua, unfortunately I don't have much experience compiling on windows, so I can't help you. It would be hundred times easier if you'd join the Linux Users masterrace. :D
It's lisac, not lisa.
400 character limit? Am I writing a book?
Administrator on Craig's server. Minetest player.
"The enemy pales when they see the face of Dazzle!" ~ Dazzle obviously.
I live in Serbia.
Steam | OpenDOTA
My mods:
Tool ranks
I appreciate donations in TF2 items. :)
 


Return to Problems



Who is online

Users browsing this forum: No registered users and 3 guests