Compiling Minetest on Windows

User avatar
Fess
Member
 
Posts: 159
Joined: Wed Feb 27, 2013 05:46

by Fess » Thu Apr 04, 2013 19:48

Latest Windows x64 build http://yadi.sk/d/-0bgae_73npiB
 

hdastwb
Member
 
Posts: 106
Joined: Tue Jan 01, 2013 18:47
GitHub: hdastwb
IRC: hdastwb
In-game: hdastwb

by hdastwb » Thu Apr 04, 2013 20:52

I'm on 64-bit Windows sometimes too; I guess that makes two.
 

CryAngel
Member
 
Posts: 68
Joined: Thu Apr 04, 2013 10:56

by CryAngel » Thu Apr 04, 2013 21:02

i see Fess still make builds, but decide also share my own build. here included:
  • minetest: 2a0badf2d565ce4bebe2910c88795c0fe51a0341
  • minetest_game: c43718a4347f5b4c5a8e51835c2b7aafdbce82b0
  • common: a3670d751f56c484171c20f087feb52186e42bf5
(all last on time when i build)

build environment:
  • zlib 1.2.5
  • openssl 1.0.1e
  • curl 7.29.0
  • gettext 0.18.1.1
  • freetype 2.4.4
  • libogg 1.3.0
  • libvorbis 1.3.3
  • OpenAL 1.15.1
  • Irrlicht 1.8
  • LuaJIT 2.0.1
all x64, sure. can be intresting, if someone can do some tests to see if there any differences between Fess build (i think compiled with Lua) and my, compiled with LuaJIT.

PS. sry if someone dislike Mediafire
Last edited by CryAngel on Thu Apr 04, 2013 21:04, edited 1 time in total.
 

User avatar
kaeza
Member
 
Posts: 2141
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

by kaeza » Thu Apr 04, 2013 21:18

CryAngel wrote:i see Fess still make builds, but decide also share my own build. here included:
  • minetest: 2a0badf2d565ce4bebe2910c88795c0fe51a0341
  • minetest_game: c43718a4347f5b4c5a8e51835c2b7aafdbce82b0
  • common: a3670d751f56c484171c20f087feb52186e42bf5
(all last on time when i build)

build environment:
  • zlib 1.2.5
  • openssl 1.0.1e
  • curl 7.29.0
  • gettext 0.18.1.1
  • freetype 2.4.4
  • libogg 1.3.0
  • libvorbis 1.3.3
  • OpenAL 1.15.1
  • Irrlicht 1.8
  • LuaJIT 2.0.1
all x64, sure. can be intresting, if someone can do some tests to see if there any differences between Fess build (i think compiled with Lua) and my, compiled with LuaJIT.

PS. sry if someone dislike Mediafire

You may also want to include "build" and "survival" games.
Last edited by kaeza on Thu Apr 04, 2013 21:19, edited 1 time in total.
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal | BTC: 1DFZAa5VtNG7Levux4oP6BuUzr1e83pJK2
 

CryAngel
Member
 
Posts: 68
Joined: Thu Apr 04, 2013 10:56

by CryAngel » Thu Apr 04, 2013 21:32

kaeza wrote:You may also want to include ...

yes, i see them in git but not sure what they do. anyway they small and can be easy added by self, like any other mods.
 

User avatar
kaeza
Member
 
Posts: 2141
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

by kaeza » Thu Apr 04, 2013 21:36

CryAngel wrote:
kaeza wrote:You may also want to include ...

yes, i see them in git but not sure what they do. anyway they small and can be easy added by self, like any other mods.

For now they are just some kind of stub, but in the future "build" will contain stuff meant for creative servers (decorative blocks, etc), and "survival" will contain more stuff for survival servers (mobs, etc).
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal | BTC: 1DFZAa5VtNG7Levux4oP6BuUzr1e83pJK2
 

User avatar
Inocudom
Member
 
Posts: 2889
Joined: Sat Sep 29, 2012 01:14
IRC: Inocudom
In-game: Inocudom

by Inocudom » Fri Apr 05, 2013 02:25

You did a good job with your build, CryAngel. It works very well and the cURL server list shows up.
 

User avatar
Inocudom
Member
 
Posts: 2889
Joined: Sat Sep 29, 2012 01:14
IRC: Inocudom
In-game: Inocudom

by Inocudom » Mon Apr 08, 2013 21:57

Could Fess or CryAngel make a new 64-bit build of the GitHub version of Minetest? A lot of memory leaks were fixed recently.
 

User avatar
Fess
Member
 
Posts: 159
Joined: Wed Feb 27, 2013 05:46

by Fess » Tue Apr 09, 2013 14:47

Updated version of minetest: 7d002b60ff3d672d141e0de65702c8af5b60f83a
http://yadi.sk/d/xGjZP_Pz3vPZI
I can also make build with LuaJIT, if someone needs it. But for some mods(like landup, canyon, etc) its better to use version with LUA, because at that case mod can update chunks in time, while with LuaJIT version its crashes.
 

User avatar
Inocudom
Member
 
Posts: 2889
Joined: Sat Sep 29, 2012 01:14
IRC: Inocudom
In-game: Inocudom

by Inocudom » Tue Apr 09, 2013 14:52

Fess wrote:Updated version of minetest: 7d002b60ff3d672d141e0de65702c8af5b60f83a
http://yadi.sk/d/xGjZP_Pz3vPZI
I can also make build with LuaJIT, if someone needs it. But for some mods(like landup, canyon, etc) its better to use version with LUA, because at that case mod can update chunks in time, while with LuaJIT version its crashes.


I am glad that you made another build. Did you ask CryAngel how he gets the cURL server list working in his? Concerning landup and canyon, it looks like those mods will have to be fixed in order to be compatible with LuaJIT.
 

CryAngel
Member
 
Posts: 68
Joined: Thu Apr 04, 2013 10:56

by CryAngel » Wed Apr 10, 2013 08:28

Inocudom wrote:Did you ask CryAngel how he gets the cURL server list working in his?

i see Fess build also include cURL. does is work? anyway i dont do something very specific. well, many libs i compile by self, because hard to find good/actual/etc. build. to be precise i compile openssl, curl, libogg, libvorbis, OpenAL and LuaJIT (last one - statically linked). ah, one thing about cURL - i notice CMake dont found this dll somewhy and say nothing about it. i mean is found include and library but silently miss dll. i notice it only when check what dll actually used (by Dependency Walker). so, then i directly point CMake to this dll by hand.
 

User avatar
Inocudom
Member
 
Posts: 2889
Joined: Sat Sep 29, 2012 01:14
IRC: Inocudom
In-game: Inocudom

by Inocudom » Wed Apr 10, 2013 12:55

CryAngel wrote:
Inocudom wrote:Did you ask CryAngel how he gets the cURL server list working in his?

i see Fess build also include cURL. does is work? anyway i dont do something very specific. well, many libs i compile by self, because hard to find good/actual/etc. build. to be precise i compile openssl, curl, libogg, libvorbis, OpenAL and LuaJIT (last one - statically linked). ah, one thing about cURL - i notice CMake dont found this dll somewhy and say nothing about it. i mean is found include and library but silently miss dll. i notice it only when check what dll actually used (by Dependency Walker). so, then i directly point CMake to this dll by hand.


The cURL server list doesn't work in Fess's builds. He doesn't use the new font type either. You might have to help him in those areas.
 

CryAngel
Member
 
Posts: 68
Joined: Thu Apr 04, 2013 10:56

by CryAngel » Thu Apr 11, 2013 17:52

sry if you want new build. i still not decide what to do with last commit (about systemwide LuaJIT). while i like this on linux is not same for windows. on windows i prefer to have builtin LuaJIT. on the other hand i still not resolve build issues with my fork (which have builtin LuaJIT) on linux. i just need some time to decide something.
 

User avatar
Fess
Member
 
Posts: 159
Joined: Wed Feb 27, 2013 05:46

by Fess » Fri Apr 19, 2013 18:42

New updated build of minetest-c45c530f74, now includes Freetype&Gettext (thx to my friend Midnightwraith, who helps to make it works)
http://yadi.sk/d/AZUfuySH4BY5B
P.S. About cURL - i've included it in cmake, but don't know how to check doest it work propertly or no. I will try to find out that.
 

User avatar
Fess
Member
 
Posts: 159
Joined: Wed Feb 27, 2013 05:46

by Fess » Fri Apr 19, 2013 18:51

edited: I find the way to make cURL works, also change path to config and worlds, and now they are in root folder of minetest, not appdata, also includes LuaJIT support.
this build includes working cURL, LuaJIT,Freetype, Gettext:
http://yadi.sk/d/NP5DWYS-4BnII
Last edited by Fess on Sat Apr 20, 2013 01:58, edited 1 time in total.
 

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

by PilzAdam » Fri Apr 19, 2013 18:52

The public server list only works if Minetest is compiled with cURL.
 

User avatar
Inocudom
Member
 
Posts: 2889
Joined: Sat Sep 29, 2012 01:14
IRC: Inocudom
In-game: Inocudom

by Inocudom » Thu Apr 25, 2013 02:47

I am pleased to say that your compiling skills are improving, Fess. Your friend has been quite helpful. The cURL list now works and the Freetype font is visible.

I don't know how to test for LuaJIT and Gettext. Can anybody test for those features?
 

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

by PilzAdam » Thu Apr 25, 2013 09:57

Inocudom wrote:I am pleased to say that your compiling skills are improving, Fess. Your friend has been quite helpful. The cURL list now works and the Freetype font is visible.

I don't know how to test for LuaJIT and Gettext. Can anybody test for those features?

LuaJIT:
It should crash if you add \[ to the escapechars string in builtin/serialize.lua:200

Gettext:
When you press escape in-game it should say "GETTEXT=1" on the left side.
 

User avatar
Mito551
Member
 
Posts: 1271
Joined: Sat Jun 16, 2012 15:03

by Mito551 » Fri Apr 26, 2013 19:12

how to compile it with luajit? it just says
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
LuaJIT library: LUA_LIBRARY-NOTFOUND
LuaJIT headers: LUA_INCLUDE_DIR-NOTFOUND
LuaJIT not found, using bundled Lua.


but doesn't give a chance to point it to where it is!
 

User avatar
Fess
Member
 
Posts: 159
Joined: Wed Feb 27, 2013 05:46

by Fess » Mon Apr 29, 2013 00:37

Mito551 wrote:but doesn't give a chance to point it to where it is!

Just put a checkbox on advanced parameters in CMake gui.
Updated to latest commit d7395cd2ab minetest x64 build (with cURL, LuaJIT,Freetype, Gettext, etc) here:
http://yadi.sk/d/G339ED8V4QhmQ
 

User avatar
Inocudom
Member
 
Posts: 2889
Joined: Sat Sep 29, 2012 01:14
IRC: Inocudom
In-game: Inocudom

by Inocudom » Tue Apr 30, 2013 00:48

Your newest build of Minetest works very well. It allows me to have transparent leaves in-game without extreme slowdown.
 

User avatar
Fess
Member
 
Posts: 159
Joined: Wed Feb 27, 2013 05:46

by Fess » Sat May 04, 2013 22:58

 

User avatar
Inocudom
Member
 
Posts: 2889
Joined: Sat Sep 29, 2012 01:14
IRC: Inocudom
In-game: Inocudom

by Inocudom » Sun May 05, 2013 17:50

Thank you, Fess. Your builds make life easier for my computer.

If any if you have Windows computers that are 64-bit, Fess's builds should be better for them.
 

User avatar
Pavel_S
Member
 
Posts: 131
Joined: Sat Apr 06, 2013 11:43

by Pavel_S » Sun May 26, 2013 09:05

I compilled Minetest without errors.
It's successfully working until I don't try play new world.
Console screenshot:
Image
 

User avatar
sfan5
Member
 
Posts: 3636
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5

by sfan5 » Sun May 26, 2013 09:07

As you can see in the first/second line of the output it says:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
15:55:25: ERROR[ServerThread]: ERROR: An unhandled exception occurred: Cannot open database file
Last edited by sfan5 on Sun May 26, 2013 09:07, edited 1 time in total.
Mods: Mesecons | WorldEdit | Nuke
Minetest builds for Windows (32-bit & 64-bit)
 

User avatar
Fess
Member
 
Posts: 159
Joined: Wed Feb 27, 2013 05:46

by Fess » Sun Jun 02, 2013 17:15

Still same problem with linking of 4 external functions:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
2>content_sao.obj : error LNK2001: unresolved external symbol ""public: void __cdecl ScriptApiEntity::luaentity_Punch(unsigned short,class ServerActiveObject *,float,struct ToolCapabilities const *,class irr::core::vector3d<float>)" (?luaentity_Punch@ScriptApiEntity@@QEAAXGPEAVServerActiveObject@@MPEBUToolCapabilities@@V?$vector3d@M@core@irr@@@Z)"
2>s_entity.obj : error LNK2001: unresolved external symbol ""void __cdecl push_tool_capabilities(struct lua_State *,class ToolCapabilities const &)" (?push_tool_capabilities@@YAXPEAUlua_State@@AEBVToolCapabilities@@@Z)"
2>l_craft.obj : error LNK2001: unresolved external symbol ""class std::vector<struct ItemStack,class std::allocator<struct ItemStack> > __cdecl read_items(struct lua_State *,int,class Server *)" (?read_items@@YA?AV?$vector@UItemStack@@V?$allocator@UItemStack@@@std@@@std@@PEAUlua_State@@HPEAVServer@@@Z)"
2>l_craft.obj : error LNK2001: unresolved external symbol ""void __cdecl push_items(struct lua_State *,class std::vector<struct ItemStack,class std::allocator<struct ItemStack> > const &)" (?push_items@@YAXPEAUlua_State@@AEBV?$vector@UItemStack@@V?$allocator@UItemStack@@@std@@@std@@@Z)"

2>...\minetest\bin\Release\minetest.exe : fatal error LNK1120: 4 unresolved external elements.


I've checked definition of that functions and depends, etc but cant find where some its failed for VS2010 compiler, maybe someone can help?
Last edited by Fess on Sun Jun 02, 2013 18:26, edited 1 time in total.
 

User avatar
Inocudom
Member
 
Posts: 2889
Joined: Sat Sep 29, 2012 01:14
IRC: Inocudom
In-game: Inocudom

by Inocudom » Sun Jun 02, 2013 17:59

Fess wrote:Still same problem with linking of 4 external functions:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
2>content_sao.obj : error LNK2001: unresolved external symbol ""public: void __cdecl ScriptApiEntity::luaentity_Punch(unsigned short,class ServerActiveObject *,float,struct ToolCapabilities const *,class irr::core::vector3d<float>)" (?luaentity_Punch@ScriptApiEntity@@QEAAXGPEAVServerActiveObject@@MPEBUToolCapabilities@@V?$vector3d@M@core@irr@@@Z)"
2>s_entity.obj : error LNK2001: unresolved external symbol ""void __cdecl push_tool_capabilities(struct lua_State *,class ToolCapabilities const &)" (?push_tool_capabilities@@YAXPEAUlua_State@@AEBVToolCapabilities@@@Z)"
2>l_craft.obj : error LNK2001: unresolved external symbol ""class std::vector<struct ItemStack,class std::allocator<struct ItemStack> > __cdecl read_items(struct lua_State *,int,class Server *)" (?read_items@@YA?AV?$vector@UItemStack@@V?$allocator@UItemStack@@@std@@@std@@PEAUlua_State@@HPEAVServer@@@Z)"
2>l_craft.obj : error LNK2001: unresolved external symbol ""void __cdecl push_items(struct lua_State *,class std::vector<struct ItemStack,class std::allocator<struct ItemStack> > const &)" (?push_items@@YAXPEAUlua_State@@AEBV?$vector@UItemStack@@V?$allocator@UItemStack@@@std@@@std@@@Z)"

2>...\minetest\bin\Release\minetest.exe : fatal error LNK1120: 4 unresolved external elements.


I've checked definition of that functions and depends, etc but cant find where some its failed for VS compiler, maybe someone can help?


Have you tried asking xyz, braniacbob, CryAngel, and Midnightwraith? They might have some ideas of what to do.

Does anybody else know how to compile 64-bit builds for Windows well enough to help out with this problem? I have mentioned this issue on a few servers, but I didn't get any helpful responses.

You might want to state what version of the VS compiler you are using, Fess.
Last edited by Inocudom on Sun Jun 02, 2013 18:03, edited 1 time in total.
 

User avatar
Inocudom
Member
 
Posts: 2889
Joined: Sat Sep 29, 2012 01:14
IRC: Inocudom
In-game: Inocudom

by Inocudom » Fri Jun 07, 2013 16:42

Fess managed to create a new build today, so the problem above was solved.

People really do need to be more encouraging in this community.
 

User avatar
jojoa1997
Member
 
Posts: 2890
Joined: Thu Dec 13, 2012 05:11

by jojoa1997 » Sat Sep 14, 2013 03:53

Say can anyone write a guide on how to compile via Microsoft Visual Studio 2012
Coding;
1X coding
3X debugging
12X tweaking to be just right
 

johndc
New member
 
Posts: 1
Joined: Tue Sep 17, 2013 15:07

by johndc » Tue Sep 17, 2013 23:39

Update:
Issue already solved, I've put dll file instead of lib. Maybe it help somebody in future.


Hello everybody,

I've tried to compile minetest on Windows, but I've received the link error:

....minetest\libvorbis-1.3.3\bin\libvorbisfile.dll : fatal error LNK1107: invalid or corrupt file: cannot read at 0x2B8

I don't know if my definition in cmake is correct, here is example :

VORBISFILE_LIBRARY:FILEPATH=c:\WorkDir\minetest\libvorbis-1.3.3\bin\libvorbisfile.dll
OPENAL_LIBRARY:FILEPATH=C:/Program Files (x86)/OpenAL 1.1 SDK/libs/Win64/OpenAL32.lib
VORBIS_DLL:FILEPATH=
OPENAL_DLL:FILEPATH=
ZLIB_LIBRARIES:FILEPATH=C:/WorkDir/minetest/minetest/src/../../zlib125dll/dllx64/zlibwapi.lib
VORBIS_LIBRARY:FILEPATH=C:/WorkDir/minetest/libvorbis-1.3.3/bin/libvorbis.dll

The definitions for VORBIS_DLL and VORBISFILE_DLL are empty, but the dlls are defines as VORBIS_LIBRARY and VORBISFILE_LIBRARY.

Any help here?
Last edited by johndc on Wed Sep 18, 2013 21:27, edited 1 time in total.
 

PreviousNext

Return to Minetest General

Who is online

Users browsing this forum: Bing [Bot] and 17 guests

cron