1
0
Fork 0

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 56dbeb1f448ae11d1f79c5c99cc9dfb1b9b84cb1.
This commit is contained in:
Eldar Khayrullin 2025-08-03 16:08:25 +03:00 committed by GitHub
parent 79539ee416
commit dc3b0a6540
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 12 additions and 7 deletions

View File

@ -27,7 +27,3 @@ qt5_host_tool(moc)
qt5_host_tool(rcc)
qt5_host_tool(uic)
# FIX: -external:I not found system includes
set(CMAKE_INCLUDE_SYSTEM_FLAG_C "-I")
set(CMAKE_INCLUDE_SYSTEM_FLAG_CXX "-I")

View File

@ -13,6 +13,7 @@ cd msvc-wine
```
## Build
x86
```sh
cd x64dbg
export MSVC_BIN_DIR=~/opt/msvc/bin/x86
@ -21,8 +22,16 @@ cmake -B build32 -DCMAKE_TOOLCHAIN_FILE=cmake/msvc-wine.cmake -G Ninja
cmake --build build32 -j4
```
x64
```sh
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 non default drives (stay only: C and Z drives).
- ```LINK : fatal error LNK1158: cannot run 'rc.exe'```
> Fix: winecfg -> Drives -> Remove drives with alternative path to x64dbg src (like: E: -> ~/src)