Posted by: yuvan004 | June 9, 2012

Running Eagle CAD 6.2 on Ubuntu 12.04


EAGLE (Easily Applicable Graphical Layout Editor) by Cadsoft is a flexible and expandable EDA schematic capture, PCB layout, autorouter and CAM program widely used since 1988. EAGLE is popular among hobbyists because of its freeware license and rich availability of component libraries on the web.

300px-Eagle_Schematic_Editor

Schematic capture

EAGLE contains a schematic editor, for designing circuit diagrams. Parts can be placed on many sheets and connected together through ports.

PCB layout

The PCB layout editor allows back annotation to the schematic and auto-routing to automatically connect traces based on the connections defined in the schematic.

EAGLE saves Gerber and PostScript layout files and Excellon and Sieb & Meyer drill files. These standard files are accepted by many PCB fabrication companies.

INSTALLATION IN UBUNTU 12.04

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.

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/libpng-1.4.11.tar.gz
tar xvfz libpng-1.4.11.tar.gz
cd libpng-1.4.11/
./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







Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: