Results 1 to 4 of 4

Thread: EXE compiled in Win7 NOT working in XP

  1. #1
    Join Date
    Sep 2010
    Posts
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Default EXE compiled in Win7 NOT working in XP

    Details:
    I compiled a simple project as follows in Win7: {The app opens and displays an image in the current directory}

    qmake -project
    qmake
    mingw32-make -f Makefile.Release

    After that I copied the QTcore and QTGui dll files from the ../qt/bin folder to the exe folder. In Win7 it is working fine.

    But when I copy this exe and the dll files to XP, it doesn't work properly {i.e: the app executes but doesn't display the image}


    On the other hand, app compiled on XP using similar steps is not working on win7.


    What could possibly be wrong?

  2. #2
    Join Date
    Dec 2008
    Location
    Poland
    Posts
    383
    Thanks
    52
    Thanked 42 Times in 42 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: EXE compiled in Win7 NOT working in XP

    Try copy ...\qt\plugins\imageformats dlls also to the project directory, i.e. .../myproject/imageformats.
    Last edited by Talei; 13th September 2010 at 03:22.
    In the near future - corporate networks reach out to the stars. Electrons and light flow throughout the universe.
    The advance of computerization however, has not yet wiped out nations and ethnic groups.

  3. #3
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,536
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: EXE compiled in Win7 NOT working in XP

    Just use on XP machine Dependency Walker to find missing DLLs.

  4. #4
    Join Date
    Sep 2010
    Posts
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Default Re: EXE compiled in Win7 NOT working in XP

    Yes, working perfectly after copying plugin files. Thankyou !

Similar Threads

  1. Segfault when running debug in Win7 x64 (gdb-MinGW)
    By BitMaster in forum Installation and Deployment
    Replies: 5
    Last Post: 6th February 2012, 17:33
  2. Replies: 5
    Last Post: 13th December 2011, 13:43
  3. Replies: 0
    Last Post: 17th August 2010, 15:35
  4. Win7 64bit remote debugging
    By mekl in forum Qt Programming
    Replies: 0
    Last Post: 20th June 2010, 20:20
  5. Vista/Win7 UAC Shield Icon on QPushButton?
    By ChrisW67 in forum Qt Programming
    Replies: 4
    Last Post: 10th May 2010, 08:14

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.