+ Reply to Thread
Results 1 to 10 of 10

Thread: Qt5 Microsoft Visual C++ Runtime Library error

  1. #1
    Join Date
    Jan 2013
    Posts
    23
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Qt5 Microsoft Visual C++ Runtime Library error

    I use Windows 7 32bit and I installed Qt 5.0.1 for Windows 32-bit (MinGW 4.7, 823 MB) from qt-project.org.
    I write a gui application and there is no problem when I run app in my computer.
    But another computer which does not have Qt, app is not run.
    I added Qt libraries to folder which exe is in but I get Microsoft Visual C++ Runtime Library error

    Files I added:

    D3DCompiler_43.dll
    icudt49.dll
    icuin49.dll
    icuuc49.dll
    libEGL.dll
    libgcc_s_sjlj-1.dll
    libGLESv2.dll
    libstdc++-6.dll
    libwinpthread-1.dll
    qminimal.dll
    Qt5Core.dll
    Qt5Guid.dll
    Qt5PrintSupport.dll
    Qt5Sql.dll
    Qt5Wisgets.dll
    qwindows.dll

    And error:



    Sorry for my English

  2. #2
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    876
    Thanked 173 Times in 169 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt5 Microsoft Visual C++ Runtime Library error

    Your application and Qt are compiled by MinGW. The message indicates if your program uses some libraries compiled for Microsoft Visual C + +. This is not a good idea. Is this the second computer was installed Microsoft Visual Runtime?

  3. #3
    Join Date
    Jan 2013
    Posts
    23
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Qt5 Microsoft Visual C++ Runtime Library error

    Actually I do not know.
    But if I install Qt 5.0.1 for Windows 32-bit (VS 2010, 481 MB), does it prevent this error?

  4. #4
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    876
    Thanked 173 Times in 169 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt5 Microsoft Visual C++ Runtime Library error

    And you have Microsoft Visual C++ 2010?

  5. #5
    Join Date
    Jan 2013
    Posts
    23
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Qt5 Microsoft Visual C++ Runtime Library error

    Quote Originally Posted by Lesiok View Post
    And you have Microsoft Visual C++ 2010?
    Yes I have

  6. #6
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    876
    Thanked 173 Times in 169 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt5 Microsoft Visual C++ Runtime Library error

    Well, I think the decision to use Qt for MinGW does not make sense. Remove completely Qt for MinGW and install versions for MSVC 2010.

  7. #7
    Join Date
    Jan 2013
    Posts
    23
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Qt5 Microsoft Visual C++ Runtime Library error

    I reinstalled Windows 7 and then I installed Qt with MinGW.
    Qt worked for me but again exe file did not work another computer.
    Then I remove Qt with mingw and I installed Qt with MSVC 2010.
    But now Qt send error message ":-1: error: Qt Creator needs a compiler set up to build. Configure a compiler in the kit options".
    Then I read this http://qt-project.org/forums/viewthread/23013
    I downloaded .NET Framework 4 and Windows SDK 7.1.
    I installed .net framework 4 successfully, but Windows SDK 7.1 gives error. There is a log file but it is too long.

  8. #8
    Join Date
    Jan 2013
    Posts
    23
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Qt5 Microsoft Visual C++ Runtime Library error

    at last I installed Windows SDK 7.1. I compiled my program with Qt (MSVC 2010).
    Again I copied necessary dll files to folder which exe file is in.
    But now when I double click my exe, nothings happen.?
    Can somebody tell me which dll files I have to put in folder?
    I just want to run a simple gui application.
    Last edited by sipahi; 10th February 2013 at 21:31.

  9. #9
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    6,426
    Thanks
    13
    Thanked 1,356 Times in 1,298 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Qt5 Microsoft Visual C++ Runtime Library error

    The original MingW deployment is missing the MingW runtime library; mingwm10.dll (or something like that).

    Now you have switched to VS 2010 the deployed machine must have the VS C++ runtime matching your build environment installed.

    Once the basic C++ runtime is present you'll probably find you need to deploy Qt platform, image and other plugins.

  10. #10
    Join Date
    Jan 2013
    Posts
    23
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Qt5 Microsoft Visual C++ Runtime Library error

    I solved.
    I found this bug : https://bugreports.qt-project.org/browse/QTBUG-28766
    After I added libEGL.dll app works
    Last edited by sipahi; 10th February 2013 at 21:56.

+ Reply to Thread

Similar Threads

  1. Replies: 4
    Last Post: 30th September 2012, 10:18
  2. visual studio runtime error on qml-qt interaction
    By vinayaka in forum Qt Programming
    Replies: 0
    Last Post: 2nd June 2011, 13:06
  3. Replies: 0
    Last Post: 27th May 2011, 11:13
  4. Microsoft Visual C++- Runtime Library Error while deploying Qt Application
    By mammaiap in forum Installation and Deployment
    Replies: 1
    Last Post: 7th May 2011, 00:41
  5. Replies: 2
    Last Post: 23rd November 2007, 17:44

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