How to download and compile DDNet on Windows

Guides about mapping and everything Teeworlds related.

User avatar
deen
Retired Administrator
Posts: 3283
Joined: Mon May 05, 2014 2:30 pm
Player profile: deen

Re: How to download and compile DDNet on Windows

Post by deen » Thu Nov 16, 2017 6:16 pm

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.

Frr
User
Posts: 121
Joined: Sat Dec 12, 2015 9:57 am
Player profile: Frr :3

Re: How to download and compile DDNet on Windows

Post by Frr » Fri Nov 17, 2017 11:54 am

But how? There is no options in the guide. :/

User avatar
Konsti
User
Posts: 1172
Joined: Mon Sep 28, 2015 9:01 pm
Location: Germany
Player profile: Konsti
Mapper profile: Konsti
Clan: flawLess
Website: Konsti

Re: How to download and compile DDNet on Windows

Post by Konsti » Fri Nov 17, 2017 12:05 pm

Delete Windows and use Linux
Image
Image

User avatar
mokuz
Contributor Team: Skin Database Crew
Posts: 748
Joined: Sat Apr 30, 2016 5:34 pm
Location: Finland
Player profile: Mokuz
Mapper profile: Mokuz
Clan: Legendary

Re: How to download and compile DDNet on Windows

Post by mokuz » Fri Nov 17, 2017 1:28 pm

That's like, the best solution...
Image

Frr
User
Posts: 121
Joined: Sat Dec 12, 2015 9:57 am
Player profile: Frr :3

Re: How to download and compile DDNet on Windows

Post by Frr » Fri Nov 17, 2017 4:09 pm

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?

User avatar
deen
Retired Administrator
Posts: 3283
Joined: Mon May 05, 2014 2:30 pm
Player profile: deen

Re: How to download and compile DDNet on Windows

Post by deen » Fri Nov 24, 2017 11:03 pm

Not sure, maybe adding the other compiler to PATH might work and removing the wrong one.

heinrich5991
Technical Team: Coder
Posts: 46
Joined: Sat Sep 05, 2015 7:18 pm

Re: How to download and compile DDNet on Windows

Post by heinrich5991 » Tue Nov 28, 2017 11:30 pm

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.

heinrich5991
Technical Team: Coder
Posts: 46
Joined: Sat Sep 05, 2015 7:18 pm

Re: How to download and compile DDNet on Windows

Post by heinrich5991 » Tue Nov 28, 2017 11:42 pm

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).

User avatar
Tee 3D
User
Posts: 2
Joined: Tue Jul 29, 2014 1:04 pm

Re: How to download and compile DDNet on Windows

Post by Tee 3D » 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.

User avatar
deen
Retired Administrator
Posts: 3283
Joined: Mon May 05, 2014 2:30 pm
Player profile: deen

Re: How to download and compile DDNet on Windows

Post by deen » Sat Feb 03, 2018 4:40 pm

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?

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest