Results 1 to 10 of 10

Thread: The product

  1. #1
    Join Date
    Mar 2010
    Posts
    3
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Question The product

    I am using the QT IDE to build applications. These applications build, compile and give the required result.
    But where is the stand alone application that I have built, and can be distributed???

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: The product

    You application .exe, the Qt dlls,,, are the key to distribution.
    Read about deploying Qt applications.

  3. The following user says thank you to aamer4yu for this useful post:

    techie1991 (25th March 2010)

  4. #3
    Join Date
    Mar 2010
    Posts
    3
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: The product

    But, Is their no way of doing the deployment graphically?
    And what is that .exe file in my project. Whenever I run it, It gives me an error of a missing dll.

  5. #4
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: The product

    Quote Originally Posted by techie1991 View Post
    But, Is their no way of doing the deployment graphically?
    No, not yet.
    And what is that .exe file in my project. Whenever I run it, It gives me an error of a missing dll.
    That's because you have to add the Qt libraries to your application, but that is all described in the link aamer4yu gave you. Just read it.

  6. #5
    Join Date
    Mar 2008
    Location
    France
    Posts
    149
    Thanks
    2
    Thanked 21 Times in 21 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: The product

    What is the name of your missing dll?
    The .exe file is your application (i.e the result of the compiling and linking of your source code).
    In order to make it run properly, you have to include alongside all the dll needed by your app.
    If you don't include those dll, you have this error message of missing dll.

  7. #6
    Join Date
    Mar 2010
    Posts
    3
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: The product

    Yes, I read the page linked by aamer4yu. But I was asking that If the compiler of QT links all the libraries when I build the program then Why doesn't it do this for the final product too. Like when we use general C++ programming (using Dev-c++ and others), the compiler links all the included files and other things required by our program to run.

  8. #7
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: The product

    Quote Originally Posted by techie1991 View Post
    But I was asking that If the compiler of QT links all the libraries when I build the program then Why doesn't it do this for the final product too.
    Its Qt not QT, but the creator executes simply the exe like you do, so there are no two versions of your project. The difference is, that inside the creator the environment variables are set properly so that the application could find the dll.
    Last edited by Lykurg; 25th March 2010 at 13:51.

  9. #8
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: The product

    An other option is that you link static. But then you can get trouble with the LGPL. If you use a comercial license or GPL this might be an option for you. But then the file size is much bigger.

  10. #9
    Join Date
    Mar 2008
    Location
    France
    Posts
    149
    Thanks
    2
    Thanked 21 Times in 21 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: The product

    When you deploy the final product, you have to ship your app and the dll needed by your app.
    For the simple reason that the end user, surely, won't have the QT SDK (i.e. the needed dlls) installed on his computer.
    Last edited by toutarrive; 25th March 2010 at 13:46.

  11. #10
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: The product

    Quote Originally Posted by techie1991 View Post
    Yes, I read the page linked by aamer4yu. But I was asking that If the compiler of QT links all the libraries when I build the program then Why doesn't it do this for the final product too. Like when we use general C++ programming (using Dev-c++ and others), the compiler links all the included files and other things required by our program to run.
    The advantage of dynamically linking the app instead of bundling everything into the executable is that if two or more applications use the same library, the code can be shared between the applications. This means less memory use as there is only one copy of the code in memory, rather than a copy for every executable running.

Similar Threads

  1. Get the product/device name using QT library?
    By predatorz in forum Newbie
    Replies: 3
    Last Post: 14th January 2010, 04:53
  2. Replies: 5
    Last Post: 5th June 2009, 11:07
  3. Hardware info and product serials
    By uygar in forum Qt Programming
    Replies: 1
    Last Post: 10th November 2008, 19:12

Tags for this Thread

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.