RFM26W Breakout Board – First Dirty PCB Manufacturing Service Test

This is partly a review of the Dirty PCB manufacturing service (“Dirt Cheap Dirty Boards” as they call it) as this is my first order. I usually let my boards being manufactured at Seeed Studio or iTeadStudio, but hearing a lot about Dirty PCB lately made me curious and so I ordered a small RFM26W breakout board.

They provide all you need (including Design Rules and CAM export) for Eagle CAD on their web side. For $14 you not only get around 10 boards (12 in my case) but also 6 different colors to choose from.

I did not opt for a fast delivery and so the package took 2 1/2 weeks from China to Germany. (Manufacturing the PCB took four days.) Continue reading

Resolving Eagle CAD dependency problems under Ubuntu

This is a short post which I’ve made to show you how to fix dependeny problems of Eagle CAD under a 64-bit Ubuntu distribution. The current installer (Eagle CAD 6.4) works quite well under a 32-bit Ubuntu 12.04, 12.10 and 13.04 distribution. The eagle binary is linked against 32-bit libraries, so installing “all possible” 32-bit libs might be a possible (but uncomfortable) solution. This can actually be done by installing two packages:

sudo apt-get install ia32-libs lib32z1

A nicer way would be installing only the required libraries. The installer does not help you finding missing dependencies, so you have to actually extract the eagle binary by hand to inspect it. This can be done by modifying the installer or even faster by extracting the compressed files out of the installation script. I’ve prepared a short (compact) video tutorial on of the actual process. It’s my first video tutorial so please be indulgent. 😉

HowTo: Running Eagle CAD 6.2 on Ubuntu 12.04/12.10/13.04

Update: Eagle CAD version 6.4 is available which runs fine on Ubuntu 12.04., Ubuntu 12.10 and Ubuntu 13.04. I’ve made a small tutorial on how to fix possible dependency problems with this new version.

Ubuntu 12.04 only provides an older version of Eagle CAD, version 5.12.0 to be exact. A newer version 6.2 (32 bit) is available for download, but the installation fails due to the lack of a 32 bit libpng-1.4 library:

error while loading shared libraries: libpng14.so.14: cannot open shared object file: No such file or directory.

Luckily, I found a detailed post at raek’s blog which covers older Ubuntu versions. Great parts of the following instruction were taken from this post and adapted for Ubuntu 12.04. Thanks!

First of all you need to install some packages to build the missing png library. Open a terminal window and enter on a 32 bit Ubuntu 12.04:

sudo apt-get install build-essential perl
sudo apt-get install zlib1g zlib1g-dev

On a 64 bit Ubuntu 12.04:

sudo apt-get install build-essential perl gcc-multilib
sudo apt-get install ia32-libs lib32z1 lib32z1-dev

Then you need to fetch the libpng source code and the Eagle CAD 6.2 installer, either with “wget” (as I have done it) or directly from the respective webpages. A current version of Eagle CAD is available for download here: http://www.cadsoftusa.com/download-eagle/
libpng 1.4 can be found on this page: http://www.libpng.org/pub/png/libpng.html
I will use the “/tmp/libpng-eagle” directory for building the library:

mkdir /tmp/libpng-eagle
cd /tmp/libpng-eagle
wget ftp://ftp.simplesystems.org/pub/libpng/png/src/libpng14/libpng-1.4.12.tar.gz
tar xvfz libpng-1.4.12.tar.gz
cd libpng-1.4.12/
./configure --prefix=/tmp/libpng-eagle/install CFLAGS=-m32
make check
make install

At this point I assume that your Eagle CAD installation will be located at “/home/$USER/eagle-6.2.0“. If not, simply adjust the location in the text below:

cd /tmp/libpng-eagle/install/lib/
mkdir -p /home/$USER/eagle-6.2.0/lib
cp -a libpng14.so* /home/$USER/eagle-6.2.0/lib/

Now the installer should run…

export LD_LIBRARY_PATH=/home/$USER/eagle-6.2.0/lib/
cd /tmp/libpng-eagle/
wget ftp://ftp.cadsoft.de/eagle/program/6.2/eagle-lin-6.2.0.run
chmod 755 eagle-lin-6.2.0.run
./eagle-lin-6.2.0.run

After the installation finishes, Eagle CAD will still not run unless you tell it where to find the png library we have just created. The easiest way to do this is by creating an executable start-up shell script (e.g. /home/$USER/eagle-6.2.0/eagle.sh) which contains the following commands:

#!/bin/sh
export LD_LIBRARY_PATH=/home/$USER/eagle-6.2.0/lib
/home/$USER/eagle-6.2.0/bin/eagle

Additionally, you could create a Unity/Gnome menu entry, for example “/home/$USER/.local/share/applications/eagle.desktop
(do not forget to adapt the $USER):

#!/usr/bin/env xdg-open

[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Icon=/home/$USER/eagle-6.2.0/bin/eagleicon50.png
Name=Eagle
Exec=/home/$USER/eagle-6.2.0/eagle.sh
Comment=Eagle CAD

Update: A friend told me that the installation procedure also works with Ubuntu 11.10.