mischter-x
24th October 2011, 10:51
Hello,
I just started programming QT4 on an Windows 7 64bit OS and now I want to use the SerialPort.
I've already read a lot Thread in several forums, and I found the QextSerialPort and the QSerialDevice.
Would QSerialDevice be better, because QextSerialPort is not longer developed?
I downloaded both an tryed to compiled them. Compiling QextSerialPort gives me a libqextserialport.a and a qextserialport.dll, but do I have to do with these files?
Compiling QSerialPort gives me a few errors. Here is the Build Log:
Führe Build-Schritte für Projekt BuildLibrary aus... //Translation: Building Project BuildLibrary
Unveränderte Konfiguration, qmake-Schritt wird übersprungen. //Translation: Config not changed, skipping qmake
Starte "C:\QtSDK\mingw\bin\mingw32-make.exe"
cd src/ && C:/QtSDK/mingw/bin/mingw32-make -f Makefile
mingw32-make[1]: Entering directory `c:/Users/Philipp/Documents/Qt/QSerialPort/BuildLibrary-build-desktop-Qt_4_7_4_for_Desktop_-_MinGW_4_4__Qt_SDK__Release/src'
c:/QtSDK/mingw/bin/mingw32-make -f Makefile.Release
mingw32-make[2]: Entering directory `c:/Users/Philipp/Documents/Qt/QSerialPort/BuildLibrary-build-desktop-Qt_4_7_4_for_Desktop_-_MinGW_4_4__Qt_SDK__Release/src'
g++ -c -O2 -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -I'c:/QtSDK/Desktop/Qt/4.7.4/mingw/include/QtCore' -I'c:/QtSDK/Desktop/Qt/4.7.4/mingw/include' -I'../../qserialdevice-qserialdevice/src/qserialdevice' -I'../../qserialdevice-qserialdevice/src/qserialdeviceenumerator' -I'c:/QtSDK/Desktop/Qt/4.7.4/mingw/include/ActiveQt' -I'build/moc' -I'../../qserialdevice-qserialdevice/src' -I'.' -I'c:/QtSDK/Desktop/Qt/4.7.4/mingw/mkspecs/win32-g++' -o build/obj/abstractserialnotifier.o ../../qserialdevice-qserialdevice/src/qserialdevice/abstractserialnotifier.cpp
In file included from ../../qserialdevice-qserialdevice/src/qserialdevice/abstractserialnotifier.cpp:2:
../../qserialdevice-qserialdevice/src/qserialdevice/nativeserialnotifier.h:8:50: error: QtCore/private/qwineventnotifier_p.h: No such file or directory
In file included from ../../qserialdevice-qserialdevice/src/qserialdevice/abstractserialnotifier.cpp:2:
../../qserialdevice-qserialdevice/src/qserialdevice/nativeserialnotifier.h:18: error: expected class-name before ',' token
../../qserialdevice-qserialdevice/src/qserialdevice/nativeserialnotifier.h:37: error: 'OVERLAPPED' in namespace '::' does not name a type
../../qserialdevice-qserialdevice/src/qserialdevice/nativeserialnotifier.h:38: error: 'DWORD' in namespace '::' does not name a type
../../qserialdevice-qserialdevice/src/qserialdevice/nativeserialnotifier.h:39: error: 'DWORD' in namespace '::' does not name a type
mingw32-make[2]: Leaving directory `c:/Users/Philipp/Documents/Qt/QSerialPort/BuildLibrary-build-desktop-Qt_4_7_4_for_Desktop_-_MinGW_4_4__Qt_SDK__Release/src'
mingw32-make[1]: Leaving directory `c:/Users/Philipp/Documents/Qt/QSerialPort/BuildLibrary-build-desktop-Qt_4_7_4_for_Desktop_-_MinGW_4_4__Qt_SDK__Release/src'
mingw32-make[2]: *** [build/obj/abstractserialnotifier.o] Error 1
mingw32-make[1]: *** [release] Error 2
mingw32-make: *** [sub-src-make_default] Error 2
Der Prozess "C:\QtSDK\mingw\bin\mingw32-make.exe" wurde mit dem Rückgabewert 2 beendet. //Returns 2
Fehler beim Erstellen des Projekts BuildLibrary(Ziel: Desktop) //Error while compiling Project BuildLibrary (Target: Desktop)
Bei der Ausführung von Build-Schritt 'Make' //At builing step 'Make'
What could be wrong?
Greeting
Philipp
I just started programming QT4 on an Windows 7 64bit OS and now I want to use the SerialPort.
I've already read a lot Thread in several forums, and I found the QextSerialPort and the QSerialDevice.
Would QSerialDevice be better, because QextSerialPort is not longer developed?
I downloaded both an tryed to compiled them. Compiling QextSerialPort gives me a libqextserialport.a and a qextserialport.dll, but do I have to do with these files?
Compiling QSerialPort gives me a few errors. Here is the Build Log:
Führe Build-Schritte für Projekt BuildLibrary aus... //Translation: Building Project BuildLibrary
Unveränderte Konfiguration, qmake-Schritt wird übersprungen. //Translation: Config not changed, skipping qmake
Starte "C:\QtSDK\mingw\bin\mingw32-make.exe"
cd src/ && C:/QtSDK/mingw/bin/mingw32-make -f Makefile
mingw32-make[1]: Entering directory `c:/Users/Philipp/Documents/Qt/QSerialPort/BuildLibrary-build-desktop-Qt_4_7_4_for_Desktop_-_MinGW_4_4__Qt_SDK__Release/src'
c:/QtSDK/mingw/bin/mingw32-make -f Makefile.Release
mingw32-make[2]: Entering directory `c:/Users/Philipp/Documents/Qt/QSerialPort/BuildLibrary-build-desktop-Qt_4_7_4_for_Desktop_-_MinGW_4_4__Qt_SDK__Release/src'
g++ -c -O2 -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -I'c:/QtSDK/Desktop/Qt/4.7.4/mingw/include/QtCore' -I'c:/QtSDK/Desktop/Qt/4.7.4/mingw/include' -I'../../qserialdevice-qserialdevice/src/qserialdevice' -I'../../qserialdevice-qserialdevice/src/qserialdeviceenumerator' -I'c:/QtSDK/Desktop/Qt/4.7.4/mingw/include/ActiveQt' -I'build/moc' -I'../../qserialdevice-qserialdevice/src' -I'.' -I'c:/QtSDK/Desktop/Qt/4.7.4/mingw/mkspecs/win32-g++' -o build/obj/abstractserialnotifier.o ../../qserialdevice-qserialdevice/src/qserialdevice/abstractserialnotifier.cpp
In file included from ../../qserialdevice-qserialdevice/src/qserialdevice/abstractserialnotifier.cpp:2:
../../qserialdevice-qserialdevice/src/qserialdevice/nativeserialnotifier.h:8:50: error: QtCore/private/qwineventnotifier_p.h: No such file or directory
In file included from ../../qserialdevice-qserialdevice/src/qserialdevice/abstractserialnotifier.cpp:2:
../../qserialdevice-qserialdevice/src/qserialdevice/nativeserialnotifier.h:18: error: expected class-name before ',' token
../../qserialdevice-qserialdevice/src/qserialdevice/nativeserialnotifier.h:37: error: 'OVERLAPPED' in namespace '::' does not name a type
../../qserialdevice-qserialdevice/src/qserialdevice/nativeserialnotifier.h:38: error: 'DWORD' in namespace '::' does not name a type
../../qserialdevice-qserialdevice/src/qserialdevice/nativeserialnotifier.h:39: error: 'DWORD' in namespace '::' does not name a type
mingw32-make[2]: Leaving directory `c:/Users/Philipp/Documents/Qt/QSerialPort/BuildLibrary-build-desktop-Qt_4_7_4_for_Desktop_-_MinGW_4_4__Qt_SDK__Release/src'
mingw32-make[1]: Leaving directory `c:/Users/Philipp/Documents/Qt/QSerialPort/BuildLibrary-build-desktop-Qt_4_7_4_for_Desktop_-_MinGW_4_4__Qt_SDK__Release/src'
mingw32-make[2]: *** [build/obj/abstractserialnotifier.o] Error 1
mingw32-make[1]: *** [release] Error 2
mingw32-make: *** [sub-src-make_default] Error 2
Der Prozess "C:\QtSDK\mingw\bin\mingw32-make.exe" wurde mit dem Rückgabewert 2 beendet. //Returns 2
Fehler beim Erstellen des Projekts BuildLibrary(Ziel: Desktop) //Error while compiling Project BuildLibrary (Target: Desktop)
Bei der Ausführung von Build-Schritt 'Make' //At builing step 'Make'
What could be wrong?
Greeting
Philipp