JPNaude
24th June 2009, 08:55
Hi
I've been using Qt Creator for a while now and yesterday I created a new shared library using the Qt Creator wizard, but the compilation of the library doesn't want to get through compilation.
The error messages are below:
In file included from c:/Tools/Qt/2009.02/qt/include/QtCore/qnamespace.h:1,
from c:/Tools/Qt/2009.02/qt/include/QtCore/../../src/corelib/kernel/qobjectdefs.h:45,
from c:/Tools/Qt/2009.02/qt/include/QtCore/qobjectdefs.h:1,
from c:/Tools/Qt/2009.02/qt/include/QtGui/../../src/gui/kernel/qwindowdefs.h:45,
from c:/Tools/Qt/2009.02/qt/include/QtGui/qwindowdefs.h:1,
from c:/Tools/Qt/2009.02/qt/include/QtGui/../../src/gui/kernel/qwidget.h:45,
from c:/Tools/Qt/2009.02/qt/include/QtGui/qwidget.h:1,
from c:/Tools/Qt/2009.02/qt/include/QtGui/QWidget:1,
from include\QtObserverLibrary\ObserverCollectionDetail sWidget.h:4:
c:/Tools/Qt/2009.02/qt/include/QtCore/../../src/corelib/global/qnamespace.h:54: error: syntax error before "namespace"
c:/Tools/Qt/2009.02/qt/include/QtCore/../../src/corelib/global/qnamespace.h:58: error: syntax error before '{' token
c:/Tools/Qt/2009.02/qt/include/QtCore/../../src/corelib/global/qnamespace.h:135: warning: return type defaults to `int'
c:/Tools/Qt/2009.02/qt/include/QtCore/../../src/corelib/global/qnamespace.h: In function `Q_DECLARE_FLAGS':
c:/Tools/Qt/2009.02/qt/include/QtCore/../../src/corelib/global/qnamespace.h:136: error: `Qt' undeclared (first use in this function)
c:/Tools/Qt/2009.02/qt/include/QtCore/../../src/corelib/global/qnamespace.h:136: error: (Each undeclared identifier is reported only once
c:/Tools/Qt/2009.02/qt/include/QtCore/../../src/corelib/global/qnamespace.h:136: error: for each function it appears in.)
c:/Tools/Qt/2009.02/qt/include/QtCore/../../src/corelib/global/qnamespace.h:136: confused by earlier errors, bailing out
mingw32-make[1]: Leaving directory `D:/ScinericSoftware/Products/QtObserverLibrary/trunk'
mingw32-make: Leaving directory `D:/ScinericSoftware/Products/QtObserverLibrary/trunk'
mingw32-make[1]: *** [tmp/ObserverCollectionDetailsWidget.o] Error 1
mingw32-make: *** [debug] Error 2
Exited with code 2.
And below is my .pro file:
CONFIG += qt dll ordered
QT += xml
TARGET = QtObserverLibrary
TEMPLATE = lib
DEFINES += QTOBSERVERLIBRARY_LIBRARY
DEPENDPATH += include/QtObserverLibrary \
source
INCLUDEPATH += include/QtObserverLibrary \
source
win32:UI_HEADERS_DIR = include/QtObserverLibrary
win32:DLLDESTDIR = bin
win32:DESTDIR = bin
win32:OBJECTS_DIR = tmp
win32:MOC_DIR = tmp
win32:RCC_DIR = tmp
win32:UI_DIR = tmp
+ Some headers, forms and sources
Maybe I'm missing something simple, but I just can't seem to get it working. Shouldn't the Qt environment exposed to make by default?
Thanks for any inputs,
Regards,
Jaco
I've been using Qt Creator for a while now and yesterday I created a new shared library using the Qt Creator wizard, but the compilation of the library doesn't want to get through compilation.
The error messages are below:
In file included from c:/Tools/Qt/2009.02/qt/include/QtCore/qnamespace.h:1,
from c:/Tools/Qt/2009.02/qt/include/QtCore/../../src/corelib/kernel/qobjectdefs.h:45,
from c:/Tools/Qt/2009.02/qt/include/QtCore/qobjectdefs.h:1,
from c:/Tools/Qt/2009.02/qt/include/QtGui/../../src/gui/kernel/qwindowdefs.h:45,
from c:/Tools/Qt/2009.02/qt/include/QtGui/qwindowdefs.h:1,
from c:/Tools/Qt/2009.02/qt/include/QtGui/../../src/gui/kernel/qwidget.h:45,
from c:/Tools/Qt/2009.02/qt/include/QtGui/qwidget.h:1,
from c:/Tools/Qt/2009.02/qt/include/QtGui/QWidget:1,
from include\QtObserverLibrary\ObserverCollectionDetail sWidget.h:4:
c:/Tools/Qt/2009.02/qt/include/QtCore/../../src/corelib/global/qnamespace.h:54: error: syntax error before "namespace"
c:/Tools/Qt/2009.02/qt/include/QtCore/../../src/corelib/global/qnamespace.h:58: error: syntax error before '{' token
c:/Tools/Qt/2009.02/qt/include/QtCore/../../src/corelib/global/qnamespace.h:135: warning: return type defaults to `int'
c:/Tools/Qt/2009.02/qt/include/QtCore/../../src/corelib/global/qnamespace.h: In function `Q_DECLARE_FLAGS':
c:/Tools/Qt/2009.02/qt/include/QtCore/../../src/corelib/global/qnamespace.h:136: error: `Qt' undeclared (first use in this function)
c:/Tools/Qt/2009.02/qt/include/QtCore/../../src/corelib/global/qnamespace.h:136: error: (Each undeclared identifier is reported only once
c:/Tools/Qt/2009.02/qt/include/QtCore/../../src/corelib/global/qnamespace.h:136: error: for each function it appears in.)
c:/Tools/Qt/2009.02/qt/include/QtCore/../../src/corelib/global/qnamespace.h:136: confused by earlier errors, bailing out
mingw32-make[1]: Leaving directory `D:/ScinericSoftware/Products/QtObserverLibrary/trunk'
mingw32-make: Leaving directory `D:/ScinericSoftware/Products/QtObserverLibrary/trunk'
mingw32-make[1]: *** [tmp/ObserverCollectionDetailsWidget.o] Error 1
mingw32-make: *** [debug] Error 2
Exited with code 2.
And below is my .pro file:
CONFIG += qt dll ordered
QT += xml
TARGET = QtObserverLibrary
TEMPLATE = lib
DEFINES += QTOBSERVERLIBRARY_LIBRARY
DEPENDPATH += include/QtObserverLibrary \
source
INCLUDEPATH += include/QtObserverLibrary \
source
win32:UI_HEADERS_DIR = include/QtObserverLibrary
win32:DLLDESTDIR = bin
win32:DESTDIR = bin
win32:OBJECTS_DIR = tmp
win32:MOC_DIR = tmp
win32:RCC_DIR = tmp
win32:UI_DIR = tmp
+ Some headers, forms and sources
Maybe I'm missing something simple, but I just can't seem to get it working. Shouldn't the Qt environment exposed to make by default?
Thanks for any inputs,
Regards,
Jaco