Menu

#119 blackbox pkgconfig update

open
nobody
None
5
2008-12-22
2008-12-22
No

I can't get bbkeys to compile in OpenSUSE 11.1 without this patch. The problem is that we're relying on blackbox's libbt.pc to tell us about freetype/fontconfig/etc. libraries. This patch does a better job of that. Without it, we get this:

if g++ -DHAVE_CONFIG_H -I. -I. -I.. -DDEFAULTRC=\"/home/jkasper/local/bbkeys/share/bbkeys/bbkeysrc\" -DDEFAULTSTYLE=\"/home/jkasper/local/bbkeys/share/bbkeys/defaultStyle\" -DNDEBUG -O2 -I/home/jkasper/local/blackbox/include/bt -I/usr/include/freetype2 -MT WindowlistMenu.o -MD -MP -MF ".deps/WindowlistMenu.Tpo" \
-c -o WindowlistMenu.o `test -f 'WindowlistMenu.cpp' || echo './'`WindowlistMenu.cpp; \
then mv -f ".deps/WindowlistMenu.Tpo" ".deps/WindowlistMenu.Po"; \
else rm -f ".deps/WindowlistMenu.Tpo"; exit 1; \
fi
g++ -DNDEBUG -O2 -I/home/jkasper/local/blackbox/include/bt -I/usr/include/freetype2 -lSM -lICE -o bbkeys actions.o Config.o FileTokenizer.o KeyClient.o KeyGrabber.o keytree.o main.o Netclient.o ScreenHandler.o window.o WindowlistMenu.o -lX11 -lXext -L/home/jkasper/local/blackbox/lib -L/usr/local/lib -lbt
/home/jkasper/local/blackbox/lib/libbt.a(Font.o): In function `FontCache':
/home/jkasper/code/blackbox/lib/Font.cc:178: undefined reference to `XftInit'
/home/jkasper/code/blackbox/lib/Font.cc:178: undefined reference to `XftInitFtLibrary'
/home/jkasper/code/blackbox/lib/Font.cc:178: undefined reference to `XftInit'
/home/jkasper/code/blackbox/lib/Font.cc:178: undefined reference to `XftInitFtLibrary'
/home/jkasper/local/blackbox/lib/libbt.a(Font.o): In function `bt::FontCache::clear(bool)':
/home/jkasper/code/blackbox/lib/Font.cc:383: undefined reference to `XftFontClose'
/home/jkasper/local/blackbox/lib/libbt.a(Font.o): In function `bt::FontCache::findXftFont(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int)':
/home/jkasper/code/blackbox/lib/Font.cc:315: undefined reference to `XftFontOpenName'
/home/jkasper/code/blackbox/lib/Font.cc:320: undefined reference to `XftFontOpenName'
/home/jkasper/local/blackbox/lib/libbt.a(Font.o): In function `bt::textRect(unsigned int, bt::Font const&, std::basic_string<unsigned int, std::char_traits<unsigned int>, std::allocator<unsigned int> > const&)':
/home/jkasper/code/blackbox/lib/Font.cc:475: undefined reference to `XftTextExtents32'
/home/jkasper/local/blackbox/lib/libbt.a(Font.o): In function `bt::drawText(bt::Font const&, bt::Pen const&, unsigned long, bt::Rect const&, bt::Alignment, std::basic_string<unsigned int, std::char_traits<unsigned int>, std::allocator<unsigned int> > const&)':
/home/jkasper/code/blackbox/lib/Font.cc:533: undefined reference to `XftDrawString32'
/home/jkasper/local/blackbox/lib/libbt.a(Pen.o): In function `bt::Pen::xftDraw(unsigned long) const':
/home/jkasper/code/blackbox/lib/Pen.cc:164: undefined reference to `XftDrawDrawable'
/home/jkasper/code/blackbox/lib/Pen.cc:165: undefined reference to `XftDrawChange'
/home/jkasper/code/blackbox/lib/Pen.cc:163: undefined reference to `XftDrawCreate'
/home/jkasper/local/blackbox/lib/libbt.a(Pen.o): In function `~Pen':
/home/jkasper/code/blackbox/lib/Pen.cc:88: undefined reference to `XftDrawDestroy'
/home/jkasper/code/blackbox/lib/Pen.cc:88: undefined reference to `XftDrawDestroy'
collect2: ld returned 1 exit status
make[2]: *** [bbkeys] Error 1
make[2]: Leaving directory `/home/jkasper/code/bbkeys/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jkasper/code/bbkeys'
make: *** [all] Error 2

Discussion

  • Jason 'vanRijn' Kasper

    blackbox pkgconfig libbt.pc.in update

     
  • Patrick Bogen

    Patrick Bogen - 2008-12-22

    Patch looks pretty reasonable; I've integrated it into my SVN repository at https://cernu.us/~pdbogen/svn/blackbox/

     
  • Jason 'vanRijn' Kasper

    Hey Patrick, thanks for the comment. I was hoping to get Brad's attention.... Are you taking over maintainer-ship of blackboxwm? Or... I'm confused as to what your role is... =:)

     
  • Patrick Bogen

    Patrick Bogen - 2008-12-22

    Well, nothing quite so official. We haven't seen any activity from Brad in a while, despite a few good patches being posted. So, I grabbed the latest source from CVS, added the new patches, and put it into subversion. So, in a sense, I'm maintaining the only actively maintained version, but I prefer to think that I'm just keeping it warm until someone else takes over.

     
  • Jason 'vanRijn' Kasper

    Ahh, okay. =:) Well thanks for doing everything you can to keep things going! =:) I'm going to see if I can track Brad down...

     

Log in to post a comment.