How to download and compile DDNet on Windows

Read tips and guides about teeworlds-related subjects (mapping, compiling, ..).
User avatar
hi_leute_gll
Posts: 2525
Joined: Mon Jul 21, 2014 1:15 am
Player profile: http://ddnet.tw/players/hi-95-leute-95-gll/
Mapper profile: http://ddnet.tw/mappers/hi-95-leute-95-gll/
Clan: iMTG

Re: How to download and compile DDNet on Windows

Post by hi_leute_gll »

heinrich5991 wrote: Wed Oct 04, 2017 10:47 pm 24. Your screen should now look something like this. Click the arrow next to "Select Startup Item…".
For me, there isn't any option to choose, except "current document", too.

EDIT: removing these 3 lines in .gitignore worked.
.hi._.leute._.gll. | iMTGmember
heinrich5991
Posts: 47
Joined: Sat Sep 05, 2015 7:18 pm

Re: How to download and compile DDNet on Windows

Post by heinrich5991 »

hi_leute_gll wrote: Tue Feb 20, 2018 3:42 pm EDIT: removing these 3 lines in .gitignore worked.
I've now removed them from the official repository.
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 »

One year later.. heinrich5991, maybe you append your tutorial with optional mysql compiling part, because in Linux it's pretty easy and working without problem, but i try help my friend build it on windows and failed in this. First, in visual studio i find just one way to set flags -> CMakeSettings.json file. Second, that's can't automatically find mysql paths. But ok, i try make smth like:

Code: Select all

{
  "configurations": [
    {
      "name": "x64-Debug",
      "generator": "Ninja",
      "configurationType": "Debug",
      "inheritEnvironments": [
        "msvc_x64_x64"
      ],
      "buildRoot": "${env.USERPROFILE}\\CMakeBuilds\\${workspaceHash}\\build\\${name}",
      "installRoot": "${env.USERPROFILE}\\CMakeBuilds\\${workspaceHash}\\install\\${name}",
      "cmakeCommandArgs": "
        -DMYSQL_CONFIG:STRING=\"C:/Program Files/MySQL/MySQL Server 8.0/bin\" 
        -DMYSQL_INCLUDEDIR:STRING=\"C:/Program Files/MySQL/MySQL Server 8.0/include\" 
        -DMYSQL_CPPCONN_INCLUDEDIR:STRING=\"C:/Program Files/MySQL/Connector C++ 8.0/include/jdbc\" 
        -DMYSQL_CPPCONN_LIBRARY:STRING=\"
          C:/Program Files/MySQL/Connector C++ 8.0/lib64/vs14/mysqlcppconn-static.lib;
          C:/Program Files/MySQL/Connector C++ 8.0/lib64/vs14/mysqlcppconn.lib;
          C:/Program Files/MySQL/Connector C++ 8.0/lib64/vs14/mysqlcppconn8-static.lib;
          C:/Program Files/MySQL/Connector C++ 8.0/lib64/vs14/mysqlcppconn8.lib;
          C:/Program Files/MySQL/Connector C++ 8.0/lib64/vs14/libeay32.lib;
          C:/Program Files/MySQL/Connector C++ 8.0/lib64/vs14/ssleay32.lib;
        \" 
        -DMYSQL_LIBRARY:STRING=\"
          C:/Program Files/MySQL/MySQL Server 8.0/lib/libmysql.lib;
          C:/Program Files/MySQL/MySQL Server 8.0/lib/mysqlclient.lib;
          \" 
        -DMYSQL=ON",
      "buildCommandArgs": "-v",
      "ctestCommandArgs": ""
    }
  ]
}
(all "cmakeCommandArgs" represents one line, but I reformat it here for a readable view)
That's compiling but failed on startup on trying get function from mysqlcppconn-7-vs14.dll
(p.s. I place all libs in build folder, but doesn't help).
(p.s.s adding dll libs path in flag leads to a fail on cmake update)
Is there any maybe more elegant and working method for compiling with the mysql on windows?
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests