Results 1 to 3 of 3

Thread: Qt 5.0.2 + MSVC 2012 + gnu Make = unable to start correctly (0xc000007b)

  1. #1
    Join Date
    Jun 2013
    Posts
    2
    Qt products
    Qt5
    Platforms
    Windows

    Default Qt 5.0.2 + MSVC 2012 + gnu Make = unable to start correctly (0xc000007b)

    Hello all,

    I was under environment as title with a sample code like below.

    Qt Code:
    1. #include <QApplication>
    2. #include <QWidget>
    3.  
    4. int main(int argc, char *argv[])
    5. {
    6. QApplication app(argc, argv);
    7. QWidget window;
    8.  
    9. window.resize(250, 150);
    10. window.setWindowTitle("Simple example");
    11. window.show();
    12.  
    13. return app.exec();
    14. }
    To copy to clipboard, switch view to plain text mode 

    Every time I ran the application I got error: Unable to start application (0xc000007b). I have been googling for a long time but still cannot succeed. Can anybody give me a hand? Thanks in advance.

    My Makefile is follows:

    Qt Code:
    1. PROGRAM = main.exe
    2.  
    3. QTDIR=C:\Qt\Qt5.0.2\5.0.2\msvc2012_64
    4.  
    5. INCLUDEDIRS = -I$(QTDIR)\include
    6. INCLUDEDIRS += -I$(QTDIR)\include\QtGui
    7. INCLUDEDIRS += -I$(QTDIR)\include\QtCore
    8. INCLUDEDIRS += -I$(QTDIR)\include\QtWidgets
    9.  
    10. QTLIBS += "$(QTDIR)\lib\Qt5core.lib" \
    11. "$(QTDIR)\lib\qt5gui.lib" \
    12. "$(QTDIR)\lib\qtmain.lib" \
    13. "$(QTDIR)\lib\qt5network.lib" \
    14. "$(QTDIR)\lib\qt5help.lib" \
    15. "$(QTDIR)\lib\qt5sql.lib" \
    16. "$(QTDIR)\lib\Qt5CLucene.lib" \
    17. "$(QTDIR)\lib\Qt5Widgets.lib"
    18.  
    19. QTWINLIBS = "kernel32.lib" "gdi32.lib" "comdlg32.lib" \
    20. "ole32.lib" "oleaut32.lib" "uuid.lib" \
    21. "imm32.lib" "winmm.lib" "ws2_32.lib" "winspool.lib"
    22.  
    23. DLL = "$(QTDIR)\bin\icudt49.dll" \
    24. "$(QTDIR)\bin\icuin49.dll" \
    25. "$(QTDIR)\bin\icuuc49.dll" \
    26. "$(QTDIR)\bin\Qt5Core.dll" \
    27. "$(QTDIR)\bin\Qt5Gui.dll" \
    28. "$(QTDIR)\bin\Qt5Widgets.dll"
    29.  
    30. LIBDIRS =
    31. LIBS =
    32.  
    33. CPPSOURCES = main.cpp
    34. CPPOBJECTS = $(CPPSOURCES:.cpp=.obj)
    35. CPPOPT = /EHsc -nologo -W3 -WX -DSTRICT -D_CRT_NONSTDC_NO_DEPRECATE -MD -I.
    36. CPPOPT += -DWIN64 -D_CRT_SECURE_NO_DEPRECATE -wd4244 -wd4267
    37. CPPFLAGS = $(INCLUDEDIRS) $(CPPOPT)
    38. CPP = cl.exe
    39.  
    40. LD=link
    41. LINKFLAGS = /SUBSYSTEM:WINDOWS -nologo
    42. SYLIBS= ws2_32.lib advapi32.lib user32.lib resutils.lib clusapi.lib \
    43. shell32.lib
    44.  
    45. all: $(PROGRAM)
    46.  
    47. CP=cp
    48.  
    49. $(PROGRAM): $(CPPOBJECTS)
    50. $(LD) $(LINKFLAGS) $(LIBDIRS) $(LIBS) $(QTLIBS) $(QTWINLIBS) $(SYLIBS) $^ -out:$@
    51. $(CP) $(QTDIR)\bin\icudt49.dll icudt49.dll
    52. $(CP) $(QTDIR)\bin\icuin49.dll icuin49.dll
    53. $(CP) $(QTDIR)\bin\icuuc49.dll icuuc49.dll
    54. $(CP) $(QTDIR)\bin\Qt5Core.dll Qt5Core.dll
    55. $(CP) $(QTDIR)\bin\Qt5Gui.dll Qt5Gui.dll
    56. $(CP) $(QTDIR)\bin\Qt5Widgets.dll Qt5Widgets.dll
    57. $(CP) $(QTDIR)\bin\libGLESv2.dll libGLESv2.dll
    58.  
    59. main.obj: main.cpp
    60. $(CPP) $(CPPFLAGS) /c main.cpp
    61.  
    62. clean:
    63. $(RM) $(CPPOBJECTS)
    64. $(RM) $(PROGRAM)
    65. $(RM) *.dll
    To copy to clipboard, switch view to plain text mode 

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

    Default Re: Qt 5.0.2 + MSVC 2012 + gnu Make = unable to start correctly (0xc000007b)

    The answer is here

  3. #3
    Join Date
    Jun 2013
    Posts
    2
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Qt 5.0.2 + MSVC 2012 + gnu Make = unable to start correctly (0xc000007b)

    Like I said, I already googled a lot. Can anybody else help me? Thanks!

Similar Threads

  1. PY QT make File issue maya 2012
    By Wintg005 in forum Newbie
    Replies: 0
    Last Post: 8th June 2012, 16:25
  2. QProcess : unable to start sis file
    By javed_alam786 in forum Qt for Embedded and Mobile
    Replies: 6
    Last Post: 26th August 2011, 13:42
  3. Replies: 9
    Last Post: 15th April 2011, 07:51
  4. Replies: 5
    Last Post: 20th September 2010, 10:30
  5. Qt4.3 and MSVC++ 2005 - unable to install Qt
    By nitor in forum Installation and Deployment
    Replies: 12
    Last Post: 25th July 2007, 21:45

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.