Results 1 to 4 of 4

Thread: Qt 4 apps on Windows are not startable from the Windows GUI

  1. #1
    Join Date
    Jan 2006
    Location
    11 N 78 E
    Posts
    110
    Thanks
    10
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Question Qt 4 apps on Windows are not startable from the Windows GUI

    If I right-click on a binary file created using Qt in Windows, I am unable to load the program. Apparently it is missing the Qt DLLs in my source path. What do I do to correct this and isn't this a bug in the Qt installer? It should put the DLLs in the windows/system32 folder.
    Penguin #395953 using Qt for open-source development on X11 using C++ and
    Python via PyQt

  2. #2
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt 4 apps on Windows are not startable from the Windows GUI

    No, put them right next to your executable.
    That's what you would normally do, with an installer, for example.

    Regards

  3. #3
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt 4 apps on Windows are not startable from the Windows GUI

    If you have Qt installed on the system, it will work by appending to the PATH env var $QTDIR/bin ( linux ), or %QTDIR%\bin (Windows).

    Something like this:
    PATH=$QTDIR/bin:$PATH

    or:
    PATH=%QTDIR%\bin;%PATH%

    If you want to run it on another computer, the Qt libraries will have to be in the app directory.

    Regards

  4. #4
    Join Date
    Jan 2006
    Location
    11 N 78 E
    Posts
    110
    Thanks
    10
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Qt 4 apps on Windows are not startable from the Windows GUI

    I wonder if it would be possible to create a Qt 4 runtime installer which all people creating Qt 4 based programs can ask their users to download and install. GIMP on Windows has people download and install the GTK+ for Windows package. As more and more Qt 4 applications are developed for Windows, it becomes superfluous and increases the size of our packages to include the DLLs with each one of our applications.
    Penguin #395953 using Qt for open-source development on X11 using C++ and
    Python via PyQt

Similar Threads

  1. converting unix exe to windows binary
    By deekayt in forum General Programming
    Replies: 2
    Last Post: 17th September 2006, 01:00
  2. Qt and windows vista
    By munna in forum General Discussion
    Replies: 8
    Last Post: 11th January 2006, 22:33

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.