Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Error while building/deploying project in step "Make"



  • I am having trouble building my project files. The QT Creator sends me the following error:

    mingw32-make[1]: *** [Makefile.Debug:1212: debug/mainwindow.o] Error 1
    mingw32-make[1]: Leaving directory 'C:MVISMB/Projects/build-Phase2-Desktop_Qt_5_15_0_MinGW_64_bit-Debug'
    mingw32-make: *** [Makefile:45: debug] Error 2
    14:34:44: The process "C:\MVISMB\Qt\Tools\mingw810_64\bin\mingw32-make.exe" exited with code 2.
    Error while building/deploying project Phase2 (kit: Desktop Qt 5.15.0 MinGW 64-bit)
    When executing step "Make"

    Can anyone help me out with this problem? I have tried several thing but nothing worked.

    Kit: Desktop Qt 5.15.0 MinGW 32-bit
    Compiler: MinGW 8.1.0 64-bit for C++
    CMake: 3.17.1 (Qt)


  • Lifetime Qt Champion

    @Robbie9499 The actual error must be above of what you posted



  • Or rather in the step above. The output of when you run CMake probably has details of what is going on



  • Alright, this is my entire compile output:

    19:14:27: Running steps for project Phase2...
    19:14:27: Configuration unchanged, skipping qmake step.
    19:14:27: Starting: "C:\MVISMB\Qt\Tools\mingw810_64\bin\mingw32-make.exe" -j8
    C:/MVISMB/Qt/Tools/mingw810_64/bin/mingw32-make -f Makefile.Debug
    mingw32-make[1]: Entering directory 'C:/MVISMB/Projects/build-Phase2-Desktop_Qt_5_15_0_MinGW_64_bit-Debug'
    g++ -c -fno-keep-inline-dllexport -g -std=gnu++11 -Wall -Wextra -Wextra -fexceptions -mthreads -DUNICODE -D_UNICODE -DWIN32 -DMINGW_HAS_SECURE_API=1 -DQT_DEPRECATED_WARNINGS -DQT_QML_DEBUG -DQT_MULTIMEDIA_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I..\Phase2 -I. -I....\OpenCV\include -I....\tesseract\include -I....\Qt\5.15.0\mingw81_64\include -I....\Qt\5.15.0\mingw81_64\include\QtMultimedia -I....\Qt\5.15.0\mingw81_64\include\QtWidgets -I....\Qt\5.15.0\mingw81_64\include\QtGui -I....\Qt\5.15.0\mingw81_64\include\QtANGLE -I....\Qt\5.15.0\mingw81_64\include\QtNetwork -I....\Qt\5.15.0\mingw81_64\include\QtCore -Idebug -I. -I/include -I....\Qt\5.15.0\mingw81_64\mkspecs\win32-g++ -o debug\mainwindow.o ..\Phase2\mainwindow.cpp
    In file included from C:/MVISMB/Qt/Tools/mingw810_64/x86_64-w64-mingw32/include/combaseapi.h:153,
    from C:/MVISMB/Qt/Tools/mingw810_64/x86_64-w64-mingw32/include/objbase.h:14,
    from C:/MVISMB/Qt/Tools/mingw810_64/x86_64-w64-mingw32/include/ole2.h:17,
    from C:/MVISMB/Qt/Tools/mingw810_64/x86_64-w64-mingw32/include/wtypes.h:12,
    from C:/MVISMB/Qt/Tools/mingw810_64/x86_64-w64-mingw32/include/winscard.h:10,
    from C:/MVISMB/Qt/Tools/mingw810_64/x86_64-w64-mingw32/include/windows.h:97,
    from ....\tesseract\include/tesseract/host.h:65,
    from ....\tesseract\include/tesseract/tesscallback.h:22,
    from ....\tesseract\include/tesseract/baseapi.h:31,
    from ..\Phase2\mainwindow.cpp:13:
    C:/MVISMB/Qt/Tools/mingw810_64/x86_64-w64-mingw32/include/wtypesbase.h:385:3: error: conflicting declaration 'typedef struct tagBLOB BLOB'
    } BLOB;
    ^~~~
    In file included from ....\tesseract\include/tesseract/baseapi.h:27,
    from ..\Phase2\mainwindow.cpp:13:
    ....\tesseract\include/tesseract/platform.h:30:3: note: previous declaration as 'typedef struct _BLOB BLOB'
    } BLOB, LPBLOB;
    ^~~~
    In file included from C:/MVISMB/Qt/Tools/mingw810_64/x86_64-w64-mingw32/include/combaseapi.h:153,
    from C:/MVISMB/Qt/Tools/mingw810_64/x86_64-w64-mingw32/include/objbase.h:14,
    from C:/MVISMB/Qt/Tools/mingw810_64/x86_64-w64-mingw32/include/ole2.h:17,
    from C:/MVISMB/Qt/Tools/mingw810_64/x86_64-w64-mingw32/include/wtypes.h:12,
    from C:/MVISMB/Qt/Tools/mingw810_64/x86_64-w64-mingw32/include/winscard.h:10,
    from C:/MVISMB/Qt/Tools/mingw810_64/x86_64-w64-mingw32/include/windows.h:97,
    from ....\tesseract\include/tesseract/host.h:65,
    from ....\tesseract\include/tesseract/tesscallback.h:22,
    from ....\tesseract\include/tesseract/baseapi.h:31,
    from ..\Phase2\mainwindow.cpp:13:
    C:/MVISMB/Qt/Tools/mingw810_64/x86_64-w64-mingw32/include/wtypesbase.h:386:25: error: conflicting declaration 'typedef struct tagBLOB
    LPBLOB'
    typedef struct tagBLOB *LPBLOB;
    ^~~~~~
    In file included from ....\tesseract\include/tesseract/baseapi.h:27,
    from ..\Phase2\mainwindow.cpp:13:
    ....\tesseract\include/tesseract/platform.h:30:10: note: previous declaration as 'typedef struct _BLOB* LPBLOB'
    } BLOB, *LPBLOB;
    ^~~~~~
    In file included from ....\tesseract\include/tesseract/ltrresultiterator.h:26,
    from ....\tesseract\include/tesseract/resultiterator.h:26,
    from ....\tesseract\include/tesseract/baseapi.h:34,
    from ..\Phase2\mainwindow.cpp:13:
    ....\tesseract\include/tesseract/unicharset.h:165:3: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
    const UNICHAR_ID unichar_to_id(const char* const unichar_repr) const;
    ^~~~~
    ....\tesseract\include/tesseract/unicharset.h:169:3: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
    const UNICHAR_ID unichar_to_id(const char* const unichar_repr,
    ^~~~~
    ....\tesseract\include/tesseract/unicharset.h:185:3: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
    const char* const id_to_unichar(UNICHAR_ID id) const;
    ^~~~~
    ....\tesseract\include/tesseract/unicharset.h:191:3: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
    const char* const id_to_unichar_ext(UNICHAR_ID id) const;
    ^~~~~
    In file included from ..\Phase2\mainwindow.cpp:13:
    ....\tesseract\include/tesseract/baseapi.h:653:3: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
    Tesseract* const tesseract() const {
    ^~~~~~~~~
    ....\tesseract\include/tesseract/baseapi.h:657:17: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
    OcrEngineMode const oem() const {
    ^~~~~
    ..\Phase2\mainwindow.cpp: In member function 'void MainWindow::process(cv::Mat&)':
    ..\Phase2\mainwindow.cpp:89:35: warning: unused parameter 'image2' [-Wunused-parameter]
    void MainWindow::process(cv::Mat& image2)
    ~~~~~^~
    mingw32-make[1]: *** [Makefile.Debug:1212: debug/mainwindow.o] Error 1
    mingw32-make[1]: Leaving directory 'C:/MVISMB/Projects/build-Phase2-Desktop_Qt_5_15_0_MinGW_64_bit-Debug'
    mingw32-make: *** [Makefile:45: debug] Error 2
    19:14:31: The process "C:\MVISMB\Qt\Tools\mingw810_64\bin\mingw32-make.exe" exited with code 2.
    Error while building/deploying project Phase2 (kit: Desktop Qt 5.15.0 MinGW 64-bit)
    When executing step "Make"
    19:14:31: Elapsed time: 00:04.


  • Lifetime Qt Champion

    Hi,

    Looks like you have a clash between tesseract and MinGW.

    Please cleanup your own warnings. That make things easier to read.



  • @Robbie9499 said in Error while building/deploying project in step "Make":

    tesseract

    you may want to check this question about Tesseract, Qt & MinGW


Log in to reply