[Interest] qt in namespace

Tim Blechmann tim at klingt.org
Fri Dec 20 13:01:04 CET 2013


On 20/12/13 10:41, Tim Blechmann wrote:
> hi all,
> 
> i'm having some troubles to compile qt into a separate namespace.
> configuring via:
> 
> mkdir bla
> cd bla
> ../configure -developer-build -nomake examples -nomake tests
> -qtnamespace TestQtNamespace
> 
> gives me the following compile error:
> 
> /Users/tim/dev/qt-everywhere-opensource-src-5.2.0/qtdeclarative/src/qml/util/qqmladaptormodel.cpp:975:10:
> fatal error:
>       'qqmladaptormodel.moc' file not found
> #include <qqmladaptormodel.moc>
> 
> am i doing something wrong here?
> 
> thanks a lot,
> tim
> 

the error above happens when compiling with a build directory. compiling
without build directory, it fails differently:

--
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++
-c -pipe -arch i386 -g -gdwarf-2 -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk
-std=c++11 -stdlib=libc++ -mmacosx-version-min=10.7 -fvisibility=hidden
-fvisibility-inlines-hidden -fno-exceptions -Wall -W -fPIC
-DQT_NO_LIBUDEV -DQT_NO_EVDEV -DQT_NO_XCB -DQT_NO_XKBCOMMON
-DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_PLUGIN
-DQT_QML_LIB -DQT_XMLPATTERNS_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB
-DQT_NAMESPACE=TestQtNamespace
-I/Users/tim/dev/qt-everywhere-opensource-src-5.2.0/qtbase/mkspecs/macx-clang-32
-I. -I../../../lib/QtQml.framework/Versions/5/Headers
-I../../../lib/QtQml.framework/Versions/5/Headers/5.2.0
-I../../../lib/QtQml.framework/Versions/5/Headers/5.2.0/QtQml
-I/Users/tim/dev/qt-everywhere-opensource-src-5.2.0/qtbase/lib/QtXmlPatterns.framework/Versions/5/Headers
-I/usr/local/Qt-5.2.0/lib/QtCore.framework/Headers/5.2.0
-I/usr/local/Qt-5.2.0/lib/QtCore.framework/Headers/5.2.0/QtCore
-I.moc/debug
-F/Users/tim/dev/qt-everywhere-opensource-src-5.2.0/qtdeclarative/lib
-F/Users/tim/dev/qt-everywhere-opensource-src-5.2.0/qtbase/lib
-F/usr/local/Qt-5.2.0/lib -o .obj/debug/qqmlxmllistmodel.o
qqmlxmllistmodel.cpp
In file included from qqmlxmllistmodel.cpp:42:
In file included from ./qqmlxmllistmodel_p.h:51:
In file included from
../../../lib/QtQml.framework/Versions/5/Headers/5.2.0/QtQml/private/qv8engine_p.h:68:
In file included from
../../../lib/QtQml.framework/Versions/5/Headers/5.2.0/QtQml/private/qqmlpropertycache_p.h:59:
In file included from
../../../lib/QtQml.framework/Versions/5/Headers/5.2.0/QtQml/private/qqmlnotifier_p.h:45:
../../../lib/QtQml.framework/Versions/5/Headers/5.2.0/QtQml/private/qqmldata_p.h:57:10:
fatal error: 'private/qobject_p.h'
      file not found
#include <private/qobject_p.h>
         ^
1 error generated

--

doing the same without the "-qtnamespace TestQtNamespace" config option
results in a clean build ...

thoughts?

thnx,
tim





More information about the Interest mailing list