Message: previous - next
Month: February 2011

kgtk-qt3: kfile.h error can't find tqdir.h, (in tqt/tqdir.h) - howto fix?

From: "David C. Rankin" <drankinatty@...>
Date: Sun, 27 Feb 2011 18:21:48 -0600

  I'm trying to learn how to solve these include errors. At first glance, it
looks like the build isn't accepting my:

export CMAKE_INCLUDE_PATH=/opt/qt/include:/opt/qt/include/tqt:/opt/trinity/include

  The error I'm dealing with is:

[  7%] Building CXX object kdialogd3/CMakeFiles/kdialogd3.dir/kdialogd.o
cd /home/david/tblds/trinity-app-kgtk-qt3/src/kgtk-qt3/kdialogd3 && /usr/bin/c++
   -march=x86-64 -mtune=generic -O2 -pipe  -Wnon-virtual-dtor -Wno-long-long
-ansi -Wundef -Wcast-align -Wconversion -Wchar-subscripts -Wall -W
-Wpointer-arith -Wwrite-strings -Wformat-security -fno-exceptions -fno-check-new
-fno-common -O2 -I/home/david/tblds/trinity-app-kgtk-qt3/src/kgtk-qt3
-I/opt/trinity/include -I/opt/qt/include   -o
CMakeFiles/kdialogd3.dir/kdialogd.o -c
In file included from
/opt/trinity/include/kfile.h:21:19: fatal error: tqdir.h: No such file or directory
compilation terminated.

  I think the short answer is the cmake files have not been tailored to Trinity,
but I'm trying to figure out how to do that. The chain of the error seems
simple, /opt/trinity/include/kfile.h includes:

#include <tqdir.h>

  which is in /opt/trinity/include/tqt, so in order for it to be seen as a
standard <file.h> include instead of a "tqt/file.h" include, the Trinity cmake
setup must do something to tell the compiler to look in /opt/trinity/include/tqt
as a standard include directory. I thought that was what I was doing with
CMAKE_INCLUDE_PATH=.... What else do we need to do in the cmake files?

  Thanks :)

David C. Rankin, J.D.,P.E.