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. Compiling QT 5.10 on Windows Server 2012 R2 and VC 2017

Compiling QT 5.10 on Windows Server 2012 R2 and VC 2017

Scheduled Pinned Locked Moved Solved Installation and Deployment
2 Posts 1 Posters 1.7k 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.
  • C Offline
    C Offline
    Crashdog
    wrote on last edited by Crashdog
    #1

    Hello,
    I'm trying to compile QT 5.10 (everywhere-source) on Windowser Server 2012 R2 with VC 2017 because I want static linking. I tried to follow these instructiuons : https://doc-snapshots.qt.io/qt5-dev/windows-building.html . I altered the file as such:
    CALL "C:\Program Files (x86)\Microsoft Visual Studio\Shared\14.0\VC\vcvarsall.bat " x86
    SET _ROOT=D:\QT\qt-5.10.0
    but I'm getting errors trying to run this.
    Error in script usage. The correct usage is:
    "C:\Program Files (x86)\Microsoft Visual Studio\Shared\14.0\VC\vcvarsall.bat " [option]

    I've seen a lot of different problems reported with vcvarsall.bat but none of the suggested solutions that I found solved mine. Trying to manually set the paths for example to nmake.exe will only create compile errors when trying to compile qt.
    Is there any documentation on what parameters I need to set for my system ? or is my VC installation buggy ? I was able build apps with the installer version of qt.

    Regards,
    Gerhard

    1 Reply Last reply
    0
    • C Offline
      C Offline
      Crashdog
      wrote on last edited by Crashdog
      #2

      The solution that worked for me is to start "Developer Command Prompt for VS2017" (default) followed by running configure.bat in my case with following parameters:

      configure.bat -static -debug -platform win32-msvc -skip qtwebkit -prefix d:\qt

      ... it's still compiling at this moment so not sure yet if it will actually complete successfull yet...

      To me this means that the article : https://doc-snapshots.qt.io/qt5-dev/windows-building.html is not valid for all windows / visual studio versions or an incomplete description.

      Cheers,
      Gerhard

      1 Reply Last reply
      0

      • Login

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