x64dbg/docs/COMPILE-linux.md
Eldar Khayrullin dc3b0a6540
Msvc wine build x64 architecture (#3669)
* COMPILE-linux: clarified the issues description

* qt-wine: delete deprecated workaround

* COMPILE-linux: restyle

* COMPILE-linux: add the instruction for build x64 architecture

* readme: add reference to linux compile

* Revert "readme: add reference to linux compile"

This reverts commit 56dbeb1f44.
2025-08-03 15:08:25 +02:00

936 B

Prerequisites

sudo apt update
sudo apt install cmake ninja-build wine

Install MSVC

Download https://github.com/mstorsjo/msvc-wine

cd msvc-wine
./vsdownload.py --accept-license --dest ~/opt/msvc Microsoft.VisualStudio.Workload.VCTools Microsoft.VisualStudio.Component.VC.ATL
./install.sh ~/opt/msvc

Build

x86

cd x64dbg
export MSVC_BIN_DIR=~/opt/msvc/bin/x86
export QT_BIN_DIR=~/src/x64dbg/build32/_deps/qt5-src/bin
cmake -B build32 -DCMAKE_TOOLCHAIN_FILE=cmake/msvc-wine.cmake -G Ninja
cmake --build build32 -j4

x64

cd x64dbg
export MSVC_BIN_DIR=~/opt/msvc/bin/x64
export QT_BIN_DIR=~/src/x64dbg/build64/_deps/qt5-src/bin
cmake -B build64 -DCMAKE_TOOLCHAIN_FILE=cmake/msvc-wine.cmake -G Ninja
cmake --build build64 -j4

Issues

  • LINK : fatal error LNK1158: cannot run 'rc.exe'

Fix: winecfg -> Drives -> Remove drives with alternative path to x64dbg src (like: E: -> ~/src)