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. How can I specify WinXP MSVC platform toolset when building Qt from source?
Forum Updated to NodeBB v4.3 + New Features

How can I specify WinXP MSVC platform toolset when building Qt from source?

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

    I am building Qt 5.10.1 from source and wish to specify the "vs141_xp" platform toolset to make the libraries and my programs Windows XP compatible. How can I do this?

    The way I currently build Qt is from the VS 2017 x86 Native command prompt like this:

    configure -prefix d:\qt5101 -release -optimize-size -strip -static -static-runtime -mp -silent
    nmake
    nmake install
    

    Thanks

    aha_1980A 1 Reply Last reply
    0
    • Z ZeBe

      I am building Qt 5.10.1 from source and wish to specify the "vs141_xp" platform toolset to make the libraries and my programs Windows XP compatible. How can I do this?

      The way I currently build Qt is from the VS 2017 x86 Native command prompt like this:

      configure -prefix d:\qt5101 -release -optimize-size -strip -static -static-runtime -mp -silent
      nmake
      nmake install
      

      Thanks

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

      @ZeBe

      Don't waste your time: Qt 5.10 is not compatible to Windows XP.

      The latest version you can take is Qt 5.6.x.

      Regards.

      Qt has to stay free or it will die.

      Z 1 Reply Last reply
      2
      • aha_1980A aha_1980

        @ZeBe

        Don't waste your time: Qt 5.10 is not compatible to Windows XP.

        The latest version you can take is Qt 5.6.x.

        Regards.

        Z Offline
        Z Offline
        ZeBe
        wrote on last edited by
        #3

        @aha_1980 Thanks.

        1 Reply Last reply
        0
        • Z Offline
          Z Offline
          ZeBe
          wrote on last edited by ZeBe
          #4

          So the solution to this is to download and install:

          • Visual Studio 2017
          • Qt 5.6.3 sources
          • Perl 5.12
          • Python 2.7
          • Ruby 1.9
          • Win-Flex/Bison

          Start the VS2017 x86 command line prompt, then step into qt\5.6.3\src and configure and build f.ex. like this:

          configure  -prefix path\to\qt\5.6.3\vs2017-xp32-static  -release  -static  -static-runtime  -target xp  -strip  -mp
          nmake
          nmake install
          

          You should now have a new kit called "vs2017-xp32-static" that will produce binaries compatible with WinXP 32-bit, which are stand-alone without dependencies.

          If you only need basic Core and GUI functionality, then step into src\qtbase and build from there instead.

          Good luck

          1 Reply Last reply
          1

          • Login

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