Page 2 of 3

Re: How to download and compile DDNet on Windows

Posted: Thu Nov 16, 2017 6:16 pm
by deen
The C compiler "C:/Program Files (x86)/Microsoft Visual
Studio/2017/Community/VC/Tools/MSVC/14.11.25503/bin/Hostx86/x86/cl.exe" is
not able to compile a simple test program.
That's the problem. Fix your C compiler. Looks like x86, not x86-64.

Re: How to download and compile DDNet on Windows

Posted: Fri Nov 17, 2017 11:54 am
by Frr
But how? There is no options in the guide. :/

Re: How to download and compile DDNet on Windows

Posted: Fri Nov 17, 2017 12:05 pm
by Konsti
Delete Windows and use Linux

Re: How to download and compile DDNet on Windows

Posted: Fri Nov 17, 2017 1:28 pm
by mokuz
That's like, the best solution...

Re: How to download and compile DDNet on Windows

Posted: Fri Nov 17, 2017 4:09 pm
by Frr
Nice help guys, many thanks to you.

I have x86 (and x86 x64 dirs inside)
And x64 (and x86 x64 dirs inside)

So that VC 2017 has all of these compilers, but how to fix?

P.S. Why there is a guide which is doesn't work?

Re: How to download and compile DDNet on Windows

Posted: Fri Nov 24, 2017 11:03 pm
by deen
Not sure, maybe adding the other compiler to PATH might work and removing the wrong one.

Re: How to download and compile DDNet on Windows

Posted: Tue Nov 28, 2017 11:30 pm
by heinrich5991
Frr wrote: Thu Nov 16, 2017 5:30 pm Win10 64
Reinstalled from repository:

CMake Error at C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.9/Modules/CMakeTestCCompiler.cmake:51 (message):
The C compiler "C:/Program Files (x86)/Microsoft Visual
Studio/2017/Community/VC/Tools/MSVC/14.11.25503/bin/Hostx86/x86/cl.exe" is
not able to compile a simple test program.

It fails with the following output:

Change Dir: C:/Users/Frr/CMakeBuilds/14360a3a-fb71-103c-a730-189ca0c76231/build/x86-Debug/CMakeFiles/CMakeTmp



Run Build
Command:"C:/PROGRA~2/MIB055~1/2017/COMMUN~1/Common7/IDE/COMMON~1/MICROS~1/CMake/Ninja/ninja.exe"
"cmTC_533bb"

ninja: error: build.ninja:30: loading 'rules.ninja': ═х єфрхЄё 
эрщЄш єърчрээ√щ Їрщы.




include rules.ninja


^ near here





CMake will not be able to correctly generate this project.
Should theoretically work out of the box... so: Can you try removing the `C:/Users/Frr/CMakeBuilds/` folder and trying again? That's my best guess regarding that error, after trying to google it.

Re: How to download and compile DDNet on Windows

Posted: Tue Nov 28, 2017 11:42 pm
by heinrich5991
This looks interesting as well: https://gitlab.kitware.com/cmake/cmake/issues/17191 (and might be the reason why this issue didn't occur to me, I used an English Window version to test this).

Re: How to download and compile DDNet on Windows

Posted: Sat Feb 03, 2018 1:11 pm
by Tee 3D
IMPORTANT INFO:
If you don't see a drop-down list, like in step 25, you must remove three lines from .gitignore file - "*", "!**/" and "!*.*". Also recommend remove "*.dll" line. After this, just resave (Ctrl+S) CMakeLists.txt in VS, cmake must start automatically.

Re: How to download and compile DDNet on Windows

Posted: Sat Feb 03, 2018 4:40 pm
by deen
Tee 3D wrote: Sat Feb 03, 2018 1:11 pm IMPORTANT INFO:
If you don't see a drop-down list, like in step 25, you must remove three lines from .gitignore file - "*", "!**/" and "!*.*". Also recommend remove "*.dll" line. After this, just resave (Ctrl+S) CMakeLists.txt in VS, cmake must start automatically.
How come, what's wrong with the gitignore file?