Message: previous - next
Month: December 2011

Re: [trinity-devel] Unexpected kreadconfig/kwriteconfig messages

From: Bruce Dubbs <bruce.dubbs@...>
Date: Thu, 22 Dec 2011 00:56:00 -0600
Darrell Anderson wrote:
>>>> I really don't see a really easy option; there is
>> a third option
>>>> which would be to compile both with-X and
>> without-X versions of kdelibs and Qt3 but without
>> significant linker magic it is likely
>>>> to load both versions of kdelibs and Qt3 within a
>> Trinity session.
>>> Fair enough. Too bad. :(
>> Here's an easy option:
>> if [ -r ~/.kde/share/config/kcminputrc  -a  \
>>      "x`grep LeftHanded
>> ~/.kde/share/config/kcminputrc`" != "x" ]; then
>>   echo left
>> else
>>   echo right
>> fi
> Thanks much, but you must have missed my original post --- I'm
> already  doing that. :)

Yes, I missed that.

> In my original message I asked why I saw specific Nvidia error
> messages when using an allegedly non-gui command in a console outside of
> X. I solved that mystery and was shown that the commands were built with
> X dependencies.


> The discussion since then is why those non-gui commands can't build
> without the X dependency. My "too bad" comment was in reference to
> building those commands otherwise. :)

That's one reason Qt4 has multiple libraries.  Doing that for Qt3 seems 
to be reinventing the wheel.  BTW, I tried to build Qt4 without the X 
libraries, even though there is a configure option --without-x.  It 
didn't work.  However, I could write a program that did not link to any 
X libraries.  Also, programs written to Qt4 (not KDE4) work fine in 
KDE3, graphical or otherwise.

   -- Bruce