CyberPunk 2077 Compile Instructions

This is a semi-detailed guide on how to compile the CyberPunk 2077 source code from the leak

Prerequisites

  1. Install the redistributables listed in downloads
  2. Install Visual Studio 2017 with MFC v141 for x86 and x64 as well as C++ Utilities
  3. Install the Xbox SDK from the !CP SDK folder.

Building

  1. Go to the mainline directory (root\R6.root\Mainline)
  2. Open a terminal and run %cd%\tools\buildsystem\premake5.exe vs2017 --file=%cd%\dev\src\premake5.lua --no-editandcontinue --no-incrementallink --mp-compilation
  3. Open the solution generated in \dev\temp\vs2017 named R6.sln
  4. Select Release x64
  5. Ctrl+Shift B

Running

Binaries will be put in \bin\Release
run launcher.exe and compile the maps

Downloads

Required for avoiding this error
2015, 2017, 2019, and 2022 Redistributables x64
2015, 2017, 2019, and 2022 Redistributables x86

2013 Redistributables x64
2013 Redistributables x86

Visual Studio 2017 Community - Make sure you download the MFC v141 for x86 and x64 as well as C++ Utilities

CyberPunk 2077 Source Code (Torrent)
CyberPunk 2077 Source Code (Torrent) - Mirror 1
CyberPunk 2077 Source Code (Torrent) - Mirror 3
I couldn't find direct downloads, only torrents for now. I will try to keep them seeded.

CyberPunk 2077 Source Code (Original Magnet), contains Xbox SDK

CyberPunk 2077 Fixes
CyberPunk 2077 Fixes - Mirror 1

Edit
Pub: 21 Sep 2022 13:17 UTC
Edit: 21 Sep 2022 13:43 UTC
Views: 434