From cd59bc3d6d99c43e7c7d03475402ff4685d31312 Mon Sep 17 00:00:00 2001 From: Megamouse Date: Tue, 26 Jun 2018 23:24:19 +0200 Subject: [PATCH] bump appveyor Qt version to 5.11 --- README.md | 29 +++++++++++++++-------------- appveyor.yml | 2 +- rpcs3/CMakeLists.txt | 9 ++++++--- 3 files changed, 22 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index 7543477e58..a506434867 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ If you want to contribute please take a look at the [Coding Style](https://githu * [Visual C++ Redistributable Packages for Visual Studio 2015](http://www.microsoft.com/en-us/download/details.aspx?id=48145) * [Cmake 3.1.0+](https://www.cmake.org/download/) (required; add to PATH) * [Python 3.3+](https://www.python.org/downloads/) (required; add to PATH) -* [Qt 5.10+](https://www.qt.io/download-open-source/) (required; add QTDIR environment variable if you do not want to use the Visual Studio Qt Plugin: e.g. `\5.10.1\msvc2015_64\`) +* [Qt 5.10+](https://www.qt.io/download-open-source/) (required; add QTDIR environment variable if you do not want to use the Visual Studio Qt Plugin: e.g. `\5.11.1\msvc2015_64\`) * [Visual Studio Qt Plugin](https://marketplace.visualstudio.com/items?itemName=TheQtCompany.QtVisualStudioTools2015) (optional; see above) * [Vulkan SDK](https://sdk.lunarg.com/sdk/download/1.1.73.0/windows/VulkanSDK-1.1.73.0-Installer.exe) (required) @@ -47,39 +47,40 @@ MacOS is not supported at this moment because it doesn't meet system requirement ## Building on Windows: To initialize the repository don't forget to execute `git submodule update --init` to pull the submodules. +*If you're using Visual Studio 2017, when you first open the project, do not upgrade the targets or the packages. Leave both at "No upgrade". Note that you will need the v140 toolset, which may not be in 2017 by default.* + ### Configuring Qt *If you're using Visual Studio 2017 without Qt plugin support (or simply dont want to use it):* -1) Add `QTDIR` environment variable and set it to e.g `\5.10.1\msvc2015_64\`
- - -*If you're using Visual Studio 2017, when you first open the project, do not upgrade the targets or the packages. Leave both at "No upgrade". Note that you will need the v140 toolset, which may not be in 2017 by default.*
+1) Add `QTDIR` environment variable and set it to e.g `\5.11.1\msvc2015_64\` Open `rpcs3.sln` *If you wish to use the Visual Studio plugin for Qt:*
-1) Go to the Qt5 menu and edit Qt5 options. Add the path to your Qt installation with compiler e.g. `C:\Qt\5.10.1\msvc2015_64`.
+1) Go to the Qt5 menu and edit Qt5 options. Add the path to your Qt installation with compiler e.g. `C:\Qt\5.11.1\msvc2015_64`. 2) While selecting the rpcs3qt project, go to Qt5->Project Setting and select the version you added. ### Building the projects -The recommended build configuration is Release - LLVM, for all purposes.

+The recommended build configuration is Release - LLVM, for all purposes. + You may want to download precompiled [LLVM lib](https://github.com/RPCS3/llvm/releases/download/continuous-release_60/llvmlibs.7z) and extract to root rpcs3 folder (which contains `rpcs3.sln`), as well as download and extract [additional libs](https://drive.google.com/uc?export=download&id=1A2eOMmCO714i0U7J0qI4aEMKnuWl8l_R) to `lib\%CONFIGURATION%-x64\` to speed up compilation time (unoptimised/debug libs are currently not available precompiled). -If you're not using precompiled libs, build the projects in *__BUILD_BEFORE* folder: right-click on every project > *Build*.

+If you're not using precompiled libs, build the projects in *__BUILD_BEFORE* folder: right-click on every project > *Build*. -`Build > Build Solution`
+ +`Build > Build Solution` ## Building on Linux & Mac OS: -1) `git clone https://github.com/RPCS3/rpcs3.git`
-2) `cd rpcs3/`
-3) `git submodule update --init`
+1) `git clone https://github.com/RPCS3/rpcs3.git` +2) `cd rpcs3/` +3) `git submodule update --init` 4) `cd ../ && mkdir rpcs3_build && cd rpcs3_build` -4) `cmake ../rpcs3/ && make GitVersion && make`
-5) Run RPCS3 with `./bin/rpcs3`
+4) `cmake ../rpcs3/ && make GitVersion && make` +5) Run RPCS3 with `./bin/rpcs3` If you are on MacOS and want to build with brew llvm and qt don't forget to add the following environment variables diff --git a/appveyor.yml b/appveyor.yml index 6fbb45794b..09ed5718ea 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -4,7 +4,7 @@ version: '{build}' image: Visual Studio 2015 environment: - QTDIR: C:\Qt\5.10\msvc2015_64 + QTDIR: C:\Qt\5.11\msvc2015_64 LLVMLIBS: https://github.com/RPCS3/llvm/releases/download/continuous-release_60/llvmlibs.7z GLSLANG: https://drive.google.com/uc?export=download&id=1nJK_NEeRzJ_r_u4zWLySwLmMrV8ZO_wL COMPATDB: https://rpcs3.net/compatibility?api=v1&export diff --git a/rpcs3/CMakeLists.txt b/rpcs3/CMakeLists.txt index 36052574e9..e15c27954b 100644 --- a/rpcs3/CMakeLists.txt +++ b/rpcs3/CMakeLists.txt @@ -27,10 +27,13 @@ if(NOT Qt5Widgets_FOUND) message("Minimum supported Qt5 version is 5.10.0! You have version ${Qt5Widgets_VERSION} installed, please upgrade!") if(CMAKE_SYSTEM MATCHES "Linux") message(FATAL_ERROR "Most distros do not provide an up-to-date version of Qt. -If you're on Ubuntu or Linux Mint, there are PPAs you can use to install an up-to-date qt5 version. - https://launchpad.net/~beineri/+archive/ubuntu/opt-qt-5.10.1-xenial +If you're on Ubuntu or Linux Mint, there are PPAs you can use to install one of the latest qt5 versions. + https://launchpad.net/~beineri/+archive/ubuntu/opt-qt-5.11.0-bionic + https://launchpad.net/~beineri/+archive/ubuntu/opt-qt-5.11.0-xenial https://launchpad.net/~beineri/+archive/ubuntu/opt-qt-5.10.1-trusty just make sure to run + source /opt/qt511/bin/qt511-env.sh +respective source /opt/qt510/bin/qt510-env.sh before re-running cmake") elseif(WIN32) @@ -42,7 +45,7 @@ before re-running cmake") message("CMake was unable to find Qt5!") if(WIN32) - message(FATAL_ERROR "Make sure the QTDIR env variable has been set properly. (for example C:\\Qt\\5.10.1\\msvc2017_64\\)") + message(FATAL_ERROR "Make sure the QTDIR env variable has been set properly. (for example C:\\Qt\\5.11.1\\msvc2017_64\\)") elseif(CMAKE_SYSTEM MATCHES "Linux") message(FATAL_ERROR "Make sure to install your distro's qt5 package!") else()