I have built KiCad 4.0.5 from source (git), on Ubuntu 14.04.5 (Linux kernel 4.4.0-53-generic), using the usual procedure:
kicad_git_src$ mkdir build
kicad_git_src$ cd build
build$ cmake ../
build$ bzr whoami "Your Name <name@example.com>"
build$ make
All passes here, kicad
compiles. Then I install it "out of tree", meaning outside of the standard system locations (i.e. /usr/
):
build$ make install DESTDIR=/path/to/kicad_32b_4.0.5
At this point, the tree of DESTDIR looks approx like this:
/path/to/kicad_32b_4.0.5/
└── usr
└── local
├── bin
│ ├── bitmap2component
│ ├── _cvpcb.kiface
│ ├── dxf2idf
│ ├── eeschema
│ ├── _eeschema.kiface
│ ├── gerbview
│ ├── _gerbview.kiface
│ ├── idf2vrml
│ ├── idfcyl
│ ├── idfrect
│ ├── kicad
│ ├── pcb_calculator
│ ├── _pcb_calculator.kiface
│ ├── pcbnew
│ ├── _pcbnew.kiface
│ ├── pl_editor
│ └── _pl_editor.kiface
├── lib
│ └── kicad
│ └── plugins ...
└── share
├── applications
├── doc
│ └── kicad
│ └── scripts
│ └── bom-in-python ...
├── icons
│ └── hicolor
│ ...
├── kicad
│ ├── demos
│ │ ...
│ └── template
├── mime
│ └── packages
└── mimelnk
└── application
All of the executables seem to be in usr/local/bin
; then usr/local/lib
seems it doesn't contain any .so
libraries (only some plugins), and there are some files in the usr/local/share
. So I've made this script:
#!/usr/bin/env bash
# trying to run kicad...
# the target DESTDIR of make install DESTDIR=...:
INSTD=/path/to/kicad_32b_4.0.5
cd $INSTD/usr/local/bin/
# there's only kicad/plugins in usr/local/lib, but still:
LD_LIBRARY_PATH=$INSTD/usr/local/lib:$LD_LIBRARY_PATH ./kicad
This runs, but I get something like this:
... that is, the EESchema button, the schematic library button, the pcbnew button, are all greyed out! In older versions of Kicad, I believe I could have ran any of these at any time, and have an "empty" file opened in them, and just work on that - if I do not have a project defined beforehand... Note that other other buttons, which are not greyed out (such as GerbView) work fine - I can just click them and the corresponding application runs.
So my questions are:
- Why are pcbnew, eeschema buttons grayed out? Am I missing maybe some directory references due to the unstandard installation - or has the workflow in Kicad changed, so you cannot run these applications from Kicad as standalone anymore?
- Are there some command line switches in Kicad, so I could make it aware of where
INSTDIR/usr/local/share
is, in case Kicad needs it for, say, templates?