Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Problems building Qt 5.9.4 from source on Windows
Forum Updated to NodeBB v4.3 + New Features

Problems building Qt 5.9.4 from source on Windows

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
6 Posts 3 Posters 1.5k 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.
  • AndyBriceA Offline
    AndyBriceA Offline
    AndyBrice
    wrote on last edited by
    #1

    I did the following:

    Install Visual Studio 2017
    started a 'x86 native tools command prompt for VS 2017' cmd shell
    downloaded and unzipped https://download.qt.io/official_releases/qt/5.9/5.9.4/single/qt-everywhere-opensource-src-5.9.4.zip to S:\Qt\5.9.4

    cd S:\Qt\5.9.4

    set QTDIR=S:\Qt\5.9.4\qtbase

    set PATH=%QTDIR%\bin;%PATH%

    configure -opensource -confirm-license -opengl desktop -skip qtwebengine -nomake tests -nomake examples -no-plugin-manifests -debug-and-release -platform win32-msvc -verbose

    nmake

    Everything seemed to work ok. But when I try to build my application (which used SVG) I get:

    Unknown module(s) in QT:svg

    When I look at S:\Qt\5.9.4 I see there are qt5svg.dll files in:
    S:\Qt\5.9.4\qtsvg\bin
    S:\Qt\5.9.4\qtsvg\lib

    But they haven't been copied to S:\Qt\5.9.4\qtbase\bin . In fact S:\Qt\5.9.4\qtbase\bin looks rather empty.

    I've wasted hours on this. Any ideas would be much appreciated.

    aha_1980A 1 Reply Last reply
    0
    • AndyBriceA AndyBrice

      I did the following:

      Install Visual Studio 2017
      started a 'x86 native tools command prompt for VS 2017' cmd shell
      downloaded and unzipped https://download.qt.io/official_releases/qt/5.9/5.9.4/single/qt-everywhere-opensource-src-5.9.4.zip to S:\Qt\5.9.4

      cd S:\Qt\5.9.4

      set QTDIR=S:\Qt\5.9.4\qtbase

      set PATH=%QTDIR%\bin;%PATH%

      configure -opensource -confirm-license -opengl desktop -skip qtwebengine -nomake tests -nomake examples -no-plugin-manifests -debug-and-release -platform win32-msvc -verbose

      nmake

      Everything seemed to work ok. But when I try to build my application (which used SVG) I get:

      Unknown module(s) in QT:svg

      When I look at S:\Qt\5.9.4 I see there are qt5svg.dll files in:
      S:\Qt\5.9.4\qtsvg\bin
      S:\Qt\5.9.4\qtsvg\lib

      But they haven't been copied to S:\Qt\5.9.4\qtbase\bin . In fact S:\Qt\5.9.4\qtbase\bin looks rather empty.

      I've wasted hours on this. Any ideas would be much appreciated.

      aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @AndyBrice

      did you run nmake install?

      Qt has to stay free or it will die.

      1 Reply Last reply
      0
      • AndyBriceA Offline
        AndyBriceA Offline
        AndyBrice
        wrote on last edited by
        #3

        No. You don't do 'nmake install' on Windows if you are doing an 'in tree' build (the default). This is explained in the Windows build instructions somewhere.

        1 Reply Last reply
        0
        • AndyBriceA Offline
          AndyBriceA Offline
          AndyBrice
          wrote on last edited by
          #4

          Alos I build Qt 5.5.1 following basically the same process, without any issues.

          1 Reply Last reply
          0
          • AndyBriceA Offline
            AndyBriceA Offline
            AndyBrice
            wrote on last edited by
            #5

            I never managed to get the build from source working on Windows. I had to install from binaries. but even that was a hassle. If anyone is interested there are more details here:
            https://successfulsoftware.net/2018/04/08/getting-qt-5-9-working-on-windows-eventually/

            1 Reply Last reply
            0
            • machomaniM Offline
              machomaniM Offline
              machomani
              wrote on last edited by
              #6

              I have successfully build Qt 5.9 with additional argument -prefix C:\Qt5.9 while configuring and then nmake and nmake install.

              1 Reply Last reply
              2

              • Login

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