PDA

View Full Version : EXE compiled in Win7 NOT working in XP



fakhir
13th September 2010, 01:24
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?

Talei
13th September 2010, 03:12
Try copy ...\qt\plugins\imageformats dlls also to the project directory, i.e. .../myproject/imageformats.

Lesiok
13th September 2010, 07:43
Just use on XP machine Dependency Walker (http://www.dependencywalker.com/) to find missing DLLs.

fakhir
13th September 2010, 09:03
Yes, working perfectly after copying plugin files. Thankyou !