trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: May 2011

Re: [trinity-devel] kde-style-qtcurve: Cmake error

From: Baho Utot <baho-utot@...>
Date: Sun, 15 May 2011 08:58:09 -0400
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
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: 
> trinity-devel-unsubscribe@...
> For additional commands, e-mail: 
> trinity-devel-help@...
> Read list messsages on the Web archive: 
> http://trinity-devel.pearsoncomputing.net/
> Please remember not to top-post: 
> http://trinity.pearsoncomputing.net/mailing_lists/#top-posting
>

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/
opt/trinity/lib/
opt/trinity/lib/kde3/
opt/trinity/lib/kde3/plugins/
opt/trinity/lib/kde3/plugins/styles/
opt/trinity/lib/kde3/plugins/styles/qtcurve.so
opt/trinity/share/apps/
opt/trinity/share/apps/kdisplay/
opt/trinity/share/apps/QtCurve/
opt/trinity/share/apps/QtCurve/Murrine.qtcurve
opt/trinity/share/apps/QtCurve/Ozone.qtcurve
opt/trinity/share/apps/QtCurve/Agua_II.qtcurve
opt/trinity/share/apps/QtCurve/Agua.qtcurve
opt/trinity/share/apps/QtCurve/Milk.qtcurve
opt/trinity/share/apps/QtCurve/Flat.qtcurve
opt/trinity/share/apps/QtCurve/Curve.qtcurve
opt/trinity/share/apps/QtCurve/Klearlooks.qtcurve
opt/trinity/share/apps/QtCurve/Silk.qtcurve
opt/trinity/share/apps/QtCurve/Inverted.qtcurve
opt/trinity/share/apps/QtCurve/Plastic.qtcurve
opt/trinity/share/apps/QtCurve/Human.qtcurve
opt/trinity/share/apps/kdisplay/color-schemes/
opt/trinity/share/apps/kdisplay/color-schemes/QtCurve.kcsrc


     cmake ${srcdir}/${_module}/ \
         -DCMAKE_INSTALL_PREFIX=${_prefix} \
     -DCMAKE_SKIP_RPATH=ON
     make
}