@ 21 Apr 09

Hackable:1 crosscompiler: problems & fixes

While packaging and preparing Hackable:1 packages for crosscompilation, problems due to the crosscompilation environnement distributed by Hackable:1 can occur.

I'm listing some of them, and, if possible, the fixes…

Missing libs

Then building softwares, pkg-config/ld can complain about missing libraries.

As these libs are for armel, you can’t use apt-get nor chroot into /usr/arm-linux-gnueabi to install them.

Proceed this way:

  • look for missing dependencies (pkg-config, ld errors)
  • find the apropriate package on Debian’s mirrors (take a look at packages.debian.org)
  • download it (wget for example)
  • extract its data with:

     dpkg-deb -x package_X.x_armel.deb /usr/arm-linux-gnueabi/  
     
  • repeat these steps until there is no more missing dependencies

Missing deps list

Here is the list of packages I installed to build wifig

  • libSM
  • libice
  • libssh2
  • libcap
  • libcurl
  • libfreetype
  • libdirectfb
  • libxcb-render
  • libxcb-render-util
  • libpng
  • libpixman

Bad symlinks

Some bad symlinks were created in /usr/arm-linux-gnueabi

  • Find them with

     ls -l /usr/arm-linux-gnueabi/usr/lib/ | awk '{ print $11"\t\t\t\t\tbad boy:\t\t"$9 }' | grep '^/lib'  
     
  • Fix them (rm, ln -s)