<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Thank you Kevin for your quick answer!<br>
<br>
In my environment I am unable to auto-detect
QT_PRIVATE_INCLUDE_DIR.<br>
<br>
I export qmake bin dir in this way: <br>
<tt> export PATH=/usr/local/Trolltech/Qt-4.8.4/bin:$PATH</tt><br>
<br>
But CMake told me :<br>
<tt>-- The C compiler identification is GNU</tt><tt><br>
</tt><tt>-- The CXX compiler identification is GNU</tt><tt><br>
</tt><tt>-- Check for working C compiler: /usr/bin/gcc</tt><tt><br>
</tt><tt>-- Check for working C compiler: /usr/bin/gcc -- works</tt><tt><br>
</tt><tt>-- Detecting C compiler ABI info</tt><tt><br>
</tt><tt>-- Detecting C compiler ABI info - done</tt><tt><br>
</tt><tt>-- Check for working CXX compiler: /usr/bin/c++</tt><tt><br>
</tt><tt>-- Check for working CXX compiler: /usr/bin/c++ -- works</tt><tt><br>
</tt><tt>-- Detecting CXX compiler ABI info</tt><tt><br>
</tt><tt>-- Detecting CXX compiler ABI info - done</tt><tt><br>
</tt><tt>-- Building GammaRay 1.3.2 in Release mode</tt><tt><br>
</tt><tt>-- Looking for Q_WS_X11</tt><tt><br>
</tt><tt>-- Looking for Q_WS_X11 - found</tt><tt><br>
</tt><tt>-- Looking for Q_WS_WIN</tt><tt><br>
</tt><tt>-- Looking for Q_WS_WIN - not found.</tt><tt><br>
</tt><tt>-- Looking for Q_WS_QWS</tt><tt><br>
</tt><tt>-- Looking for Q_WS_QWS - not found.</tt><tt><br>
</tt><tt>-- Looking for Q_WS_MAC</tt><tt><br>
</tt><tt>-- Looking for Q_WS_MAC - not found.</tt><tt><br>
</tt><tt>-- Found Qt4: /usr/local/Trolltech/Qt-4.8.4/bin/qmake
(found suitable version "4.8.4", required is "4.7.0")</tt><tt><br>
</tt><tt>-- Looking for clock_gettime in rt</tt><tt><br>
</tt><tt>-- Looking for clock_gettime in rt - found</tt><tt><br>
</tt><tt>-- Looking for include files HAVE_STDINT_H</tt><tt><br>
</tt><tt>-- Looking for include files HAVE_STDINT_H - found</tt><tt><br>
</tt><tt>-- Performing Test HAVE_GCC_UNUSED_BUT_SET</tt><tt><br>
</tt><tt>-- Performing Test HAVE_GCC_UNUSED_BUT_SET - Success</tt><tt><br>
</tt><tt>-- Performing Test HAVE_GCC_LOGICAL_OP</tt><tt><br>
</tt><tt>-- Performing Test HAVE_GCC_LOGICAL_OP - Success</tt><tt><br>
</tt><tt>-- Looking for include files HAVE_GRAPHVIZ_VERSION_H</tt><tt><br>
</tt><tt>-- Looking for include files HAVE_GRAPHVIZ_VERSION_H -
found</tt><tt><br>
</tt><tt>-- Found Graphviz version 2.26.3</tt><tt><br>
</tt><tt>-- Found Graphviz: /usr/lib/libcdt.so /usr/lib/libgvc.so
/usr/lib/libcgraph.so /usr/lib/libgraph.so
/usr/lib/libpathplan.so</tt><tt><br>
</tt><tt><br>
</tt><tt>-----------------------------------------------------------------------------</tt><tt><br>
</tt><tt>-- The following external packages were located on your
system.</tt><tt><br>
</tt><tt>-- This installation will have the extra features
provided by these packages.</tt><tt><br>
</tt><tt>-----------------------------------------------------------------------------</tt><tt><br>
</tt><tt> * Script engine debugger in Qt - A debugger for
QtScript</tt><tt><br>
</tt><tt> * WebKit in Qt - A Qt-based web browser engine</tt><tt><br>
</tt><tt> * Qt SVG - Qt SVG renderer and generator</tt><tt><br>
</tt><tt> * Qt Designer Library - Qt graphical widget editor</tt><tt><br>
</tt><tt> * Qt Print Support - Qt PDF generation</tt><tt><br>
</tt><tt> * librt - High resolution clock for the timer profiler
plugin.</tt><tt><br>
</tt><tt> * Graphviz - Graph visualization software</tt><tt><br>
</tt><tt> * VTK - Visualization Toolkit</tt><tt><br>
</tt><tt><br>
</tt><tt>-----------------------------------------------------------------------------</tt><tt><br>
</tt><tt>-- The following OPTIONAL packages could NOT be located
on your system.</tt><tt><br>
</tt><tt>-- Consider installing them to enable more features from
this software.</tt><tt><br>
</tt><tt>-----------------------------------------------------------------------------</tt><tt><br>
</tt><tt> * Qt internals (4.7.0 or higher)
<a class="moz-txt-link-rfc2396E" href="http://developer.qt.nokia.com/"><http://developer.qt.nokia.com/></a></tt><tt><br>
</tt><tt> Private Qt headers, necessary for painter
debugging/profiling.</tt><tt><br>
</tt><tt> You must have a build version of Qt available. Make
sure the qmake found first in your execute comes from this build
version.</tt><tt><br>
</tt><tt> * KDE4 <a class="moz-txt-link-rfc2396E" href="http://www.kde.org/"><http://www.kde.org/></a></tt><tt><br>
</tt><tt> KDE libraries</tt><tt><br>
</tt><tt> Required for the KJob tracker plug-in</tt><tt><br>
</tt><tt><br>
</tt><tt>-----------------------------------------------------------------------------</tt><tt><br>
</tt><tt><br>
</tt><tt>-- Configuring done</tt><tt><br>
</tt><tt>-- Generating done</tt><tt><br>
</tt><tt>-- Build files have been written to:
/home/juba/Qt/GammaRay-1.3.2/build</tt><tt><br>
</tt><br>
So I try to set the QT_PRIVATE_INCLUDE_DIR manually via <tt>make
edit_cache</tt>:<br>
<tt>/home/juba/Qt/qt-everywhere-opensource-src-4.8.4/include/QtCore</tt><br>
<br>
After this the HARFBUZZ_INCLUDE_DIR become set to:<br>
<tt>/home/juba/Qt/qt-everywhere-opensource-src-4.8.4/src/3rdparty/harfbuzz/src</tt><br>
<br>
After this setting I generate the Makefiles, but the build doesn't
complete...<br>
The reported error is:<br>
<tt>[ 38%] Building CXX object
core/CMakeFiles/gammaray_probe.dir/mainwindow.cpp.o</tt><tt><br>
</tt><tt>/home/juba/Qt/GammaRay-1.3.2/core/mainwindow.cpp:38:68:
fatal error: private/qguiplatformplugin_p.h: No such file or
directory</tt><tt><br>
</tt><tt>compilation terminated.</tt><tt><br>
</tt><tt>make[2]: ***
[core/CMakeFiles/gammaray_probe.dir/mainwindow.cpp.o] Error 1</tt><tt><br>
</tt><tt>make[1]: *** [core/CMakeFiles/gammaray_probe.dir/all]
Error 2</tt><tt><br>
</tt><tt>make: *** [all] Error 2</tt><br>
<br>
So I check the GammaRay root directory and I found the file in <tt>3rdparty/qt/private/qguiplatformplugin_p.h</tt><br>
The file is also present in <tt>qt-everywhere-opensource-src-4.8.4/src/gui/kernel/qguiplatformplugin_p.h</tt>
and <tt>qt-everywhere-opensource-src-4.8.4/include/QtGui/private/qguiplatformplugin_p.h</tt>,
but I haven't diff the content.<br>
<br>
Any idea to fix this build issue?<br>
<br>
(I prefer to use mailing list in order to keep a reference to the
solution of the problem, so other people may track this solution).<br>
<br>
Stefano.<br>
<br>
<br>
On 10/29/2013 09:33 AM, Kevin Funk wrote:<br>
</div>
<blockquote cite="mid:3662152.Nqq3273esz@helios" type="cite">
<pre wrap="">On Tuesday 29 October 2013, 08:57, Stefano Cordibella wrote:
</pre>
<blockquote type="cite">
<pre wrap="">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.
</pre>
</blockquote>
<pre wrap="">
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
</pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<b>Stefano Cordibella</b><br>
EDALab s.r.l. - Networked Embedded Systems<br>
<br>
Strada Le Grazie, 15 - 37134 Verona - Italy<br>
email : <a class="moz-txt-link-abbreviated" href="mailto:stefano.cordibella@edalab.it">stefano.cordibella@edalab.it</a><br>
skype : stefano.cordibella<br>
tel. : +39 045 802 70 85<br>
web : <a class="moz-txt-link-abbreviated" href="http://www.edalab.it">www.edalab.it</a></div>
</body>
</html>