Results 1 to 16 of 16

Thread: Yet another windows deployment issue

  1. #1
    Join Date
    May 2009
    Posts
    20
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Yet another windows deployment issue

    Hello,
    I've already read the docs (see below) and several other thread on this topic. Still I have some troubles.

    I have to deploy a Qt 5.0.1 (mingw) application to a windows environment. On the development machine the application runs without problem with these files in the exe folder:

    Qt Code:
    1. platforms
    2. qminimal.dll
    3. qwindows.dll
    4. D3DCompiler_43.dll
    5. icudt49.dll
    6. icuin49.dll
    7. icuuc49.dll
    8. libEGL.dll
    9. libgcc_s_sjlj-1.dll
    10. libGLESv2.dll
    11. libstd++-6.dll
    12. libwinpthread-1.dll
    13. Qt5Core.dll
    14. Qt5Gui.dll
    15. Qt5Widgets.dll
    To copy to clipboard, switch view to plain text mode 

    But on the customer's machine it complains about the missing of C++ runtime.
    So I asked him to download and install the following libraries:

    http://www.microsoft.com/it-it/downl...s.aspx?id=5555

    But when he tries to install them the installer says there is a newer version already installed.
    Furthermore, the Qt docs at:

    http://qt-project.org/doc/qt-5.0/qtd...t-windows.html

    says:

    In addition, the archive must contain the following compiler specific libraries depending on your version of Visual Studio:
    VC++ 8.0 (2005) VC++ 9.0 (2008) VC++ 10.0 (2010)
    The C run-time msvcr80.dll msvcr90.dll msvcr100.dll
    The C++ run-time msvcp80.dll msvcp90.dll msvcp100.dll
    But I doesn't have any version of Visual Studio installed!
    Anyway I tried to explore the dependencies using depend.exe. It shows a link to msvcrt.dll in windows/system32 and nothing about the files above.

    So the questions is: how to *exactly* collect *all* the libraries needed to run my application in the target machine?
    Thanks in advance!

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Yet another windows deployment issue

    If you used MinGW then installing any possible version of the runtime for the Microsoft C compiler will not help. You need to deploy the runtime for MinGW.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    May 2009
    Posts
    20
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Yet another windows deployment issue

    Thank you for the hint.
    Anyway when the application is started on the target machine it requests the "Microsoft C++ runtimes".
    What are the libraries needed for a mingw deployment?

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Yet another windows deployment issue

    Quote Originally Posted by Marco Trapanese View Post
    Anyway when the application is started on the target machine it requests the "Microsoft C++ runtimes".
    In that case you either installed an incorrect version of Qt or this has nothing to do with Qt.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #5
    Join Date
    May 2009
    Posts
    20
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Yet another windows deployment issue

    I installed this version of Qt5:

    http://releases.qt-project.org/qt5/5...86-offline.exe

    and I followed the docs for a windows deplyoment (url in the first post).
    Because it doesn't work I'm asking how to collect the correct libraries, without random trials.
    I want to learn how to deploy my applications without any issue.

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Yet another windows deployment issue

    Use the dependency walker.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  7. #7
    Join Date
    May 2009
    Posts
    20
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Yet another windows deployment issue

    ehm... in the first post I said I've already used the dependency walker!
    But the problem is even with a minimal application which doesn't uses any third party libraries I cannot get the exe running on other machines.

    So I ask you one time more: which libraries are *really* needed to run a pure qt5 application?
    I copied all those indicated in the docs but it doens't work!

    Thanks again

  8. #8
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Yet another windows deployment issue

    Quote Originally Posted by Marco Trapanese View Post
    ehm... in the first post I said I've already used the dependency walker!
    And that is all you need.

    But the problem is even with a minimal application which doesn't uses any third party libraries I cannot get the exe running on other machines.
    I'm not in your shoes, I don't know what you did exactly. So far I know you're using MinGW compiler and the application claims to be built with a different compiler.

    So I ask you one time more: which libraries are *really* needed to run a pure qt5 application?
    I copied all those indicated in the docs but it doens't work!
    Don't copy what is "indicated" but rather use the dependency walker to check which are really required.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  9. #9
    Join Date
    Mar 2015
    Posts
    125
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default Re: Yet another windows deployment issue

    I try to open Qcreator but have error on msvcp100.dll. I copy it to bin and system folder but it does not change anything.In intenet I have read it is due to the missiing other dll with thisone, that could be viewed in Total Comander. But it show just files with such extensions as .exe, .com, .bat. So i could not do it. MAybe you could tip me what other dll arein one complect with msvcp100.dll

  10. #10
    Join Date
    Dec 2009
    Location
    New Orleans, Louisiana
    Posts
    791
    Qt products
    Qt5
    Platforms
    MacOS X
    Thanks
    13
    Thanked 153 Times in 150 Posts

    Default Re: Yet another windows deployment issue

    If you can move your app to Qt 5.2 or higher, you can use the packaging tool windeployqt. I don't do windows, but the mac version (macdeployqt) is very useful in packaging the required dynamic libraries required to run the application.

  11. #11
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Yet another windows deployment issue

    Quote Originally Posted by artt View Post
    I try to open Qcreator but have error on msvcp100.dll.
    How did you install Qt Creator?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  12. #12
    Join Date
    Mar 2015
    Posts
    125
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default Re: Yet another windows deployment issue

    Is it joke? This dll needs for opening Qcreator. But I have either this, either that. I could not make this dll workable. Even the registerinG recall the error. Then I read that I need to see in properties in Total Commander about its linkage with other dll that should be the same set f.e. From VStudio. So I need know this linkage then I could download another dll from this set and place in the same folder -- then it should be workable to work in Qcreator I hope... Or maybe this dll example is corrupted but unlikely, but you can download you variant, f.i.exactly from VS

  13. #13
    Join Date
    Mar 2015
    Posts
    125
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default Re: Yet another windows deployment issue

    So could anybody download that mising dll and connected ones?

  14. #14
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Yet another windows deployment issue

    Quote Originally Posted by artt View Post
    Is it joke?
    Do you always answer a question with another question? (See? I can do that too)

    This dll needs for opening Qcreator.
    Everything Qt Creator needs to run is in its installation package. You don't need to download any other files from anywhere.

    So would you care to answer my question?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  15. #15
    Join Date
    Mar 2015
    Posts
    125
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default Re: Yet another windows deployment issue

    You are right. Evrything are in qtinstallation file, but vcredist (about 7 mb) do not unpacks (installs) in my windows xp, so this dll and other ones do not appear at qtcreator installation folder. So even simple copying do not help as this dll is connected with others ones. So I need probbaly the whole installed vcredist package? Can anybody deliver me? In other way I would not be able to use exceot portable version of qtcreator. (I can not to isntall this vcredist due to the fact that it yuse the msi.installer so this installer do not work at my win xp -- and I do not want to reinstall it: when i tried to install the very vcredist the error was the same as during other installation that use msi installer and this issue I cannot cure a long time).


    Added after 55 minutes:


    stackoverflow.com/questions/21283863/msvcp100-dll-not-found-error-even-when-it-is-installed -- according to it I just needed to download msvcr100.dll -- and I probably would be able to use Qtcreator several days--but forum did not suggested. According to the next site this redist has just 4 files ---stackoverflow.com/questions/176992/visual-c-redistributables-without-using-vcredist-x86-exe -- or it is not quitly true about a whole list of redistr files.
    Last edited by artt; 28th March 2015 at 22:03.

  16. #16
    Join Date
    Mar 2015
    Posts
    125
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default Re: Yet another windows deployment issue

    I have downloaded these 2 files but there is another error when trying to launch creator probably due to different version (slighty but different) despite from the same site. www.rhyous.com/2012/03/29/msvcr100-dll-download/ ---But I hope in this set there will the whole set of the same version dll. So I just not ask question to question but make answers to my questions.

Similar Threads

  1. Linux deployment issue, dependency not satisfiable.
    By skepticalgeek in forum General Programming
    Replies: 1
    Last Post: 29th November 2010, 13:23
  2. QT application deployment issue on windows XP
    By meraj ansari in forum Installation and Deployment
    Replies: 3
    Last Post: 20th May 2010, 14:14
  3. deployment issue?
    By triperzonak in forum Installation and Deployment
    Replies: 1
    Last Post: 7th October 2008, 08:59
  4. QT/mySQL deployment issue
    By smtgra011 in forum Installation and Deployment
    Replies: 4
    Last Post: 1st July 2007, 20:31
  5. qt application deployment issue?
    By vishal.chauhan in forum Installation and Deployment
    Replies: 0
    Last Post: 1st May 2007, 06:09

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
  •  
Qt is a trademark of The Qt Company.