How to install the two additional components of MSVC 2017 32-bit and QT Creator 4.11.1 CDB Debug in qt-opensource on windows?
-
wrote on 10 Jan 2023, 10:13 last edited by
I am a newcomer for Qt. Because Qt license, I need to change Qt build environment from install package to qt-opensource in windows. I do step by step according to the guide of https://wiki.qt.io/Building_Qt_5_from_Git#Getting_the_source_code , and I can build Qt successfully, but I can’t find the similar directory of C:\Qt\Qt5.14.2\5.14.2\msvc2017 in my qt-opensource build directory. Would you give some tips according to the process as below:
- Download PortableGit for download the Qt souce code with git
mkdir qt
cd qt
git clone git://code.qt.io/qt/qt5.git
ls
cd qt5
git checkout 5.14.2- install strawperl and python in windows, and then set the path in ProtableGit (edit .bashrc(vim ~/.bashrc ) to set the PATH of perl and python)
perl init-repository
- make the environment for build
@ECHO OFF
REM Set up \Microsoft Visual Studio 2015, where <arch> is \c amd64, \c x86, etc.
CALL "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Auxiliary\Build\vcvars64.bat"REM Edit this location to point to the source code of Qt
SET _ROOT=D:\project\PortableGit\work\qt\qt5SET PATH=%_ROOT%\qtbase\bin;%PATH%
REM Uncomment the below line when using a git checkout of the source repository
REM SET PATH=%_ROOT%\qtrepotools\bin;%PATH%REM Uncomment the below line when building with OpenSSL enabled. If so, make sure the directory points
REM to the correct location (binaries for OpenSSL).
REM SET PATH=C:\OpenSSL-Win32\bin;%PATH%REM When compiling with ICU, uncomment the lines below and change <icupath> appropriately:
REM SET INCLUDE=<icupath>\include;%INCLUDE%
REM SET LIB=<icupath>\lib;%LIB%
REM SET PATH=<icupath>\lib;%PATH%REM Contrary to earlier recommendations, do NOT set QMAKESPEC.
SET _ROOT=
REM Keeps the command line open when this script is run.
cmd /k- configure
mkdir qt5-build
cd qt5-build
..\qt5\configure.bat -platform win32-msvc -developer-build -opensource -nomake examples -nomake tests- make
nmake
there are some binary in the directory of D:\project\PortableGit\work\qt\qt5-build\qtbase\bin
and then I want to build the legacy project code that had been built in Qt install, and then get the build error.
I check the build error with the colleague. we think that the error was caused by the lack of components because I can’t find the similar directory of C:\Qt\Qt5.14.2\5.14.2\msvc2017 in my qt-opensource build directory. Would you give some tips for the issue.
-
I am a newcomer for Qt. Because Qt license, I need to change Qt build environment from install package to qt-opensource in windows. I do step by step according to the guide of https://wiki.qt.io/Building_Qt_5_from_Git#Getting_the_source_code , and I can build Qt successfully, but I can’t find the similar directory of C:\Qt\Qt5.14.2\5.14.2\msvc2017 in my qt-opensource build directory. Would you give some tips according to the process as below:
- Download PortableGit for download the Qt souce code with git
mkdir qt
cd qt
git clone git://code.qt.io/qt/qt5.git
ls
cd qt5
git checkout 5.14.2- install strawperl and python in windows, and then set the path in ProtableGit (edit .bashrc(vim ~/.bashrc ) to set the PATH of perl and python)
perl init-repository
- make the environment for build
@ECHO OFF
REM Set up \Microsoft Visual Studio 2015, where <arch> is \c amd64, \c x86, etc.
CALL "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Auxiliary\Build\vcvars64.bat"REM Edit this location to point to the source code of Qt
SET _ROOT=D:\project\PortableGit\work\qt\qt5SET PATH=%_ROOT%\qtbase\bin;%PATH%
REM Uncomment the below line when using a git checkout of the source repository
REM SET PATH=%_ROOT%\qtrepotools\bin;%PATH%REM Uncomment the below line when building with OpenSSL enabled. If so, make sure the directory points
REM to the correct location (binaries for OpenSSL).
REM SET PATH=C:\OpenSSL-Win32\bin;%PATH%REM When compiling with ICU, uncomment the lines below and change <icupath> appropriately:
REM SET INCLUDE=<icupath>\include;%INCLUDE%
REM SET LIB=<icupath>\lib;%LIB%
REM SET PATH=<icupath>\lib;%PATH%REM Contrary to earlier recommendations, do NOT set QMAKESPEC.
SET _ROOT=
REM Keeps the command line open when this script is run.
cmd /k- configure
mkdir qt5-build
cd qt5-build
..\qt5\configure.bat -platform win32-msvc -developer-build -opensource -nomake examples -nomake tests- make
nmake
there are some binary in the directory of D:\project\PortableGit\work\qt\qt5-build\qtbase\bin
and then I want to build the legacy project code that had been built in Qt install, and then get the build error.
I check the build error with the colleague. we think that the error was caused by the lack of components because I can’t find the similar directory of C:\Qt\Qt5.14.2\5.14.2\msvc2017 in my qt-opensource build directory. Would you give some tips for the issue.
@FranzWang said in How to install the two additional components of MSVC 2017 32-bit and QT Creator 4.11.1 CDB Debug in qt-opensource on windows?:
but I can’t find the similar directory of C:\Qt\Qt5.14.2\5.14.2\msvc2017 in my qt-opensource build directory
C:\Qt\Qt5.14.2\5.14.2\msvc2017 - this is the folder where a prebuild Qt for msvc2017 is installed. But you are trying to build Qt by yourself, so why do you expect to find msvc2017 inside Qt source code tree?
Is there a reason why you're building Qt by yourself? -
wrote on 11 Jan 2023, 04:40 last edited by
@jsulm said in How to install the two additional components of MSVC 2017 32-bit and QT Creator 4.11.1 CDB Debug in qt-opensource on windows?:
C:\Qt\Qt5.14.2\5.14.2\msvc2017 - this is the folder where a prebuild Qt for msvc2017 is installed. But you are trying to build Qt by yourself, so why do you expect to find msvc2017 inside Qt source code tree?
Is there a reason why you're building Qt by yourself?Is there a reason why you're building Qt by yourself?
-----------Because of Qt license, I can't install Qt with the package of qt-opensource-windows-x86-5.14.2.exe. And Because my target software is tool that come from 3rd design, 3rd design suggest us to use Qt for Open Source Development, and then keep open the relevant source code under the open-source rules.Because I am a newcomer, I don't know how to install the two addition components of MSVC 2017 32-bit and QT Creator 4.11.1 CDB Debug in qt-opensource on windows. Would you please give some tips for it? thanks.
-
@jsulm said in How to install the two additional components of MSVC 2017 32-bit and QT Creator 4.11.1 CDB Debug in qt-opensource on windows?:
C:\Qt\Qt5.14.2\5.14.2\msvc2017 - this is the folder where a prebuild Qt for msvc2017 is installed. But you are trying to build Qt by yourself, so why do you expect to find msvc2017 inside Qt source code tree?
Is there a reason why you're building Qt by yourself?Is there a reason why you're building Qt by yourself?
-----------Because of Qt license, I can't install Qt with the package of qt-opensource-windows-x86-5.14.2.exe. And Because my target software is tool that come from 3rd design, 3rd design suggest us to use Qt for Open Source Development, and then keep open the relevant source code under the open-source rules.Because I am a newcomer, I don't know how to install the two addition components of MSVC 2017 32-bit and QT Creator 4.11.1 CDB Debug in qt-opensource on windows. Would you please give some tips for it? thanks.
@FranzWang said in How to install the two additional components of MSVC 2017 32-bit and QT Creator 4.11.1 CDB Debug in qt-opensource on windows?:
qt-opensource-windows-x86-5.14.2.exe
This Qt version is available as prebuild for open source license users. There is no need to build it manually.
-
@FranzWang said in How to install the two additional components of MSVC 2017 32-bit and QT Creator 4.11.1 CDB Debug in qt-opensource on windows?:
qt-opensource-windows-x86-5.14.2.exe
This Qt version is available as prebuild for open source license users. There is no need to build it manually.
wrote on 12 Jan 2023, 04:55 last edited by@jsulm
Do you know how to get the prebuild components of MSVC 2017 32-bit and QT Creator 4.11.1 CDB Debug for Qt 5.14.2 without installing qt-opensource-windows-x86-5.14.2.exe because I can't install the qt-opensource-windows-x86-5.14.2.exe with the company mail because of Qt license? -
1/6