Cuberite Forum

Full Version: Random Chitchat 2017
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
Does anyone build 64-bit Cuberite using VS 2017? I can't seem to make it work, cmake is writing weird flags into the project files etc.
Did you tried a clean clone? Had tred to build a project from 2015 in 2017 and didn't worked too. With a clean clone it worked.
I'm working from a clean clone. It seems that CMake doesn't generate some of the flags for MSVC - the optimizations are turned on for Debug builds, C++ exceptions are turned off, runtime libraries not set (except for SQLiteCpp, which I assume sets them explicitly).
If you do a "cmake --version", what do you get? I had 3.7.1, it didn't recognize VS2017, so I installed the newest currently available, 3.8.2, now it recognizes the VS version but writes weird configuration.

Note that on another computer I'm using VS2017 for 32-bit builds without any problems at all. It's just 64-bit builds.
I have cmake 3.8.0. Did you do cmake -G "Visual Studio 15 2017 Win64" in the directory?
Pulled a clean clone, installed cmake 3.8.2 and checked that visual studio was updated. After fixing Leakfinder it compiles fine on my side.
I'll try again, I guess.
Weird, it seems to be working now.
As for the LeakFinder issue, go check PR 3777: https://github.com/cuberite/cuberite/pull/3777
Oh dear, it seems I've broken VS2013 on Cuberite's sourcesTongue

Code:
src\Bindings\ManualBindings_World.cpp(641): fatal error C1001: An internal error has occurred in the compiler.
(compiler file 'f:\dd\vctools\compiler\cxxfe\sl\p1\c\trees.h', line 699)
  To work around this problem, try simplifying or changing the program near the locations listed above.
Please choose the Technical Support command on the Visual C++
  Help menu, or open the Technical Support help file for more information

What do I do now? It's not like it's some super-template-heavy code, just another function pointer with a nullptr default for the DoWithXYZ() bindings...
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34