Page 1 of 1

Compilation help!

PostPosted: Sun Jun 05, 2016 12:29
by azekill_DIABLO
i will soon post a fork, of an old MT version, just for training!
The problem is i can't have all the stuff to compile on windows i have Cmake and Visual Studio, but after that it looks like things needed are not maintened anymore!
Can someone compile for me on Windows (32bits)??

Re: Compilation help!

PostPosted: Sun Jun 05, 2016 13:21
by Krock
azekill_DIABLO wrote:but after that it looks like things needed are not maintened anymore!

Err what? At least CMake is still maintained and the setup works fine here.
If you want to compile it on Windows, follow the guide on the dev wiki and (the also linked there) CMake variable values I use to build the Minetest binary on my system.

Alternatively, I would compile it for you but only there are enough changes in your fork, so the effort is worth it.

EDIT: I'm online on IRC, contact me when you got troubles or questions.

Re: Compilation help!

PostPosted: Sun Jun 05, 2016 13:29
by azekill_DIABLO
ok!

Re: Compilation help!

PostPosted: Thu Jul 07, 2016 17:19
by azekill_DIABLO
I have a problem... when i go in minetest.sln and when i click on build <name of the project> it can't find the .cpp files in the correct directory even if they are there.......

Re: Compilation help!

PostPosted: Sun Jul 31, 2016 07:25
by Dopium
Thought i would comment here rather then starting a new thread. Im having some issues
1) Understanding the processes
2) All the information is outdated and whats fairly new becomes confusing

I have read the dev wiki and readme along with watching a really old -c55 compilation video. Although still not really getting anywhere.

Really want to start compiling 64bit MSVC builds to get the latest builds without waiting for them to be posted in the builds sub-forum.

So far i have downloaded and placed into the DIR minetest1/:
[img]https://forum.minetest.net/download/file.php?mode=view&id=7110[/img]

However im getting and issue on configure:
[img]
issue1.png
[/img]

Any help would be great thanks.

Re: Compilation help!

PostPosted: Sun Jul 31, 2016 07:36
by Krock
Dopium wrote:1) Understanding the processes
2) All the information is outdated and whats fairly new becomes confusing

First you need to compile the libraries you need for Minetest when the .lib files don't exist yet.
Then configure CMake properly (Use the "Advanced" checkbox if there's not enough information) and fill in the correct paths. I think this file will help you to do it right. When you get errors in CMake, do not make a screenshot that cuts off the whole error text - use [code] to paste it here.

Additionaly have a look at this pull. It contains some improvements of the documentation.

Re: Compilation help!

PostPosted: Sun Jul 31, 2016 08:10
by Dopium
Ok thanks, there is lots of useful information you have provided and yeah maybe im stepping into alot more advanced realm then i thought. So as far as i know, im missing libraries if understood correctly, next challenge is to get those. Will the pre-compiled win32 download you have work for 64bit builds? (im used to scripting not compiling in C++).

The advanced checkbox has indeed displayed alot more information, now i have to work out what im doing with that side of things. also the error im getting seems self explanatory however im fairly sure i have MSVC installed or is the compiler a separate program?

Either way im going to try my hardest to work it out and understand this.

Error code:
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
The C compiler identification is unknown
The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:9 (project):
  No CMAKE_C_COMPILER could be found.



CMake Error at CMakeLists.txt:9 (project):
  No CMAKE_CXX_COMPILER could be found.



Configuring incomplete, errors occurred!
See also "C:/minetest1/New folder/minetest-build/CMakeFiles/CMakeOutput.log".
See also "C:/minetest1/New folder/minetest-build/CMakeFiles/CMakeError.log".

Re: Compilation help!

PostPosted: Sun Jul 31, 2016 08:15
by azekill_DIABLO
nice!

i can't even start Cmake :D

Re: Compilation help!

PostPosted: Sun Jul 31, 2016 09:54
by Krock
Dopium wrote:Will the pre-compiled win32 download you have work for 64bit builds?

Looking at this article tells me that you need 64-bit libraries, these for 32-bit won't work due to different C(++) pointer handling.

Dopium wrote:
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
The C compiler identification is unknown
The CXX compiler identification is unknown

Spending some more minutes on DuckDuckGo gave me this solution:
http://stackoverflow.com/questions/3161 ... c-compiler

azekill_DIABLO wrote:i can't even start Cmake :D

Reinstall CMake and open the GUI with [Win] + [R] -> "cmake-gui " -> [Enter]

Re: Compilation help!

PostPosted: Sun Jul 31, 2016 10:37
by Dopium
Ok well looking into the C:\Program Files\CMake\bin\qt.conf it looks to me like there is no paths set for some reason? i get this when opening the file in np++
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
[Paths]
Plugins = ../plugins


As for the 64bit libraries there doesnt seem to be other 64bit downloads for alot of them... I downloaded all the pre-compiled libraries from your dropbox link anyway but yeah think the compiler issues is the main one at the moment.