Results 1 to 6 of 6

Thread: [QT4.6] Qt and Windows: after compiling, how to execute the application?

  1. #1
    Join Date
    Mar 2010
    Posts
    9
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60

    Default [QT4.6] Qt and Windows: after compiling, how to execute the application?

    Hi at all,
    My problem is simple I think (I'm a newbie): I've created a simple application in QT 4.6 under linux & windows. the same application.
    While in linux, thanks to dynamic library, i can just execute the executable file, In windows if I click on the .exe it says me that cannot find some dll. That's right because windows hasn't dinamyc library. The only way I've found to start the application in windows is to execute it from the QT command shell.After I've Installed QT SDK.
    Now I'm asking: Downloading a 300MB SDK and excute the application from command line it's really the only way to start the app on windows?(a little application of 2-3 Mb).
    Doesn't really exist some light runtime library? Starting it from the shell it is the only way? It is really necessary to install the SDK?

    I don't think so, otherwise the famous portability of QT wasn't really so good. It's just I'm a newbie, i'm sure! .

    Someone can help me?

    Thanks in advance and sorry for my bad english

    Wing

  2. #2
    Join Date
    Sep 2009
    Posts
    72
    Thanked 10 Times in 10 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded Qt Jambi
    Platforms
    Unix/X11 Windows

    Default Re: [QT4.6] Qt and Windows: after compiling, how to execute the application?

    Hi,
    All you have to is export Qt bin path in your PATH environment variable
    Here try this steps

    assuming u know how to export environment variable on windows, otherwise follow this link http://support.microsoft.com/kb/310519

    Set environment variable name QTDIR and set value to your Qt directory (Ex. C:\Qt\4.6.2)
    edit environment variable name PATH and append value to it as %QTDIR%\bin;

    Thats it, you application will start running on double click

  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: [QT4.6] Qt and Windows: after compiling, how to execute the application?


  4. #4
    Join Date
    Mar 2010
    Posts
    9
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60

    Default Re: [QT4.6] Qt and Windows: after compiling, how to execute the application?

    Tnx lesiok,
    I've read that document but can't help me. I now that i have to static link my apps, but, in the sdk windows installation i've not the command "nmake" that the guide tell me to execute.

    I've integrated in the sam folder the QT dll (like qtcore.dll & so on ) but when the program start tell me :" Impossible to find _Z5Freepv in the bookcase of dynamic library".
    Why this? how can I fix it?

  5. #5
    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: [QT4.6] Qt and Windows: after compiling, how to execute the application?

    You must search on the forum. Problem was described many times.
    As I remember (I don't use SDK) SDK have two versions of DLL's and You must copy correct version of this. Of course if You have exe compiled in debug mode You must have to copy debug mode Qt DLL's (letter d in name).

  6. #6
    Join Date
    Jun 2007
    Location
    Louisiana
    Posts
    77
    Thanks
    1
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: [QT4.6] Qt and Windows: after compiling, how to execute the application?

    Windows does have dynamic libraries. They are just called dll's on Windows. See the solution described in the post on this forum titled ".EXE error when trying to run Application"

Similar Threads

  1. Replies: 3
    Last Post: 28th February 2010, 08:10
  2. Can't execute a Stand Alone Qt Application after compiling
    By aarelovich in forum Qt Programming
    Replies: 5
    Last Post: 8th October 2009, 17:59
  3. How to execute an exe file from Qt application
    By maveric in forum Qt Programming
    Replies: 1
    Last Post: 24th May 2008, 10:24
  4. Replies: 10
    Last Post: 28th April 2006, 15:48
  5. Replies: 1
    Last Post: 15th February 2006, 22:17

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.