Hi,
I've tried to compile an older project with the latest version of qextserialport (1.2 rc).
I was able to build the dll and I've got the lib file.
I've added the lib to my project file and included serialport.h to my project.
every thing works so far but finally by compiling the project I get following:

Qt Code:
  1. [QUOTE]debug\moc_qextserialport.cpp: In static member function 'static void QextSerialPort::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)':
  2. debug\moc_qextserialport.cpp:158:32: error: 'class QextSerialPortPrivate' has no member named '_q_onWinEvent'
  3. case 13: _t->d_func()->_q_onWinEvent((*reinterpret_cast< HANDLE(*)>(_a[1]))); break;
  4. ^
  5. debug\moc_qextserialport.cpp:158:66: error: expected type-specifier before 'HANDLE'
  6. case 13: _t->d_func()->_q_onWinEvent((*reinterpret_cast< HANDLE(*)>(_a[1]))); break;[/QUOTE]
To copy to clipboard, switch view to plain text mode 
^




I've checked the qextserialport.h, the declaration of the class member is there, but somehow not found in the moc_

Qt Code:
  1. [QUOTE]Part out of class declaration:
  2.  
  3. void setDtr(bool set=true);
  4. void setRts(bool set=true);
  5.  
  6. Q_SIGNALS:
  7. void dsrChanged(bool status);
  8.  
  9. protected:
  10. qint64 readData(char *data, qint64 maxSize);
  11. qint64 writeData(const char *data, qint64 maxSize);
  12.  
  13. private:
  14. Q_DISABLE_COPY(QextSerialPort)
  15.  
  16. #ifdef Q_OS_WIN
  17. Q_PRIVATE_SLOT(d_func(), void _q_onWinEvent(HANDLE))
  18. #endif
  19. Q_PRIVATE_SLOT(d_func(), void _q_canRead())
  20.  
  21. QextSerialPortPrivate *const d_ptr;
  22. };
  23.  
  24. #endif[/QUOTE]
To copy to clipboard, switch view to plain text mode 
Is here something missong? anybody an idea?

Thanks!







Qt Code:
  1. [QUOTE][QUOTE]09:17:46: Führe Schritte für Projekt DCP_Mon_Anwendung_QT5 aus...
  2. 09:17:46: Starte "C:\Qt\Tools\mingw491_32\bin\mingw32-make.exe" clean
  3. C:/Qt/Tools/mingw491_32/bin/mingw32-make -f Makefile.Debug clean
  4. mingw32-make[1]: Entering directory 'C:/Users/DESC0213/Dropbox/Projekte/QT_Projekte/DCP_GATEWAY_MONITOR/dcp_monitor_Qextserialport_qt5/build-DCP_Mon_Anwendung_QT5-Desktop_Qt_5_4_2_MinGW_32bit2-Debug'
  5. del debug\moc_confdialog.cpp debug\moc_mainwindow.cpp debug\moc_mthread.cpp debug\moc_qextserialenumerator.cpp debug\moc_qextserialport.cpp
  6. del ui_confdialog.h ui_mainwindow.h
  7. mingw32-make[1]: Leaving directory 'C:/Users/DESC0213/Dropbox/Projekte/QT_Projekte/DCP_GATEWAY_MONITOR/dcp_monitor_Qextserialport_qt5/build-DCP_Mon_Anwendung_QT5-Desktop_Qt_5_4_2_MinGW_32bit2-Debug'
  8. 09:17:46: Der Prozess "C:\Qt\Tools\mingw491_32\bin\mingw32-make.exe" wurde normal beendet.
  9. 09:17:46: Unveränderte Konfiguration, qmake-Schritt wird übersprungen.
  10. 09:17:46: Starte "C:\Qt\Tools\mingw491_32\bin\mingw32-make.exe"
  11. C:/Qt/Tools/mingw491_32/bin/mingw32-make -f Makefile.Debug
  12. mingw32-make[1]: Entering directory 'C:/Users/DESC0213/Dropbox/Projekte/QT_Projekte/DCP_GATEWAY_MONITOR/dcp_monitor_Qextserialport_qt5/build-DCP_Mon_Anwendung_QT5-Desktop_Qt_5_4_2_MinGW_32bit2-Debug'
  13. C:\Qt\5.4\mingw491_32\bin\uic.exe ..\src\confdialog.ui -o ui_confdialog.h
  14. C:\Qt\5.4\mingw491_32\bin\uic.exe ..\src\mainwindow.ui -o ui_mainwindow.h
  15. g++ -c -pipe -fno-keep-inline-dllexport -g -frtti -Wall -Wextra -fexceptions -mthreads -D_TTY_WIN_ -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I"..\DCP_Mon_Anwendung_QT5" -I"." -I"..\src\qextserialport-1.2rc\src" -I"C:\Qt\5.4\mingw491_32\include" -I"C:\Qt\5.4\mingw491_32\include\QtWidgets" -I"C:\Qt\5.4\mingw491_32\include\QtGui" -I"C:\Qt\5.4\mingw491_32\include\QtCore" -I"debug" -I"." -I"C:\Qt\5.4\mingw491_32\mkspecs\win32-g++" -o debug\logfile.o ..\src\logfile.cpp
  16. ..\src\logfile.cpp: In constructor 'LogFile::LogFile()':
  17. ..\src\logfile.cpp:11:31: warning: suggest braces around empty body in an 'if' statement [-Wempty-body]
  18. if(sw.rename(pathbak));
  19. ^
  20. ..\src\logfile.cpp:15:20: warning: suggest braces around empty body in an 'if' statement [-Wempty-body]
  21. if(sw.exists());
  22. ^
  23. g++ -c -pipe -fno-keep-inline-dllexport -g -frtti -Wall -Wextra -fexceptions -mthreads -D_TTY_WIN_ -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I"..\DCP_Mon_Anwendung_QT5" -I"." -I"..\src\qextserialport-1.2rc\src" -I"C:\Qt\5.4\mingw491_32\include" -I"C:\Qt\5.4\mingw491_32\include\QtWidgets" -I"C:\Qt\5.4\mingw491_32\include\QtGui" -I"C:\Qt\5.4\mingw491_32\include\QtCore" -I"debug" -I"." -I"C:\Qt\5.4\mingw491_32\mkspecs\win32-g++" -o debug\main.o ..\src\main.cpp
  24. g++ -c -pipe -fno-keep-inline-dllexport -g -frtti -Wall -Wextra -fexceptions -mthreads -D_TTY_WIN_ -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I"..\DCP_Mon_Anwendung_QT5" -I"." -I"..\src\qextserialport-1.2rc\src" -I"C:\Qt\5.4\mingw491_32\include" -I"C:\Qt\5.4\mingw491_32\include\QtWidgets" -I"C:\Qt\5.4\mingw491_32\include\QtGui" -I"C:\Qt\5.4\mingw491_32\include\QtCore" -I"debug" -I"." -I"C:\Qt\5.4\mingw491_32\mkspecs\win32-g++" -o debug\mainwindow.o ..\src\mainwindow.cpp
  25. ..\src\mainwindow.cpp:159:42: warning: unused parameter 'event' [-Wunused-parameter]
  26. void MainWindow::closeEvent(QCloseEvent *event)
  27. ^
  28. ..\src\mainwindow.cpp:234:40: warning: unused parameter 'key' [-Wunused-parameter]
  29. void MainWindow::updatesetting(QString key, QString value)
  30. ^
  31. ..\src\mainwindow.cpp:234:53: warning: unused parameter 'value' [-Wunused-parameter]
  32. void MainWindow::updatesetting(QString key, QString value)
  33. ^
  34. ..\src\mainwindow.cpp: In member function 'void MainWindow::transmitMsg()':
  35. ..\src\mainwindow.cpp:425:7: warning: variable 'p_buff' set but not used [-Wunused-but-set-variable]
  36. char *p_buff;
  37. ^
  38. ..\src\mainwindow.cpp: At global scope:
  39. ..\src\mainwindow.cpp:987:48: warning: unused parameter 'dat' [-Wunused-parameter]
  40. void MainWindow::update_checkbox(unsigned char dat)
  41. ^
  42. g++ -c -pipe -fno-keep-inline-dllexport -g -frtti -Wall -Wextra -fexceptions -mthreads -D_TTY_WIN_ -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I"..\DCP_Mon_Anwendung_QT5" -I"." -I"..\src\qextserialport-1.2rc\src" -I"C:\Qt\5.4\mingw491_32\include" -I"C:\Qt\5.4\mingw491_32\include\QtWidgets" -I"C:\Qt\5.4\mingw491_32\include\QtGui" -I"C:\Qt\5.4\mingw491_32\include\QtCore" -I"debug" -I"." -I"C:\Qt\5.4\mingw491_32\mkspecs\win32-g++" -o debug\moc_qextserialport.o debug\moc_qextserialport.cpp
  43. debug\moc_qextserialport.cpp: In static member function 'static void QextSerialPort::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)':
  44. debug\moc_qextserialport.cpp:158:32: error: 'class QextSerialPortPrivate' has no member named '_q_onWinEvent'
  45. case 13: _t->d_func()->_q_onWinEvent((*reinterpret_cast< HANDLE(*)>(_a[1]))); break;
  46. ^
  47. debug\moc_qextserialport.cpp:158:66: error: expected type-specifier before 'HANDLE'
  48. case 13: _t->d_func()->_q_onWinEvent((*reinterpret_cast< HANDLE(*)>(_a[1]))); break;
  49. ^
  50. debug\moc_qextserialport.cpp:158:66: error: expected '>' before 'HANDLE'
  51. debug\moc_qextserialport.cpp:158:66: error: expected '(' before 'HANDLE'
  52. debug\moc_qextserialport.cpp:158:74: error: expected primary-expression before ')' token
  53. case 13: _t->d_func()->_q_onWinEvent((*reinterpret_cast< HANDLE(*)>(_a[1]))); break;
  54. ^
  55. debug\moc_qextserialport.cpp:158:74: error: 'HANDLE' was not declared in this scope
  56. debug\moc_qextserialport.cpp:158:74: note: suggested alternative:
  57. In file included from C:\Qt\5.4\mingw491_32\include/QtCore/qobjectdefs.h:41:0,
  58. from C:\Qt\5.4\mingw491_32\include/QtCore/qobject.h:40,
  59. from C:\Qt\5.4\mingw491_32\include/QtCore/qiodevice.h:39,
  60. from C:\Qt\5.4\mingw491_32\include/QtCore/QIODevice:1,
  61. from debug\../../src/qextserialport-1.2rc/src/qextserialport.h:35,
  62. from debug\moc_qextserialport.cpp:9:
  63. C:\Qt\5.4\mingw491_32\include/QtCore/qnamespace.h:1490:20: note: 'Qt::HANDLE'
  64. typedef void * HANDLE;
  65. ^
  66. debug\moc_qextserialport.cpp:159:32: error: 'class QextSerialPortPrivate' has no member named '_q_canRead'
  67. case 14: _t->d_func()->_q_canRead(); break;
  68. ^
  69. Makefile.Debug:2004: recipe for target 'debug/moc_qextserialport.o' failed
  70. mingw32-make[1]: *** [debug/moc_qextserialport.o] Error 1
  71. mingw32-make[1]: Leaving directory 'C:/Users/DESC0213/Dropbox/Projekte/QT_Projekte/DCP_GATEWAY_MONITOR/dcp_monitor_Qextserialport_qt5/build-DCP_Mon_Anwendung_QT5-Desktop_Qt_5_4_2_MinGW_32bit2-Debug'
  72. makefile:34: recipe for target 'debug' failed
  73. mingw32-make: *** [debug] Error 2
  74. 09:18:04: Der Prozess "C:\Qt\Tools\mingw491_32\bin\mingw32-make.exe" wurde mit dem Rückgabewert 2 beendet.
  75. Fehler beim Erstellen/Deployment des Projekts DCP_Mon_Anwendung_QT5 (Kit: Desktop Qt 5.4.2 MinGW 32bit2)
  76. Bei der Ausführung von Schritt "Make"
  77. 09:18:04: Verstrichene Zeit: 00:18.[/QUOTE][/QUOTE]
To copy to clipboard, switch view to plain text mode