CyberPunk 2077 Compile Instructions
This is a semi-detailed guide on how to compile the CyberPunk 2077 source code from the leak
Prerequisites
- Install the redistributables listed in downloads
- Install Visual Studio 2017 with
MFC v141 for x86 and x64
as well asC++ Utilities
- Install the Xbox SDK from the
!CP SDK
folder.
Building
- Go to the mainline directory (root\R6.root\Mainline)
- Open a terminal and run
%cd%\tools\buildsystem\premake5.exe vs2017 --file=%cd%\dev\src\premake5.lua --no-editandcontinue --no-incrementallink --mp-compilation
- Open the solution generated in \dev\temp\vs2017 named R6.sln
- Select Release x64
- 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