Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. 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?
Forum Updated to NodeBB v4.3 + New Features

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?

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
6 Posts 2 Posters 1.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    FranzWang
    wrote on 10 Jan 2023, 10:13 last edited by
    #1

    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:

    1. 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

    1. 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

    1. 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\qt5

    SET 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

    1. configure

    mkdir qt5-build
    cd qt5-build
    ..\qt5\configure.bat -platform win32-msvc -developer-build -opensource -nomake examples -nomake tests

    1. 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.

    J 1 Reply Last reply 10 Jan 2023, 10:30
    0
    • F FranzWang
      10 Jan 2023, 10:13

      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:

      1. 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

      1. 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

      1. 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\qt5

      SET 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

      1. configure

      mkdir qt5-build
      cd qt5-build
      ..\qt5\configure.bat -platform win32-msvc -developer-build -opensource -nomake examples -nomake tests

      1. 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.

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 10 Jan 2023, 10:30 last edited by
      #2

      @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?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • F Offline
        F Offline
        FranzWang
        wrote on 11 Jan 2023, 04:40 last edited by
        #3

        @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.

        J 1 Reply Last reply 11 Jan 2023, 06:08
        0
        • F FranzWang
          11 Jan 2023, 04:40

          @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.

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 11 Jan 2023, 06:08 last edited by
          #4

          @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.

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          F 1 Reply Last reply 12 Jan 2023, 04:55
          0
          • J jsulm
            11 Jan 2023, 06:08

            @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.

            F Offline
            F Offline
            FranzWang
            wrote on 12 Jan 2023, 04:55 last edited by
            #5

            @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 Reply Last reply
            0
            • J Offline
              J Offline
              jsulm
              Lifetime Qt Champion
              wrote on 12 Jan 2023, 09:47 last edited by
              #6

              https://download.qt.io/archive/qt/5.14/5.14.2/

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              1

              1/6

              10 Jan 2023, 10:13

              • Login

              • Login or register to search.
              1 out of 6
              • First post
                1/6
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved