On Sunday, February 27, 2011 07:21:48 PM David C. Rankin wrote:
Guys,
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/includ
e
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/home/david/tblds/trinity-app-kgtk-qt3/src/kgtk-qt3/kdialogd3
-I/home/david/tblds/trinity-app-kgtk-qt3/src/kgtk-qt3/common
-I/opt/trinity/include -I/opt/qt/include -o
CMakeFiles/kdialogd3.dir/kdialogd.o -c
/home/david/tblds/trinity-app-kgtk-qt3/src/kgtk-qt3/kdialogd3/kdialogd.cpp
In file included from
/home/david/tblds/trinity-app-kgtk-qt3/src/kgtk-qt3/kdialogd3/kdialogd.h:4:
0, from
/home/david/tblds/trinity-app-kgtk-qt3/src/kgtk-qt3/kdialogd3/kdialogd.cpp:
3: /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 did you see my email (off list) ?
I have built Trinity to kdelibs in clean chroot. I will have a look at this
when I catch up :)