Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt 4.3.1 compile for windows XP
Qt 6.11 is out! See what's new in the release blog

Qt 4.3.1 compile for windows XP

Scheduled Pinned Locked Moved Solved General and Desktop
7 Posts 2 Posters 2.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.
  • ShodanS Offline
    ShodanS Offline
    Shodan
    wrote on last edited by
    #1

    Hi.

    I created a GUI with Qt 4.3.1 installed on windows 7 home x64.
    Nothing special: 5 windows, pictures, animated gifs, buttons to run external programs (vlc, xnView...), sounds when buttons are clicked.

    I compiled it as "release" and added the .dll files from the "...\Qt\5.9.1\mingw53_32\bin" folder.
    It works on my windows 7.
    There were other .dll files with the same names in the "...Qt\Tools\QtCreator\bin" folder, but they didn't work, so I guess they are the .dll for "debug"...

    My problem is that it is supposed to work on windows XP pro 32x.
    By running the .exe under XP, the following message comes up: "Unable to find CancelIoEx in KERNEL.dll libray".
    (I translated the message, maybe it's not exactly like this)

    I found some threads about this telling to add "-target xp" parameters somewhere, but the beginner I am didn't really understand a lot about it.

    It took me many hours to write the code and it's quite upsetting to be stuck at the very last step :-(

    SOS please help me.

    Thanks in advance!

    1 Reply Last reply
    0
    • hskoglundH Offline
      hskoglundH Offline
      hskoglund
      wrote on last edited by hskoglund
      #2

      Your Qt version 5.9.1 is too new for XP :-(
      Either Qt 5.6.2 or Qt 5.7.1 works fine for Windows XP.

      1 Reply Last reply
      3
      • ShodanS Offline
        ShodanS Offline
        Shodan
        wrote on last edited by
        #3

        Ok

        I'll download an older version of Qt and try.

        Hope there will be no problems with the code created with a newer version.

        Thanks.

        1 Reply Last reply
        0
        • ShodanS Offline
          ShodanS Offline
          Shodan
          wrote on last edited by
          #4

          I installed Qt 5.6.2, opened and compiled the project. No errors, and It starts under XP.
          Great.

          However there is still something I cant' figure out:

          After compilation, I pasted the folders with the photos, sounds, plugins and other stuff next to the .exe file in the release folder, and placed that same release folder on a USB stick.

          When I run the .exe with the Pc I compiled with, everything is fine.
          When I run it on another PC, no sounds, no photos...???

          To test, I pluged the USB stick back on the PC I compiled with, changed the name of a photo and then ran the .exe file.
          The photo I changed the name did not show up, so I'm sure the program takes the photos on the USB stick, and not those of the Qt output folder.

          What is happening?
          Thanks again.

          1 Reply Last reply
          0
          • ShodanS Offline
            ShodanS Offline
            Shodan
            wrote on last edited by
            #5

            All pictures the are set like this:

            picture1 = new QLabel (this);
            picture1->setPixmap (QPixmap("pictures/picture1.jpg"));
            picture1->move (100, 100);
            

            Maybe something to do with the folder paths...?

            1 Reply Last reply
            0
            • hskoglundH Offline
              hskoglundH Offline
              hskoglund
              wrote on last edited by
              #6

              Hi I also got bitten by that bug (no icons on my toolbar on another PC!). You need to copy more of those plugin .dlls. Try copying all of the files in the imageformats and audio folders...

              1 Reply Last reply
              3
              • ShodanS Offline
                ShodanS Offline
                Shodan
                wrote on last edited by
                #7

                First time I tried, I decided to copy all the plugin folders next to my .exe and sort them later, but it didn't work.
                Did everything again... compilation...dlls...plugins... And now it works. Woooonderful!
                Certainly a wrong handeling of mine.

                The only little problem left is that under XP, the ToolTips screen all black.
                I'm going to try to fix this, or simply kick them out if I don't get it.

                Thank you very much for your help sir!

                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