On Oct 3, 2006, at 3:19 PM, Georg Baum wrote:
Am Dienstag, 3. Oktober 2006 17:37 schrieb Bennett Helm:
The second may or may not be related to the pkgconfig question I
raised a while back. Following Georg's advice, I used pkgconfig,
which enables me to configure correctly, but then compilation fails
in frontends/qt4/ui:
g++-4 -DHAVE_CONFIG_H -I. -I. -I../../../src -DQT_CLEAN_NAMESPACE -
DQT_GENUINE_STR -DQT_NO_STL -DQT_NO_KEYWORDS -I../../../src -
I../../../src/frontends -I../../../images -I/usr/local/Trolltech/
Qt-4.1.4/include -I/usr/local/Trolltech/Qt-4.1.4/include/QtGui -I/
usr/
local/Trolltech/Qt-4.1.4/include/QtCore -I../../../boost -I../../../
src/frontends/controllers -Wextra -Wall -g -Os -MT Alert_pimpl.lo -MD
-MP -MF .deps/Alert_pimpl.Tpo -c Alert_pimpl.C -o Alert_pimpl.o
In file included from Alert_pimpl.C:17:
ui/QAskForTextUi.h:4:27: error: QtCore/QVariant: No such file or
directory
It looks like the qt4 pkgconfig file is broken. ui/QAskForTextUi.h is
generated by uic, and it includes the Qt includes from the top
level Qt
include directory, but this directory is not added to the compiler
flags
by pkgconfig, only the subdirectories of it. The latter works for
our own
code, but not for the automatic generated .h files.
Please look up the file QtCore.pkg (on my linux box it is
in /usr/lib/pkgconfig/QtCore.pc), and add
-I/usr/local/Trolltech/Qt-4.1.4/include
to the line that starts with Cflags:. Then it should work (after a
new run
of configure). It would also be good if you reported that problem
to the
source where you got that pkgconfig file from.
Perhaps it's because I don't want to install Qt in /usr/local/....
On Mac, I'm building Qt as static, and I've gotten by so far with
just building it, not installing, and pointing LyX to the build
location. I'm gathering that if I'm to use pkgconfig (while not
installing Qt in /usr/local), I'll need to configure Qt with some
other -prefix dir, and then actually install it there. Then pkgconfig
will be able to find it. Am I right?
Bennett