Results 1 to 7 of 7

Thread: some errors when i run my app .exe

  1. #1
    davinciomar Guest

    Default some errors when i run my app .exe

    Hi i compiled succesfully my application but anyways when i run; it show me some errors like missings dlls; So if you know about this pls help.
    I Share pictures:
    https://i.imgsafe.org/c799296767.png
    https://i.imgsafe.org/c79a14e371.png
    https://i.imgsafe.org/c79ba4e19e.png
    https://i.imgsafe.org/c79ccbd0e2.png

    When i run since qtcreator the .exe run very well. The Strange thing is that i get these errors when i run the exe file compiled? Why?

  2. #2
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,531
    Thanked 281 Times in 276 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: some errors when i run my app .exe

    Nothing strange. Read somewhere what dll is (every DLL not only Qt) and how they should be installed in the system.

  3. #3
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,418
    Thanks
    37
    Thanked 1,545 Times in 1,495 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: some errors when i run my app .exe

    Maybe you forgot to copy the Qt DLLs to the location of the exe?

    Cheers,
    _

  4. #4
    davinciomar Guest

    Default Re: some errors when i run my app .exe

    one question about this i can compile libraries of static mode? Which versio nyou recommend me to do this? Some people say me that i need to use qt 5.5 to configure static libraries i can use 5.7, sorry for all regards,

  5. #5
    Join Date
    Apr 2013
    Location
    Prague
    Posts
    256
    Thanks
    3
    Thanked 65 Times in 59 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: some errors when i run my app .exe

    I guess you have compiled your app using Visual C++. Visual C++ can compile a Qt app but it does not contain the Qt. You have only import libraries but you have not the DLLs. Therefore:

    (1) Check which import libraries for Qt you have. They will be named the same way as the missing DLLs but with the extent .lib instead of .dll .
    (2) Check the version (and the subversion) of Qt your Visual C++ uses. You need DLLs of the same version (and subversion).
    (3) Check the version of GCC your Visual C++ uses (the last failure among the pictures).
    (4) Get the Qt DLLs and libgcc DLL of the version you have found.
    (5) Put all this to same directory and place the directory on your PATH.

    Try running again. Notes:

    (1) There is more DLLs than the three from the pictures (the pictures report that core, gui, and widgets is missing). Download all DLLs you can (and which you have import libraries for).
    (2) The DLLs you find can be named slightly differently (the names can contain versions and so on). Rename them so that they have names like the import libraries (and ectent .dll instead of .lib).
    (3) If you cannot get the right version DLLs, you will need to compile. Good luck ...

  6. #6
    davinciomar Guest

    Default Re: some errors when i run my app .exe

    yes but i think i can import all these libraries with command configure like this: configure -release -qt-libjpeg -qt-zlib -qt-libpng (the libraries that i need) -static or not??? i am refering to this post http://dimitris.apeiro.gr/2015/06/24...-by-compiling/
    thxx a lot for your help thxx
    Last edited by davinciomar; 23rd August 2016 at 20:01.

  7. #7
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,121
    Thanks
    291
    Thanked 847 Times in 834 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: some errors when i run my app .exe

    The configure command is used when building Qt itself, not when linking Qt into your own app. It has nothing to do with "importing" libraries when linking your application. Your problem is with deployment.

    If you are building a commercial app, then you must have a Qt commercial license if you want to link to static Qt libraries. If you do not want to buy a Qt commercial license, then you must link so your app uses dynamic (DLL) Qt libraries. You will be in violation of the Qt license otherwise.

    If you have downloaded and installed Qt properly, your distribution will contain all of the Qt .lib files you need at link time, and all of the .dll files you need at run time. Read the article on Qt for Windows - Deployment.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

Similar Threads

  1. Qt errors?
    By nthung in forum Newbie
    Replies: 1
    Last Post: 16th October 2011, 21:33
  2. qwt vc++ compile errors
    By sujan.dasmahapatra in forum Qt Programming
    Replies: 0
    Last Post: 5th December 2009, 20:26
  3. errors
    By manu in forum Newbie
    Replies: 4
    Last Post: 16th June 2008, 11:29
  4. Errors
    By hgedek in forum Newbie
    Replies: 7
    Last Post: 25th November 2007, 23:21
  5. Example with errors
    By fahmi in forum Qt Programming
    Replies: 1
    Last Post: 29th July 2007, 01:37

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.