Running build steps for project testQSer...
Starting: "/usr/bin/qmake-qt4" /home/POWERSOFT/massimiliano/prog/testQser/testQSer/testQSer.pro -r -spec linux-g++ CONFIG+=debug
The process "/usr/bin/qmake-qt4" exited normally.
Starting: "/usr/bin/make" -w
make: ingresso nella directory «/home/POWERSOFT/massimiliano/prog/testQser/testQSer-build-desktop»
g++ -c -pipe -g -Wall -W -D_REENTRANT -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I../testQSer -I/usr/include/qt4/QtCore -I/usr/include/qt4 -I. -I../testQSer -I. -o main.o ../testQSer/main.cpp
/usr/bin/moc-qt4 -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I../testQSer -I/usr/include/qt4/QtCore -I/usr/include/qt4 -I. -I../testQSer -I. ../testQSer/myclass.h -o moc_myclass.cpp
g++ -c -pipe -g -Wall -W -D_REENTRANT -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I../testQSer -I/usr/include/qt4/QtCore -I/usr/include/qt4 -I. -I../testQSer -I. -o moc_myclass.o moc_myclass.cpp
/usr/bin/moc-qt4 -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I../testQSer -I/usr/include/qt4/QtCore -I/usr/include/qt4 -I. -I../testQSer -I. ../testQSer/seriale/serialdevicewatcher.h -o moc_serialdevicewatcher.cpp
g++ -c -pipe -g -Wall -W -D_REENTRANT -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I../testQSer -I/usr/include/qt4/QtCore -I/usr/include/qt4 -I. -I../testQSer -I. -o moc_serialdevicewatcher.o moc_serialdevicewatcher.cpp
moc_serialdevicewatcher.cpp:12:2: error: #error "The header file 'serialdevicewatcher.h' doesn't include <QObject>."
In file included from moc_serialdevicewatcher.cpp:10:
../testQSer/seriale/serialdevicewatcher.h:29: error: expected class-name before ‘{’ token
../testQSer/seriale/serialdevicewatcher.h:30: error: ‘Q_OBJECT’ does not name a type
../testQSer/seriale/serialdevicewatcher.h:36: error: expected ‘)’ before ‘*’ token
..
/testQSer
/seriale
/serialdevicewatcher.
h:41: error
: ‘
QStringList’ does not name a type
../testQSer/seriale/serialdevicewatcher.h:47: error: ISO C++ forbids declaration of ‘Q_DECLARE_PRIVATE’ with no type
../testQSer/seriale/serialdevicewatcher.h:48: error: expected ‘;’ before ‘Q_DISABLE_COPY’
../testQSer/seriale/serialdevicewatcher.h:50: error: expected ‘;’ before ‘}’ token
../testQSer/seriale/serialdevicewatcher.h:44: warning: non-static const member ‘SerialDeviceWatcherPrivate* const SerialDeviceWatcher::d_ptr’ in class without a constructor
moc_serialdevicewatcher.cpp:20: error: expected constructor, destructor, or type conversion before ‘static’
moc_serialdevicewatcher.
cpp:46: error
: ‘
QMetaObject’ does not name a type
moc_serialdevicewatcher.cpp:51: error: expected initializer before ‘*’ token
moc_serialdevicewatcher.cpp:56: error: no ‘void* SerialDeviceWatcher::qt_metacast(const char*)’ member function declared in class ‘SerialDeviceWatcher’
moc_serialdevicewatcher.cpp:64: error: ‘int SerialDeviceWatcher::qt_metacall’ is not a static member of ‘class SerialDeviceWatcher’
moc_serialdevicewatcher.
cpp:64: error
: ‘
QMetaObject’ has not been declared
moc_serialdevicewatcher.cpp:64: error: expected primary-expression before ‘int’
moc_serialdevicewatcher.cpp:64: error: expected primary-expression before ‘void’
moc_serialdevicewatcher.cpp:64: error: initializer expression list treated as compound expression
moc_serialdevicewatcher.cpp:65: error: expected ‘,’ or ‘;’ before ‘{’ token
make: uscita dalla directory «/home/POWERSOFT/massimiliano/prog/testQser/testQSer-build-desktop»
make: *** [moc_serialdevicewatcher.o] Errore 1
The process "/usr/bin/make" exited with code %2.
Error while building project testQSer (target: Desktop)
When executing build step 'Make'
Bookmarks