You must select at least one version of Qt for the MSVC compiler and the correct architecture (for example: Qt 5.12.2 which is a Qt5 version). Qt is very large, and by default the installer may select a lot of components that we don't need in Select Components.
Feel free to skip it if you already have them.Įlse you can download and install Qt5 (open source version) from: You will use Chocolatey to install Python, Git, and Visual Studio 2019 with Cmake, WindowsSDK, and MSVC. Just remember to add them to PATH (or to be able to open folders as projects in Visual Studio). You can install most dependencies easier in a Command Line Interface, but you can skip this step and install everything from their official pages or other package managers.
If you have any error using this script, please check that the QT5 URL from where we get the installer still works, that Chocolatey installation has not changed, or that you remembered to add your QT mail account and QT password to QT installer arguments. Powershell.exe -Command "::SetEnvironmentVariable('Path', $env:Path + ' %cd%\Qt\5.15.2\msvc2019_64 %cd%\LibreCAD_3\out\build\圆4-Debug\lib %cd%\Qt\5.15.2\msvc2019_64\bin', 'User') " :: Modify CMakeSettings Doesn't work ::copy /y CMakeSettings.json LibreCAD_3\CMakeSettings.json REM Last step is not Automatic, Please Visit :: directories should be dictated to the user or hardcoded as relative paths REM Adding new env Variables and PATH appends setx QTDIR " %cd%\Qt\5.15.2\msvc2019_64 " & setx QT_QPA_PLATFORM_PLUGIN_PATH " %QTDIR%\plugins\platforms\ " :: Here can't use setx since if PATH is long, it will be truncated, therefore, Powershell :: %cd%\Qt\5.15.2\msvc2019_64\bin is not in the wiki, I had to add it so it detected Qt5Widgets.dll
:: These arguments will have to be added and specified below since the license needs a Qt account.
If it fails, modify the profile compiler version and try again mkdir conanĬonan profile update = 16 default
REM Install Python for pip and use pip for ConanĬhoco feature disable -n=allowGlobalConfirmation & ::Enabling again confirmation prompts REM Cloning repository REM Install VisualStudio with all the needed componentsĬhoco install visualstudio2019community -package-parameters=' "-add .CMake.Project .Tools.x86.圆4 10SDK.19041 "' REM This script has to be used in an elevated cmd REM Install Chocolatey " %SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe " -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "::SecurityProtocol = 3072 iex ((New-Object ).DownloadString('')) " & SET " PATH = %PATH% %ALLUSERSPROFILE%\chocolatey\bin "Ĭhoco feature enable -n=allowGlobalConfirmation & ::Get rid of confirmation prompts REM Install Git We recommend looking below to understand it and be able to modify it for what you need (for example, you must create a QT account and add it to the script). bat and move there with cd before calling it.) should be able to do all steps other than "Visual Studio CMake" (aka building the project with Visual Studio’s GUI). The following batch script ( must be used in a cmd with administrator privileges, not clicked from File Explorer. The last step must be done in GUI (I have not found a way to build the project without it). There are steps below where you can install applications in CLI (with a cmd) or you can get it using the official installer of the application on their official website. We recommend installing everything in an empty directory, so you can copy-paste the movements between directories and use the same elevated cmd unless stated otherwise in the concrete instruction. Chocolatey commands need the cmd with administrative privileges. Qt libraries are needed for its building. Also, it will use Visual Studio to build the project. Note: This process will use Conan to download the dependencies. You need to compile Google Test in /usr/src/gtest and move the libraries in /usr/lib Windows
Apt-get install qttools5-dev qttools5-dev-tools libqt5opengl5-dev liblua5.2-dev git g++ libcairo2-dev libpango-1.0-0 libpango1.0-dev libboost-dev libboost-log-dev libboost-program-options-dev libqt5svg5-dev libgtest-dev libeigen3-dev libcurl4-gnutls-dev libgtk-3-dev libglew-dev rapidjson-dev libbz2-dev libglfw3-dev libglm-dev