How to download and compile DDNet on Windows

Read tips and guides about teeworlds-related subjects (mapping, compiling, ..).
User avatar
deen
TECHNICAL Team
Posts: 3575
Joined: Mon May 05, 2014 2:30 pm
Player profile: https://ddnet.org/players/deen/
Discord: deen#5910

Re: How to download and compile DDNet on Windows

Post 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.
Frr
Posts: 121
Joined: Sat Dec 12, 2015 9:57 am
Player profile: https://ddnet.tw/players/Frr-32--58-3/

Re: How to download and compile DDNet on Windows

Post by Frr »

But how? There is no options in the guide. :/
User avatar
Konsti
Posts: 1188
Joined: Mon Sep 28, 2015 9:01 pm
Location: Germany
Player profile: http://ddnet.tw/players/Konsti/
Mapper profile: https://ddnet.tw/mappers/Konsti/
Clan: flawLess
Website: http://ddnet.tw/players/Konsti

Re: How to download and compile DDNet on Windows

Post by Konsti »

Delete Windows and use Linux
Image
Image
User avatar
mokuz
Posts: 755
Joined: Sat Apr 30, 2016 5:34 pm
Location: Finland
Player profile: https://ddnet.tw/players/Mokuz/
Mapper profile: https://ddnet.tw/mappers/Mokuz/
Clan: Legendary

Re: How to download and compile DDNet on Windows

Post by mokuz »

That's like, the best solution...
SpoilerShow
Nothing to see here uwu
mods banned my previous sig :( this is censorship freedom of speech is dead xoxox
Frr
Posts: 121
Joined: Sat Dec 12, 2015 9:57 am
Player profile: https://ddnet.tw/players/Frr-32--58-3/

Re: How to download and compile DDNet on Windows

Post 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?
User avatar
deen
TECHNICAL Team
Posts: 3575
Joined: Mon May 05, 2014 2:30 pm
Player profile: https://ddnet.org/players/deen/
Discord: deen#5910

Re: How to download and compile DDNet on Windows

Post by deen »

Not sure, maybe adding the other compiler to PATH might work and removing the wrong one.
heinrich5991
Posts: 47
Joined: Sat Sep 05, 2015 7:18 pm

Re: How to download and compile DDNet on Windows

Post 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.
heinrich5991
Posts: 47
Joined: Sat Sep 05, 2015 7:18 pm

Re: How to download and compile DDNet on Windows

Post 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).
User avatar
Tee 3D
Posts: 2
Joined: Tue Jul 29, 2014 1:04 pm

Re: How to download and compile DDNet on Windows

Post 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.
User avatar
deen
TECHNICAL Team
Posts: 3575
Joined: Mon May 05, 2014 2:30 pm
Player profile: https://ddnet.org/players/deen/
Discord: deen#5910

Re: How to download and compile DDNet on Windows

Post 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?
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests