[Moved] Problem with .exe file in debug folder?



  • While i am clicking .exe file of my project in my system in which Qtsdk is installed i am getting proper output but while i am coping the debug folder in another system and repeating the same procedure i am not getting the image associated with the project in the output.
    What may be the cause of that?


  • Moderators

    Did you deploy the Qt libraries that your application uses properly? Make sure to include all the Qt plugins.

    Use filemon to monitor which of them are accessed when starting up your application and put them into a place where Qt can find them on your target system.



  • [quote author="Tobias Hunger" date="1323163099"]Did you deploy the Qt libraries that your application uses properly? Make sure to include all the Qt plugins.

    Use filemon to monitor which of them are accessed when starting up your application and put them into a place where Qt can find them on your target system.
    [/quote]

    The program i checked was a simple program just containing one image in the resource file displaying on the window using stylesheet . For that i have included necessary .dll files but which Qt plugins and libraries i should include for that? Can you please specify?





  • [quote author="fluca1978" date="1323166579"]Does "this":http://doc.qt.nokia.com/latest/deployment-windows.html help?[/quote]
    I have tried but not getting the jpeg image. I have included the qtjpeg4.dll but still not getting the
    image. what may be the problem.



  • How you include qjpeg4.dll?
    it must placed in imageformats folder.



  • [quote author="qxoz" date="1323170898"]How you include qjpeg4.dll?
    it must placed in imageformats folder.[/quote]

    I have created an imageformats folder inside the debug folder and inside that i have copied the dll.
    debug->imageformats->qjpeg4.dll
    Does i have to give any extra function inside my application. I have seen in the doc. like app.addlibrarypath() but not clear what path i should pass as parameter.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.