NSLU2-Linux
view · edit · print · history

This page documents my attempt to install libgd (http://www.libgd.org/Main_Page) on OpenSlug 3.10.

Why do I want to do this?

We are attempting to get a CMU Camera working off an NSLU2 running on an FRC (www.usfirst.org) robot.

CMUCam2 links: http://www.cs.cmu.edu/~cmucam2/ http://www.ifirobotics.com/camera.shtml

We have installed a web server (thttpd) on the NSLU2. We want to be able to extract an image from the CMUCam2 and put it on the web server as a GIF or PNG file (we need it to be accurate without JPEG lossy compression).

After searching the internet, libgd seems to be the easiest way to take the camera image and convert it to a PNG file.

Steps needed:

  1. OpenSlug 3.10 running on a 2Gb USB Memory Stick.
  2. Install gcc (ipkg install gcc, and some other stuff.. TODO: find this sequence on a clean slug)
  3. Make sure you can compile a "helloworld.c" file...
  4. Install binutils (ipkg install binutils)
  5. fix the symlink bug for ar (from the current binutils -- should be fixed soon)
    cd /usr/bin
    rm ar
    ln -S armeb-linux-ar ar
  6. Install zLib
    ipkg install libz-dev
  7. Install libjpeg
    ipkg install libjpeg-dev
  8. download libgd (TODO: get the correct URL)
  9. untar it
  10. configure it
    ./configure
  11. install it
    make install
view · edit · print · history · Last edited by fcarolo.
Originally by ptan.
Page last modified on March 12, 2007, at 03:53 PM