Среда сборки:
Win32 (Windows XP SP3 Eng)
Qt 5.0.2 c MinGW 4.7.2 отсюда (
http://download.qt-project.org/official_releases/qt/5.0/5.0.2/qt-windows-opensource-5.0.2-mingw47_32-x86-offline.exe)
Qt установлена в C:\Qt\5.0.2
qtserialport лежит здесь C:\Qt\5.0.2\5.0.2\Src\QtSerialPort
директория сборки C:\Qt\5.0.2\5.0.2\Src\QtSerialPort-build
Пути:
C:\Qt\5.0.2\5.0.2\Src\QtSerialPort-build>path
PATH=C:\Qt\5.0.2\5.0.2\mingw47_32\bin;C:\Qt\5.0.2/Tools/MinGW\bin;C:\WINDOWS\sys
tem32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Git\cmd;C:\Program Fi
les\Git\bin;C:\Program Files\Microsoft Network Monitor 3\;C:\WINDOWS\system32\Wi
ndowsPowerShell\v1.0;C:\MySQL\MySQL Server 5.5\bin;C:\Program Files\WinSCP\;C:\S
DCC\bin
Собираю:
C:\Qt\5.0.2\5.0.2\Src\QtSerialPort-build>qmake ../QtSerialPort/qtserialport.pro
Info: creating cache file C:/Qt/5.0.2/5.0.2/Src/QtSerialPort-build/.qmake.cache
C:\Qt\5.0.2\5.0.2\Src\QtSerialPort-build>mingw32-make
cd src/ && ( test -e Makefile || C:/Qt/5.0.2/5.0.2/mingw47_32/bin/qmake.exe C:/Q
t/5.0.2/5.0.2/Src/QtSerialPort/src/src.pro -o Makefile ) && mingw32-make -f Make
file
mingw32-make[1]: Entering directory 'c:/Qt/5.0.2/5.0.2/Src/QtSerialPort-build/sr
c'
cd serialport/ && ( test -e Makefile || c:/Qt/5.0.2/5.0.2/mingw47_32/bin/qmake.e
xe C:/Qt/5.0.2/5.0.2/Src/QtSerialPort/src/serialport/serialport.pro -o Makefile
) && c:/Qt/5.0.2/Tools/MinGW/bin/mingw32-make -f Makefile
Project MESSAGE: C:/Qt/5.0.2/5.0.2/mingw47_32/bin/syncqt.bat -module QtSerialPor
t -version 5.1.0 -outdir C:/Qt/5.0.2/5.0.2/Src/QtSerialPort-build C:/Qt/5.0.2/5.
0.2/Src/QtSerialPort
<srcbase> = c:/Qt/5.0.2/5.0.2/Src/QtSerialPort
<outbase> = C:/Qt/5.0.2/5.0.2/Src/QtSerialPort-build
QtSerialPort: created fwd-include header(s) for <srcbase>/src/serialport/ { qser
ialport.h (2), qserialport_p.h (1), qserialport_symbian_p.h (1), qserialport_uni
x_p.h (1), qserialport_win_p.h (1), qserialportglobal.h (1), qserialportinfo.h (
2), qserialportinfo_p.h (1), qttylocker_unix_p.h (1) }
QtSerialPort: created fwd-include header(s) for <srcbase>/src/serialport/qt4supp
ort/ { qringbuffer_p.h (1), qwineventnotifier_p.h (1) }
QtSerialPort: created headers.pri file
mingw32-make[2]: Entering directory 'c:/Qt/5.0.2/5.0.2/Src/QtSerialPort-build/sr
c/serialport'
c:/Qt/5.0.2/Tools/MinGW/bin/mingw32-make -f Makefile.Release all
mingw32-make[3]: Entering directory 'c:/Qt/5.0.2/5.0.2/Src/QtSerialPort-build/sr
c/serialport'
C:/Qt/5.0.2/5.0.2/mingw47_32/bin/moc.exe -DUNICODE -DQT_BUILD_SERIALPORT_LIB -DQ
T_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQ
T_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x0
40800 -D_USE_MATH_DEFINES -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_CORE_LIB -IC:/Qt
/5.0.2/5.0.2/Src/QtSerialPort/src/serialport -I'C:/Qt/5.0.2/5.0.2/Src/QtSerialPo
rt/src/serialport' -I'../../include' -I'../../include/QtSerialPort' -I'../../inc
lude/QtSerialPort/5.1.0' -I'../../include/QtSerialPort/5.1.0/QtSerialPort' -I'tm
p' -I'C:/Qt/5.0.2/5.0.2/mingw47_32/include' -I'C:/Qt/5.0.2/5.0.2/mingw47_32/incl
ude/QtCore' -I'C:/Qt/5.0.2/5.0.2/mingw47_32/include/QtCore/5.0.2' -I'C:/Qt/5.0.2
/5.0.2/mingw47_32/include/QtCore/5.0.2/QtCore' -I'.moc/release_shared' -I'.' -I'
C:/Qt/5.0.2/5.0.2/mingw47_32/mkspecs/win32-g++' -D__GNUC__ -DWIN32 C:/Qt/5.0.2/5
.0.2/Src/QtSerialPort/src/serialport/qserialport.h -o .moc/release_shared/moc_qs
erialport.cpp
g++ -c -pipe -fno-keep-inline-dllexport -O2 -std=c++0x -fno-exceptions -frtti -W
all -Wextra -DUNICODE -DQT_BUILD_SERIALPORT_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO
_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEP
RECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -D_USE_MATH_DEFINES -DQ
T_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_CORE_LIB -IC:/Qt/5.0.2/5.0.2/Src/QtSerialPort
/src/serialport -I'C:/Qt/5.0.2/5.0.2/Src/QtSerialPort/src/serialport' -I'../../i
nclude' -I'../../include/QtSerialPort' -I'../../include/QtSerialPort/5.1.0' -I'.
./../include/QtSerialPort/5.1.0/QtSerialPort' -I'tmp' -I'C:/Qt/5.0.2/5.0.2/mingw
47_32/include' -I'C:/Qt/5.0.2/5.0.2/mingw47_32/include/QtCore' -I'C:/Qt/5.0.2/5.
0.2/mingw47_32/include/QtCore/5.0.2' -I'C:/Qt/5.0.2/5.0.2/mingw47_32/include/QtC
ore/5.0.2/QtCore' -I'.moc/release_shared' -I'.' -I'C:/Qt/5.0.2/5.0.2/mingw47_32/
mkspecs/win32-g++' -o .obj/release_shared/qserialport.o C:/Qt/5.0.2/5.0.2/Src/Qt
SerialPort/src/serialport/qserialport.cpp
In file included from C:/Qt/5.0.2/5.0.2/Src/QtSerialPort/src/serialport/qserialp
ort.h:48:0,
from C:/Qt/5.0.2/5.0.2/Src/QtSerialPort/src/serialport/qserialp
ort.cpp:45:
../../include/QtSerialPort/qserialportglobal.h:1:105: fatal error: ../../include
/QtSerialPort/../../../../../../../../c:/Qt/5.0.2/5.0.2/Src/QtSerialPort/src/ser
ialport/qserialportglobal.h: Invalid argument
compilation terminated.
Makefile.Release:287: recipe for target '.obj/release_shared/qserialport.o' fail
ed
mingw32-make[3]: *** [.obj/release_shared/qserialport.o] Error 1
mingw32-make[3]: Leaving directory 'c:/Qt/5.0.2/5.0.2/Src/QtSerialPort-build/src
/serialport'
Makefile:38: recipe for target 'release-all' failed
mingw32-make[2]: *** [release-all] Error 2
mingw32-make[2]: Leaving directory 'c:/Qt/5.0.2/5.0.2/Src/QtSerialPort-build/src
/serialport'
Makefile:38: recipe for target 'sub-serialport-make_first' failed
mingw32-make[1]: *** [sub-serialport-make_first] Error 2
mingw32-make[1]: Leaving directory 'c:/Qt/5.0.2/5.0.2/Src/QtSerialPort-build/src
'
makefile:40: recipe for target 'sub-src-make_first' failed
mingw32-make: *** [sub-src-make_first] Error 2
C:\Qt\5.0.2\5.0.2\Src\QtSerialPort-build>