On 05/15/2011 12:22 AM, Timothy Pearson wrote:
On 05/14/2011 01:52 PM, Baho Utot wrote:
cmake is not passing -I ${_prefix}/include/tqt to gcc causing gcc to fail tqt.h is not found as the include path is not set correctly.
I have the same problem Baho:
[ 75%] Building CXX object style/CMakeFiles/qtcurve.dir/qtcurve.o cd /build/src/build/style&& /usr/bin/c++ -Dqtcurve_EXPORTS -DQT_SHARED -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -D_REENTRANT -march=x86-64 -mtune=generic -O2 -pipe -I/usr/include/tqt -include tqt.h -DTQT_THREAD_SUPPORT -I/opt/trinity/include -fPIC -I/build/src/kde-style-qtcurve -I/build/src/build -I/build/src/build/style -I/usr/include/qt4 -I/build/src/kde-style-qtcurve/common -o CMakeFiles/qtcurve.dir/qtcurve.o -c /build/src/kde-style-qtcurve/style/qtcurve.cpp cc1plus: fatal error: tqt.h: No such file or directory compilation terminated. make[2]: *** [style/CMakeFiles/qtcurve.dir/qtcurve.o] Error 1 make[2]: Leaving directory `/build/src/build' make[1]: *** [style/CMakeFiles/qtcurve.dir/all] Error 2 make[1]: Leaving directory `/build/src/build' make: *** [all] Error 2 ==> ERROR: A failure occurred in build(). Aborting...
Those CMake files are hacked up copies of the original (pre-Trinity) CMake files that came with kde-style-qtcurve. They are extremely fragile, and as you can see, break quite readily.
Where is your tqt.h file located?
/usr/local/include/tqt/tqt.h