On 05/15/2011 07:58 AM, Baho Utot wrote:
On 05/15/2011 08:46 AM, Baho Utot wrote:
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
Another error in kde-style-qtcurve... It installs all the files into opt no
matter what cmake -DCMAKE_INSTALL_PREFIX=${_prefix} is set to
_prefix=/usr/local
opt/
opt/trinity/
opt/trinity/share/
<snip>
Baho,
I was able to get style-qtcurve to build with:
-DCMAKE_CXX_FLAGS="-I /opt/qt/include -I /opt/qt/include/tqt" \
This looks like another package that has lost the ability to find include
files. Like kdegraphics, etc...
I don't know why it all goes in /opt/trinity (but that's my prefix anyway :)
--
David C. Rankin, J.D.,P.E.