This is an old revision of the document!
Table of Contents
Install gschem on S11FCS
- Download latest stable version of gschem from here.
- Install necessary packages.
$ sudo pkg install gcc-45 guile
- unpack sources into working directory
$ tar xvpf /data/Downloads/geda/geda-gaf-1.6.2.tar.gz
- compile and install
$ cd geda-gaf-1.6.2 $ export PATH=/usr/gnu/bin:$PATH $ ./configure $ make $ sudo make install
- launch and enjoy
$ /usr/local/bin/gschem
- trying to compile the latest stable version 1.8.2 on 11.1sru11, I had to create following pkg-config(1) file for guile(1):
$ cat /usr/lib/pkgconfig/guile-1.8.pc prefix=/usr exec_prefix=${prefix} libdir=/usr/lib/guile includedir=${prefix}/include Name: Guile Description: Guile Version: 1.8.6 Libs: -L${libdir} -lguile Cflags: -I${includedir}/guile -I${includedir}/gmp
- configured to install in alternate directory, so that I can test 1.8.2 version while using 1.6.2 one for “production”:
$ ./configure --prefix /apps/geda-1.8.2
- then invoking in following way:
$ /apps/geda-1.8.2/bin/gschem
Install pcb on S11FCS
- Download latest stable version of pcb from here.
- Install necessary packages.
$ sudo pkg install library/gd developer/macro/gnu-m4 text/gnu-gettext
- unpack sources into working directory
$ tar xvpf pcb-20110918.tar.gz
- Alternatively (if the goal is to compile from the latest sources available), pull directly from development git repository, install couple of additional packages and run ./autogen.sh.
$ git clone git://git.geda-project.org/pcb.git pcb-git $ sudo pkg install developer/build/automake-111 developer/build/autoconf developer/parser/bison $ cd pcb-git $ ./autogen.sh
- patch src/main.c. Add missing locale.h header file, as setlocale(3C) is consumed. Fixed by Dan McMahill in chset 8cbc19e5aa9572196f27d4e64db8337d80945803.
$ diff -u /tmp/pcb-20110918/src/main.c /data/Downloads/geda/pcb-20110918/src/main.c --- /tmp/pcb-20110918/src/main.c Sat Sep 17 23:29:29 2011 +++ /data/Downloads/geda/pcb-20110918/src/main.c Mon Apr 16 22:46:16 2012 @@ -37,6 +37,7 @@ #ifdef HAVE_STRING_H #include <string.h> #endif +#include <locale.h> #include <signal.h> #include <unistd.h> #include <sys/stat.h>
- compile and install
$ cd pcb-20110918/ $ export PATH=/usr/gnu/bin:$PATH $ PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./configure --disable-gl --prefix=/apps/pcb-20110918 $ make $ sudo make install
- launch and enjoy
$ /usr/local/bin/pcb
- unpack
$ tar xvpf ./gtkglext-1.2.0.tar.gz
- compile and install (ends up in /usr/local/lib by default)
$ export PATH=/usr/gnu/bin:$PATH $ ./configure $ make $ sudo make install
Install gerbv on S11FCS
- Download latest stable version of gerbv from here.
- unpack sources into working directory
$ tar xvpf gerbv-2.6.1.tar.gz
- apply necessary patch, so that gcc does not explode
$ diff -u /tmp/gerbv-2.6.0/src/gerbv.c ~/Downloads/geda/gerbv-2.6.0/src/gerbv.c --- /tmp/gerbv-2.6.0/src/gerbv.c Sat Nov 19 01:04:14 2011 +++ /home/dambi/Downloads/geda/gerbv-2.6.0/src/gerbv.c Fri Jul 27 19:45:40 2012 @@ -79,6 +79,9 @@ static int defaultColorIndex = 0; +#undef isnormal +#define isnormal(x) __builtin_isnormal(x) + /* ------------------------------------------------------------------ */ static gerbv_layer_color defaultColors[NUMBER_OF_DEFAULT_COLORS] = { {115,115,222,177},
- compile and install
$ cd gerbv-2.6.0/ $ export PATH=/usr/gnu/bin:$PATH $ ./configure --prefix=/apps/gerbv-2.6.0 $ make $ sudo make install
- launch and enjoy
$ /usr/local/bin/gerbv