Hi everyone,
My conf :
-VM windows 7 x64
-Qtcreator compile with another mingw that I use for building
-own Build Qt 5.6
-MINGW gcc 4.8.2 sljlj rev2
-boost 1_60_1
I'm working in kind of simple project. I'm doing a hyperterminal for serial device mixing Qt and boost asio for serial.
At compile time :
1)I generate the makefiles from the .pro rules.
-----------------------------------------------------------------
TEMPLATE = app
Qt += core gui
TARGET = 5_Qt_integration_MOD
#greaterThan(QT_MAJOR_VERSION, 5): error("requires Qt 4")
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
INCLUDEPATH += D:\boost_1_60_0\
#DEPENDPATH += D:\boost_1_60_0\
# D:\boost_1_60_0\stage\lib
LIBS += -LD:\boost_1_60_0\stage\lib\
# -lboost_system \
# -lboost_thread \
# -lboost_date_time \
# -llibboost_date_time-mgw48-d-1_60.a \
# -lwsock32 -lws2_32
#LIBS += -LD:\boost_1_60_0\
# -llibboost_date_time-mgw48-d-1_60.a \
# -llibboost_system-mgw48-d-1_60.a \
# -llibboost_thread-mgw48-mt-d-1_60.a \
# -lwsock32 -lws2_32
# Input
HEADERS += mainwindow.h QAsyncSerial.h AsyncSerial.h
FORMS += mainwindow.ui
SOURCES += main.cpp mainwindow.cpp QAsyncSerial.cpp AsyncSerial.cpp
----------------------------------------------------------------------------
At least I got my Makefile makefile.debug and makefile.release
3)Mingw32-make doing rules from makefile and release .o moc_*.cpp. As well *.ui is generate into a .h
Here's the output console
--------------------------------------------------------------
10:42:17: Running steps for project 5_Qt_integration_MOD...
10:42:17: Configuration unchanged, skipping qmake step.
10:42:17: Starting: "C:\mingw\mingwx64_481r0-sjlj-rev2\bin\mingw32-make.exe"
C:/mingw/mingwx64_481r0-sjlj-rev2/bin/mingw32-make -f Makefile.Debug
mingw32-make[1]: Entering directory 'Z:/VM_shared_folder/serial-port-master/5_Qt_integration_MOD'
g++ -c -pipe -fno-keep-inline-dllexport -g -std=gnu++0x -frtti -Wall -Wextra -fexceptions -mthreads -DUNICODE -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I. -ID:\boost_1_60_0 -ID:\QT\qt-everywhere-opensource-src-5.6.0\qtbase\include -ID:\QT\qt-everywhere-opensource-src-5.6.0\qtbase\include\QtWidgets -ID:\QT\qt-everywhere-opensource-src-5.6.0\qtbase\include\QtGui -ID:\QT\qt-everywhere-opensource-src-5.6.0\qtbase\include\QtCore -Idebug -I. -ID:\QT\qt-everywhere-opensource-src-5.6.0\qtbase\mkspecs\win32-g++ -o debug\main.o main.cpp
g++ -c -pipe -fno-keep-inline-dllexport -g -std=gnu++0x -frtti -Wall -Wextra -fexceptions -mthreads -DUNICODE -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I. -ID:\boost_1_60_0 -ID:\QT\qt-everywhere-opensource-src-5.6.0\qtbase\include -ID:\QT\qt-everywhere-opensource-src-5.6.0\qtbase\include\QtWidgets -ID:\QT\qt-everywhere-opensource-src-5.6.0\qtbase\include\QtGui -ID:\QT\qt-everywhere-opensource-src-5.6.0\qtbase\include\QtCore -Idebug -I. -ID:\QT\qt-everywhere-opensource-src-5.6.0\qtbase\mkspecs\win32-g++ -o debug\mainwindow.o mainwindow.cpp
g++ -c -pipe -fno-keep-inline-dllexport -g -std=gnu++0x -frtti -Wall -Wextra -fexceptions -mthreads -DUNICODE -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I. -ID:\boost_1_60_0 -ID:\QT\qt-everywhere-opensource-src-5.6.0\qtbase\include -ID:\QT\qt-everywhere-opensource-src-5.6.0\qtbase\include\QtWidgets -ID:\QT\qt-everywhere-opensource-src-5.6.0\qtbase\include\QtGui -ID:\QT\qt-everywhere-opensource-src-5.6.0\qtbase\include\QtCore -Idebug -I. -ID:\QT\qt-everywhere-opensource-src-5.6.0\qtbase\mkspecs\win32-g++ -o debug\QAsyncSerial.o QAsyncSerial.cpp
g++ -c -pipe -fno-keep-inline-dllexport -g -std=gnu++0x -frtti -Wall -Wextra -fexceptions -mthreads -DUNICODE -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I. -ID:\boost_1_60_0 -ID:\QT\qt-everywhere-opensource-src-5.6.0\qtbase\include -ID:\QT\qt-everywhere-opensource-src-5.6.0\qtbase\include\QtWidgets -ID:\QT\qt-everywhere-opensource-src-5.6.0\qtbase\include\QtGui -ID:\QT\qt-everywhere-opensource-src-5.6.0\qtbase\include\QtCore -Idebug -I. -ID:\QT\qt-everywhere-opensource-src-5.6.0\qtbase\mkspecs\win32-g++ -o debug\AsyncSerial.o AsyncSerial.cpp
D:\QT\qt-everywhere-opensource-src-5.6.0\qtbase\bin\moc.exe -DUNICODE -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -D__GNUC__ -DWIN32 -ID:/QT/qt-everywhere-opensource-src-5.6.0/qtbase/mkspecs/win32-g++ -IZ:/VM_shared_folder/serial-port-master/5_Qt_integration_MOD -ID:/boost_1_60_0 -ID:/QT/qt-everywhere-opensource-src-5.6.0/qtbase/include -ID:/QT/qt-everywhere-opensource-src-5.6.0/qtbase/include/QtWidgets -ID:/QT/qt-everywhere-opensource-src-5.6.0/qtbase/include/QtGui -ID:/QT/qt-everywhere-opensource-src-5.6.0/qtbase/include/QtCore -Ic:\msys64\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.8.1/include/c++ -Ic:\msys64\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.8.1/include/c++/x86_64-w64-mingw32 -Ic:\msys64\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.8.1/include/c++/backward -Ic:\msys64\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.8.1/include -Ic:\msys64\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.8.1/include-fixed -Ic:\msys64\mingw64\bin\../x86_64-w64-mingw32/include mainwindow.h -o debug\moc_mainwindow.cpp
g++ -c -pipe -fno-keep-inline-dllexport -g -std=gnu++0x -frtti -Wall -Wextra -fexceptions -mthreads -DUNICODE -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I. -ID:\boost_1_60_0 -ID:\QT\qt-everywhere-opensource-src-5.6.0\qtbase\include -ID:\QT\qt-everywhere-opensource-src-5.6.0\qtbase\include\QtWidgets -ID:\QT\qt-everywhere-opensource-src-5.6.0\qtbase\include\QtGui -ID:\QT\qt-everywhere-opensource-src-5.6.0\qtbase\include\QtCore -Idebug -I. -ID:\QT\qt-everywhere-opensource-src-5.6.0\qtbase\mkspecs\win32-g++ -o debug\moc_mainwindow.o debug\moc_mainwindow.cpp
D:\QT\qt-everywhere-opensource-src-5.6.0\qtbase\bin\moc.exe -DUNICODE -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -D__GNUC__ -DWIN32 -ID:/QT/qt-everywhere-opensource-src-5.6.0/qtbase/mkspecs/win32-g++ -IZ:/VM_shared_folder/serial-port-master/5_Qt_integration_MOD -ID:/boost_1_60_0 -ID:/QT/qt-everywhere-opensource-src-5.6.0/qtbase/include -ID:/QT/qt-everywhere-opensource-src-5.6.0/qtbase/include/QtWidgets -ID:/QT/qt-everywhere-opensource-src-5.6.0/qtbase/include/QtGui -ID:/QT/qt-everywhere-opensource-src-5.6.0/qtbase/include/QtCore -Ic:\msys64\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.8.1/include/c++ -Ic:\msys64\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.8.1/include/c++/x86_64-w64-mingw32 -Ic:\msys64\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.8.1/include/c++/backward -Ic:\msys64\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.8.1/include -Ic:\msys64\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.8.1/include-fixed -Ic:\msys64\mingw64\bin\../x86_64-w64-mingw32/include QAsyncSerial.h -o debug\moc_QAsyncSerial.cpp
g++ -c -pipe -fno-keep-inline-dllexport -g -std=gnu++0x -frtti -Wall -Wextra -fexceptions -mthreads -DUNICODE -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I. -ID:\boost_1_60_0 -ID:\QT\qt-everywhere-opensource-src-5.6.0\qtbase\include -ID:\QT\qt-everywhere-opensource-src-5.6.0\qtbase\include\QtWidgets -ID:\QT\qt-everywhere-opensource-src-5.6.0\qtbase\include\QtGui -ID:\QT\qt-everywhere-opensource-src-5.6.0\qtbase\include\QtCore -Idebug -I. -ID:\QT\qt-everywhere-opensource-src-5.6.0\qtbase\mkspecs\win32-g++ -o debug\moc_QAsyncSerial.o debug\moc_QAsyncSerial.cpp
g++ -Wl,-subsystem,windows -mthreads -o debug\5_Qt_integration_MOD.exe debug/main.o debug/mainwindow.o debug/QAsyncSerial.o debug/AsyncSerial.o debug/moc_mainwindow.o debug/moc_QAsyncSerial.o -lglu32 -lopengl32 -lgdi32 -luser32 -lmingw32 -LD:\QT\qt-everywhere-opensource-src-5.6.0\qtbase\lib D:\QT\qt-everywhere-opensource-src-5.6.0\qtbase\lib\libqtmaind.a -lshell32 D:\QT\qt-everywhere-opensource-src-5.6.0\qtbase\lib\libQt5Cored.a -LD:\boost_1_60_0\stage\lib D:\QT\qt-everywhere-opensource-src-5.6.0\qtbase\lib\libQt5Widgetsd.a D:\QT\qt-everywhere-opensource-src-5.6.0\qtbase\lib\libQt5Guid.a D:\QT\qt-everywhere-opensource-src-5.6.0\qtbase\lib\libQt5Cored.a
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
Cannot create temporary file in C:\Windows\: Permission denied
g++: internal compiler error: Aborted (program collect2)
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://sourceforge.net/projects/mingw-w64> for instructions.
Makefile.Debug:75: recipe for target 'debug\5_Qt_integration_MOD.exe' failed
mingw32-make[1]: *** [debug\5_Qt_integration_MOD.exe] Error 4
mingw32-make[1]: Leaving directory 'Z:/VM_shared_folder/serial-port-master/5_Qt_integration_MOD'
Makefile:34: recipe for target 'debug' failed
mingw32-make: *** [debug] Error 2
10:43:01: The process "C:\mingw\mingwx64_481r0-sjlj-rev2\bin\mingw32-make.exe" exited with code 2.
Error while building/deploying project 5_Qt_integration_MOD (kit: Qt 5.6.0 (Built by mingwx64_481r0-sjlj-rev2))
When executing step "Make"
10:43:01: Elapsed time: 00:44.
------------------------------------------------------------------------------------------
As it said collect2.exe stop running and no .exe project is created. Even if I note lib boost and stuff I got the same failed.
Thanks in advance for any advice
Bookmarks