Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| howtos:install_gschem_on_s11 [2015/12/24 12:12] – [Broken texi2dvi(1) utility] admin | howtos:install_gschem_on_s11 [2026/10/25 19:30] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Compiling gschem, pcb, gerbv on 11.3sru2 ====== | + | ====== Compiling gschem, pcb, gerbv on 11.3 ====== |
| I have recently played a little bit with L80 Quectel GPS module and after a while decided to design PCB for the final version to be installed in my car. As usual, created schema in gschem, then tried to " | I have recently played a little bit with L80 Quectel GPS module and after a while decided to design PCB for the final version to be installed in my car. As usual, created schema in gschem, then tried to " | ||
| So I had to recompile to install into standard /usr/local location. For gschem and gerbv, I followed the procedure I had used before, but went with slightly different set of requirements for pcb: | So I had to recompile to install into standard /usr/local location. For gschem and gerbv, I followed the procedure I had used before, but went with slightly different set of requirements for pcb: | ||
| Line 8: | Line 8: | ||
| Since I wanted to build pcb with documentation which requires LaTeX, I had to deploy LaTeX first. It was in fact straightforward, | Since I wanted to build pcb with documentation which requires LaTeX, I had to deploy LaTeX first. It was in fact straightforward, | ||
| And since I wanted to build with [[http:// | And since I wanted to build with [[http:// | ||
| - | ===== Installation | + | ===== Deploy |
| * obtain the latest bits from Git repository | * obtain the latest bits from Git repository | ||
| < | < | ||
| $ git clone git:// | $ git clone git:// | ||
| </ | </ | ||
| - | * compile | + | * build and install |
| < | < | ||
| $ cd pcb-git | $ cd pcb-git | ||
| Line 22: | Line 22: | ||
| $ sudo make install | $ sudo make install | ||
| </ | </ | ||
| + | ===== Deploy from tarball, version 4.0.0 ===== | ||
| + | * download the tarball | ||
| + | < | ||
| + | $ wget https:// | ||
| + | $ tar xvpf pcb-4.0.0.tar.gz | ||
| + | </ | ||
| + | * minor tweaks required to build with Oracle Solaris Studio (version 12.4) | ||
| + | < | ||
| + | $ diff -u pcb-4.0.0-orig/ | ||
| + | --- pcb-4.0.0-orig/ | ||
| + | +++ pcb-4.0.0/ | ||
| + | @@ -177,7 +177,7 @@ | ||
| + | # | ||
| + | BoxType | ||
| + | long int ID; \ | ||
| + | - | ||
| + | + | ||
| + | // struct LibraryEntryType *net | ||
| + | |||
| + | /* Lines, pads, and rats all use this so they can be cross-cast. | ||
| + | |||
| + | $ diff -u pcb-4.0.0-orig/ | ||
| + | --- pcb-4.0.0-orig/ | ||
| + | +++ pcb-4.0.0/ | ||
| + | @@ -31,10 +31,10 @@ | ||
| + | # | ||
| + | # | ||
| + | |||
| + | -unsigned int string_to_layertype (const char *typestring, | ||
| + | +LayertypeType string_to_layertype (const char *typestring, | ||
| + | int (*error) (const char *msg)); | ||
| + | -const char *layertype_to_string (unsigned int type); | ||
| + | -unsigned int guess_layertype (const char *name, | ||
| + | +const char *layertype_to_string (LayertypeType type); | ||
| + | +LayertypeType guess_layertype (const char *name, | ||
| + | int layer_number, | ||
| + | | ||
| + | </ | ||
| + | * build and install (built 64-bit on s11u3sru16 with Oracle Solaris Studio 12.4) | ||
| + | < | ||
| + | $ cd pcb-4.0.0 | ||
| + | $ export PATH=/ | ||
| + | $ CC=/ | ||
| + | $ make | ||
| + | $ sudo make install | ||
| + | </ | ||
| + | |||
| ===== Gotchas ===== | ===== Gotchas ===== | ||
| - | ==== Missing locale.h header file ==== | + | ==== Missing locale.h header file (fixed in pcb 4.0.0) |
| Compilation fails, since following files are missing < | Compilation fails, since following files are missing < | ||
| < | < | ||
| $ git status -s | $ git status -s | ||
| - | M src/ | ||
| - | M src/ | ||
| - | M src/ | ||
| M src/main.c | M src/main.c | ||
| M src/print.c | M src/print.c | ||
| - | M src/report.c | + | M src/gettext.h |
| </ | </ | ||
| Adding following line to those files fixes the problem: | Adding following line to those files fixes the problem: | ||
| Line 38: | Line 82: | ||
| #include < | #include < | ||
| </ | </ | ||
| + | I filed [[https:// | ||
| ==== Broken texi2dvi(1) utility ==== | ==== Broken texi2dvi(1) utility ==== | ||
| **texi2dvi(1)** utility is used to convert document from Texinfo to PDF or TeX DVI format. However, it fails on Oracle Solaris: | **texi2dvi(1)** utility is used to convert document from Texinfo to PDF or TeX DVI format. However, it fails on Oracle Solaris: | ||
