Installing development tools onto Galileo official Linux image

You probably know already that the official Galileo SD card Linux image doesn’t contain development tools and you need to use cross-compilation or Yocto build process to have stuff compiled for Galileo (Arduino IDE is yet another way to make Galileo do what you want). Here’s a way to install the tools directly onto the SD card Linux image.

By the way, there’s also a so called “devtools” image I created with some other folks from the Galileo community (see here), which has the tools already included.

Installation is relatively simple thanks to the package repo I maintain and Yocto framework, which helps me to build everything. Below are the steps to follow:

  1. First, there’s a small glitch peculiarity you need to overcome. Looks like the package providing uClibc shared modules is called “libc0” in the official image and “uclibc” in the one you get by building the BSP with SDK yourself (as I do for compiling packages). The contents of both is the same, so I suspect that’s some sort of a bug.

    UPDATE 29/06/2014: I’ve sorted this out. The reason is that by default Poky has so called “Debian-style package renaming” enabled and when development tools are added to the image, a couple of utilities (ldd, ldconfig) are added too and ldconfig specifically is contained within uclibc package – switching off the renaming.
    So reinstalling the default “libc0” package with the “uclibc” one from the repo is indeed both harmless and necessary to use the package repo.

    Anyway, for tools to install, you need to force the installation of the uclibc package first:

    opkg install --force-overwrite uclibc

    If you don’t do this, the next install command will fail with the following error:

    * check_data_file_clashes: Package uclibc wants to install file /lib/
    But that file is already provided by package  * libc0
    * check_data_file_clashes: Package uclibc wants to install file /lib/
    But that file is already provided by package  * libc0
  2. After that, install a package group, which will bring in all the basic tools you’ll need:

    opkg install packagegroup-core-buildessential

That’s it! You now should be able to use the typical ./configure && make && make install mantra to install software.

3 Replies to “Installing development tools onto Galileo official Linux image”

  1. Thank you doesn’t begin to cover it. I’ve been trying to manually build npm packages for longer than I’d like to admit.

  2. i want interface 2.0 usb webcam with galileo gen 2. i am using windows 64bit & intel arduino compiler. please tell me how can i use the camera and take pictures with it.

  3. I don’t think you’ll be able to do webcam data processing using just Arduino IDE. You’ll need to get to the Linux OS level on the board and write a program using e.g. OpenCV. Search for Intel IoT DevKit, it’s an Eclipse-based environment, which allows you to write code in C/C++ and conveniently upload it to the board. That way you can use all the Linux power on the board while still having a convenience of the IDE.

Leave a Reply

Your email address will not be published. Required fields are marked *