Fixed Qt version, extended documentation.

master
Martin Felis 2021-01-31 21:33:30 +01:00
parent 4f7bc0fae1
commit fc16eab7dd
2 changed files with 22 additions and 9 deletions

View File

@ -6,10 +6,13 @@ Parts of it based on: https://gist.github.com/HiImJulien/3eb47d7d874fe5483810bd7
## Requirements
- Clang Version 10
- Clang Version >= 10
- Visual Studio Build Tools: https://visualstudio.microsoft.com/downloads/
- The following components are sufficient:
* MSVC v142 - VS 2019 C++-x64/x86-Buildtools (v14.28)
+ Windows 10 SDK (10.0.19041.0)
- Qt5: https://download.qt.io/official_releases/qt
- again when installing it is sufficient to install msvc version of Qt5
## Instructions Linux
@ -44,13 +47,23 @@ Parts of it based on: https://gist.github.com/HiImJulien/3eb47d7d874fe5483810bd7
- Install MinGW Make
- Install JetBrains CLion (https://jetbrains.com/clion)
### Steps
### Steps (VS Toolchain)
- Open project
- Adjust Toolchain
- Go to Toolchain Settings
- Remove existing Toolchains
- Add MinGW Toolchain
- Choose Visual Studio Toolchain
- Set CMake Options to:
`-DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER=C:/llvm/bin/clang-cl.exe -DCMAKE_CXX_COMPILER=C:/llvm/bin/clang-cl.exe -DCMAKE_C_FLAGS=-m64 -DCMAKE_CXX_FLAGS=-m64 -DCMAKE_LINKER=c:/llvm/bin/lld-link.exe`
### Steps (MinGW Toolchain)
- Open project
- Adjust Toolchain
- Go to Toolchain Settings
- Remove existing Visual Studio Toolchain
- Add MinGW Toolchain
- Adjust CMake Profiles
- Add `-DCMAKE_TOOLCHAIN_FILE=clang_windows_toolchain.cmake` as CMake
parameters
- Add `-DCMAKE_TOOLCHAIN_FILE=clang_windows_toolchain.cmake` as CMake
parameters
**TODO**: How to set up debugger?

View File

@ -1,7 +1,7 @@
# Cross toolchain configuration for using clang-cl.
set(WINSDK_VER "10.0.19041.0")
set(QT5_VERSION "5.12.20")
set(QT5_VERSION "5.12.10")
if(WIN32)
set(CMAKE_C_COMPILER "C:/llvm/bin/clang-cl.exe")