Пробовал со своим примером, не компилится. Вываливает дохрена ошибок.
Закинул твой пример — запускается. Но дай ка думаю удалю всякие компиленые обьектники. Удалил все из папки Debug запускаю и опа:
06:00:55: Выполняется сборка проекта Focade...
06:00:55: Настройки не изменились, этап qmake пропускается.
06:00:55: Запускается: «D:\QtSDK\mingw\bin\mingw32-make.exe»
D:/QtSDK/mingw/bin/mingw32-make.exe -f Makefile.Debug
mingw32-make.exe[1]: Entering directory `D:/Coding/Qt/Focade'
g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"..\..\..\QtSDK\Desktop\Qt\4.8.0\mingw\include\QtCore" -I"..\..\..\QtSDK\Desktop\Qt\4.8.0\mingw\include\QtGui" -I"..\..\..\QtSDK\Desktop\Qt\4.8.0\mingw\include" -I"..\qserialdevice\src\qserialdeviceenumerator" -I"..\qserialdevice\src\qserialdevice" -I"..\..\..\QtSDK\Desktop\Qt\4.8.0\mingw\include\ActiveQt" -I"debug" -I"." -I"..\..\..\QtSDK\Desktop\Qt\4.8.0\mingw\mkspecs\win32-g++" -o debug\serialdeviceenumerator_p_win.o ..\qserialdevice\src\qserialdeviceenumerator\serialdeviceenumerator_p_win.cpp
In file included from ..\qserialdevice\src\qserialdeviceenumerator\serialdeviceenumerator_p_win.cpp:27:
..\..\..\QtSDK\Desktop\Qt\4.8.0\mingw\include/QtCore/private/qwineventnotifier_p.h:1:61: error: ../../../src/corelib/kernel/qwineventnotifier_p.h: No such file or directory
..\qserialdevice\src\qserialdeviceenumerator\serialdeviceenumerator_p_win.cpp: In destructor 'virtual SerialDeviceEnumeratorPrivate::~SerialDeviceEnumeratorPrivate()':
..\qserialdevice\src\qserialdeviceenumerator\serialdeviceenumerator_p_win.cpp:78: error: invalid use of incomplete type 'struct QWinEventNotifier'
..\qserialdevice\src\qserialdeviceenumerator\/serialdeviceenumerator_p.h:101: error: forward declaration of 'struct QWinEventNotifier'
..\qserialdevice\src\qserialdeviceenumerator\serialdeviceenumerator_p_win.cpp:79: warning: possible problem detected in invocation of delete operator:
..\qserialdevice\src\qserialdeviceenumerator\serialdeviceenumerator_p_win.cpp:79: warning: invalid use of incomplete type 'struct QWinEventNotifier'
..\qserialdevice\src\qserialdeviceenumerator\/serialdeviceenumerator_p.h:101: warning: forward declaration of 'struct QWinEventNotifier'
..\qserialdevice\src\qserialdeviceenumerator\serialdeviceenumerator_p_win.cpp:79: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined.
..\qserialdevice\src\qserialdeviceenumerator\serialdeviceenumerator_p_win.cpp: In member function 'void SerialDeviceEnumeratorPrivate::setEnabled(bool)':
..\qserialdevice\src\qserialdeviceenumerator\serialdeviceenumerator_p_win.cpp:96: error: invalid use of incomplete type 'struct QWinEventNotifier'
..\qserialdevice\src\qserialdeviceenumerator\/serialdeviceenumerator_p.h:101: error: forward declaration of 'struct QWinEventNotifier'
..\qserialdevice\src\qserialdeviceenumerator\serialdeviceenumerator_p_win.cpp:97: error: no matching function for call to 'SerialDeviceEnumerator::connect(QWinEventNotifier*&, const char*, SerialDeviceEnumerator* const&, const char*)'
..\..\..\QtSDK\Desktop\Qt\4.8.0\mingw\include/QtCore/qobject.h:204: note: candidates are: static bool QObject::connect(const QObject*, const char*, const QObject*, const char*, Qt::ConnectionType)
..\..\..\QtSDK\Desktop\Qt\4.8.0\mingw\include/QtCore/qobject.h:217: note: static bool QObject::connect(const QObject*, const QMetaMethod&, const QObject*, const QMetaMethod&, Qt::ConnectionType)
..\..\..\QtSDK\Desktop\Qt\4.8.0\mingw\include/QtCore/qobject.h:337: note: bool QObject::connect(const QObject*, const char*, const char*, Qt::ConnectionType) const
..\qserialdevice\src\qserialdeviceenumerator\serialdeviceenumerator_p_win.cpp:103: error: invalid use of incomplete type 'struct QWinEventNotifier'
..\qserialdevice\src\qserialdeviceenumerator\/serialdeviceenumerator_p.h:101: error: forward declaration of 'struct QWinEventNotifier'
..\qserialdevice\src\qserialdeviceenumerator\serialdeviceenumerator_p_win.cpp: In member function 'bool SerialDeviceEnumeratorPrivate::isEnabled() const':
..\qserialdevice\src\qserialdeviceenumerator\serialdeviceenumerator_p_win.cpp:111: error: invalid use of incomplete type 'struct QWinEventNotifier'
..\qserialdevice\src\qserialdeviceenumerator\/serialdeviceenumerator_p.h:101: error: forward declaration of 'struct QWinEventNotifier'
mingw32-make.exe[1]: Leaving directory `D:/Coding/Qt/Focade'
mingw32-make.exe[1]: *** [debug/serialdeviceenumerator_p_win.o] Error 1
mingw32-make.exe: *** [debug] Error 2
06:00:55: Процесс «D:\QtSDK\mingw\bin\mingw32-make.exe» завершился с кодом 2.
Возникла ошибка при сборке проекта Focade (цель: Desktop)
Во время выполнения сборки на этапе «Сборка»
А самое главное — если переключаем нагрузку на 12В, на затвор N-катального транзистора надо вкачивать 18-24В, это и есть главная задача, которую драйверы решают :-)
Слова добавлю, мб.
Закинул твой пример — запускается. Но дай ка думаю удалю всякие компиленые обьектники. Удалил все из папки Debug запускаю и опа:
Что за нафиг, че ей не хватает?
include(../qserialdevice/src/qserialdeviceenumerator/qserialdeviceenumerator.pri)
include(../qserialdevice/src/qserialdevice/qserialdevice.pri) win32 { LIBS += -lsetupapi -luuid -ladvapi32 } unix:!macx { LIBS += -ludev }
Для винды все то же самое?
Спасибо за ответ
Ага, обычной. Затолкали в ящик — вытащил с трудом)