porting finch to uClinux on blackfin

Joshua Blanton jblanton at masaka.cs.ohiou.edu
Wed Aug 29 11:54:15 EDT 2007


Bill Fassler wrote:
> I found no specific directions on how to build Finch ONLY anywhere
> on the site or in the readme files within the source.  If any such
> directions exist could you point me to them? How do I build Finch
> and avoid building the stuff I don't want or need?
> 
> I only want Finch (at least to start) but the finch directory does
> not have a configure script so I must configure things at the
> higher Pidgin level.  I am still a little uncertain whether my
> configure options are the best or even appropriate, but here is
> what I am currently trying:
> 
> ./configure --disable-dbus --disable-gtkui --with-build-cc=gcc --host=bfin-linux-uclibc --disable-pcre --disable-plugins --enable-static=gg --enable-static=irc --enable-static=jabber --enable-static=msn --enable-static=novell --enable-static=oscar --enable-static=qq --enable-static=simple --enable-static=yahoo --
> enable-static=zephyr --enable-nss=no --enable-gnutls=yes  --with-screen=ncurses --with-ncurses-headers=/home/vocal/project/blackfin-svn-branch/elf_flat/uClinux-dist/lib/ncurses/include LDFLAGS="-L/home/vocal/project/blackfin-svn-branch/elf_flat/uClinux-dist/staging/usr/lib" CFLAGS="-D__linux__ -DNOMMU -DQT_THREAD_SUPPORT -I/home/vocal/project/blackfin-svn-branch/elf_flat/uClinux-dist/staging/usr/include" CXXFLAGS="-D__linux__ -DNOMMU -DQT_THREAD_SUPPORT -I/home/vocal/project/blackfin-svn-branch/elf_flat/uClinux-dist/staging/usr/include" CPPFLAGS="-D__linux__ -DNOMMU -DQT_THREAD_SUPPORT -I/home/vocal/project/blackfin-svn-branch/elf_flat/uClinux-dist/staging/usr/include"

the --disable-gtkui flag says to only build finch (since finch is
enabled by default, if the prerequisites are met).

> Build GTK+ 2.x UI............. : no
> Build console UI.............. : no
  ^-- note that this line is Not Good - ./configure didn't detect
  sufficient dependencies to build finch.  You're only building
  libpurple at this point.
> Protocols to build dynamically : gg irc jabber msn novell oscar qq simple yahoo zephyr
> Protocols to link statically.. :
> 
> Build with GStreamer support.. : yes
> Build with D-Bus support...... : no
> Build with NetworkManager..... : no
> SSL Library/Libraries......... : None (MSN and Google Talk will not work without SSL!)

<snip>

> Pidgin will be installed in /usr/local/bin.
> 
> It looks like it intends on building Pidgin.

Not really.  That's just what the configure script is hardcoded to
say...  The above output tells you what it's *really* building
(which is !GTK UI, !console UI -> just libpurple).

> Also it fails on the make here:

> /home/vocal/project/blackfin-svn-branch/elf_flat/uClinux-dist/staging/usr/include/libintl.h:91:25: warning: "__APPLE_CC__" is not defined (what's this all about??)

Good question - look at libintl.h and see why it's trying to use
__APPLE_CC__.  :-)  That's not part of pidgin/libpurple.

<snip>

> /bin/bash ../../../libtool --silent --tag=CC --mode=link bfin-linux-uclibc-gcc  -g -D__linux__ -DNOMMU -DQT_THREAD_SUPPORT -I/home/vocal/project/blackfin-svn-branch/elf_flat/uClinux-dist/staging/usr/include  -L/home/vocal/project/blackfin-svn-branch/elf_flat/uClinux-dist/staging/usr/lib -o libjabber.la -rpath /usr/local/lib/purple-2  auth.lo buddy.lo chat.lo disco.lo google.lo iq.lo jabber.lo jutil.lo message.lo oob.lo parser.lo presence.lo roster.lo si.lo xdata.lo -Wl,--export-dynamic -pthread -lgobject-2.0 -lgmodule-2.0 -ldl -lgthread-2.0 -lrt -lglib-2.0    -lxml2   -lnsl -lresolv 
> /home/vocal/project/blackfin-svn-branch/opt/uClinux/bfin-linux-uclibc/lib/gcc/bfin-linux-uclibc/4.1.1/../../../../bfin-linux-uclibc/bin/ld: cannot find -lxml2 (who needs this Pidgin or Finch?)

Libpurple needs it, so it's required for finch or pidgin (or both).  :-)

> As always, any tidbit of knowledge would be appreciated here.  I
> don't want to give up on this because I think Pidgin/Finch is
> about the best opensource IM around.  I am sure I could find a
> different IM that is much easier to port/cross-compile to an
> embedded project.... but I want the best.

Good luck,
--jtb
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://pidgin.im/pipermail/devel/attachments/20070829/d98719be/attachment.sig>


More information about the Devel mailing list