1
0
Fork 0

msvc-wine: Fix: LINK : fatal error LNK1158: cannot run 'rc.exe'

This commit is contained in:
Eldar Khayrullin 2025-07-23 22:01:45 +03:00
parent cd850f6c2c
commit bbec21fde3
2 changed files with 5 additions and 4 deletions

View File

@ -5,9 +5,5 @@ set(CMAKE_C_COMPILER ${MSVC_BIN_DIR}/cl)
set(CMAKE_CXX_COMPILER ${MSVC_BIN_DIR}/cl)
set(CMAKE_RC_COMPILER ${MSVC_BIN_DIR}/rc)
# FIX LINK : fatal error LNK1158: cannot run 'rc.exe'
set(CMAKE_EXE_LINKER_FLAGS /MANIFEST:NO)
set(CMAKE_SHARED_LINKER_FLAGS /MANIFEST:NO)
set(CMAKE_PROJECT_INCLUDE ${CMAKE_CURRENT_LIST_DIR}/qt-wine.cmake)

View File

@ -20,3 +20,8 @@ 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
```
## Issues
```LINK : fatal error LNK1158: cannot run 'rc.exe'```
Fix: winecfg -> Drives -> Remove non default drives (stay only: C and Z drives).