[Gammaray-interest] Qt Internals problem
Kevin Funk
kevin.funk at kdab.com
Tue Oct 29 09:33:13 CET 2013
On Tuesday 29 October 2013, 08:57, Stefano Cordibella wrote:
> Hi again,
> I have a question about compiling GammaRay with Qt internals
> feature enable.
> What is the directory that I should provide for this feature?
> I edit the cmake cache and I found an entry named QT_PRIVATE_INCLUDE_DIR
> but if I set a value for it I am unable to build GammaRay.
> The documentation refer to the "build" directory of Qt, and I don't
> understand if it refers to the source directory in which I compile the
> library (my ~/Qt/qt-everywhere-opensource-src-4.8.4) or the installation
> directory (the default /usr/local/Throlltech/Qt-4.8.4/).
>
> Forgive me for this stupid question, but I am unable to find
> documentation about this topic...
>
> Thanks in advance,
> Stefano.
Hey Stefano,
unfortunately this is not a stupid question at all. It is a bit tricky to get
right with a Qt4 build at the moment. It's lacking documentation.
So, in order to enable that feature, QT_PRIVATE_INCLUDE_DIR should point to
"$MY_QT4_IN_SOURCE_BUILD_DIRECTORY/include/QtCore". Note that you don't have
to specify that variable via CMake flags or anything, it's auto-detected in
case everything is alright.
It's important that you have an *in-source build* of Qt4 (the directory must
contain both a src/ and include/ directory after having compiled Qt) -- it's
currently not possible to make this work with an out-of-source build.
Hope this clears up things a bit. In case you need to debug further, have a
look at the root CMakeLists.txt file in GammaRay.git.
Feel free to ping us on #gammaray on Freenode (IRC).
Greets
--
Kevin Funk | kevin.funk at kdab.com | Software Engineer
KDAB (Deutschland) GmbH&Co KG, a KDAB Group company
Tel. Germany +49-30-521325470, Sweden (HQ) +46-563-540090
KDAB - Qt Experts - Platform-independent software solutions
More information about the Gammaray-interest
mailing list