How to compile the engine

There are no stupid questions, just stupid answers.
10 posts Page 1 of 1
Duion
Posts: 1622
Joined: Sun Feb 08, 2015 1:51 am
 
by Duion » Wed Jun 03, 2020 11:30 pm
Is there any new tutorial how to compile the new engine version Torque3D version 4.0? I managed to compile any version so far, but now it does not work anymore. I followed this tutorial, but it does not work: http://wiki.torque3d.org/coder:compiling-in-windows

My latest error is:
Severity Code Description Project File Line Suppression State
Error C2675 unary '--': 'NetClassGroups' does not define this operator or a conversion to a type acceptable to the predefined operator (compiling source file D:\UebergameProject\Torque3D-1\Engine\source\gfx\gl\gfxGLTextureTarget.cpp) Uebergame D:\Programme\Microsoft Visual Studio 14.0\VC\include\xutility 2797

This error happens 913 times, every time inside xutility line 2797.

Do I need a new compiler, Visual Studio, Cmake Gui etc?
Bloodknight
Posts: 305
Joined: Tue Feb 03, 2015 8:58 pm
by Bloodknight » Thu Jun 04, 2020 6:08 pm
There were some issues with certain CMake versions and certain torque versions, new CMake not liking older torque, and the inverse at times.
Assuming you are running the preview4.0 branch then
CMake 3.17.0 works, VS 2019 and 2017 also work.

VS 2015 may well no longer support parts of C++ 11 that the engine uses, might need another dev to step in here, but those seem like very weird errors, and usually, if you get a lot then there's usually a fundamental issue of understanding between one part or another.

Quick google tells me this may be an enum related thing, which might help the versioning guys add better detail.
Duion
Posts: 1622
Joined: Sun Feb 08, 2015 1:51 am
 
by Duion » Thu Jun 04, 2020 6:45 pm
My Cmake is up to date ( 3.17.3 ), Visual Studio however no longer works after I upgraded to 2019, older versions are no longer available officially.

I tried to compile with LLVM and Ninja, but it fails at others issues in Cmake.

Is there any other way to compile or do I really have to bother with Visual Studio? I like how to compile on Linux, I just enter "ninja" into command line and everything just works, why can't it work like that on Windows as well?

Maybe compile on Linux but for Windows, but I never tried that.
Azaezel
DEVGRU
Posts: 496
Joined: Tue Feb 03, 2015 9:50 pm
 
by Azaezel » Thu Jun 04, 2020 10:17 pm
Visual Studio however no longer works after I upgraded to 2019, older versions are no longer available officially.
Clarify that bit?
Duion
Posts: 1622
Joined: Sun Feb 08, 2015 1:51 am
 
by Duion » Thu Jun 04, 2020 10:24 pm
I meant the program "Visual Studio" does no longer run on my computer for some weird reason, it crashes with an "unknown error" have to figure that out first, or compile on another machine.
Dwarf King
Posts: 185
Joined: Thu Feb 05, 2015 7:20 pm
by Dwarf King » Thu Jun 04, 2020 10:51 pm
Uninstal VS 2019 and then reinstall it and use CMake 3.17.0 version. Now see it it works.
Duion
Posts: 1622
Joined: Sun Feb 08, 2015 1:51 am
 
by Duion » Thu Jun 04, 2020 10:54 pm
I did that like 5 times now, I also downloaded a tool that uninstalled all my old Visual Studios, all versions and libs from 2011 to 2016 and even without anything left from Visual Studio a reinstall of 2019 still crashed. I also checked my Drive for errors, which none were found.
trident
Posts: 12
Joined: Wed Feb 18, 2015 11:58 pm
by trident » Thu Jun 04, 2020 10:56 pm
i know you you not like this when i killed my vs and it would not start the only fix was a clean install of windows then put back everything you need
sorry i can not help any more then this
Bloodknight
Posts: 305
Joined: Tue Feb 03, 2015 8:58 pm
by Bloodknight » Fri Jun 05, 2020 12:59 pm
This seems like it might be a job for MS forums.
If the tool you used was this https://github.com/Microsoft/VisualStudioUninstaller then I'm close to the end of my knowledge of VS install/uninstall errors apart from asking about windows versions? are you still on win 7 or did you get win 10? might be an issue in there if still on win 7.
Duion
Posts: 1622
Joined: Sun Feb 08, 2015 1:51 am
 
by Duion » Fri Jun 05, 2020 2:17 pm
Yes, this is what I used and I'm on Win 7 and VS 2019 should work with it, since the support only ran out in 2020. Long Term I will probably have to compile in a Win10 virtual machine anyway, this is already what I do for Linux, since I don't want to personally use the "popular" distribution I compile on.
I will report when I tried with another machine with Win10.
10 posts Page 1 of 1

Who is online

Users browsing this forum: No registered users and 6 guests