delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2019/04/13/09:08:05

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
X-Mailer: exmh version 2.8.0 04/21/2012 with nmh-1.6
X-Exmh-Isig-CompType: repl
X-Exmh-Isig-Folder: inbox
From: karl AT aspodata DOT se
To: geda-user AT delorie DOT com
Subject: Re: [geda-user] running mult. versions of kicad
In-reply-to: <20190405133337.6547eccf@demon>
References: <20190329142529 DOT 0883A81FA169 AT turkos DOT aspodata DOT se> <20190401173627 DOT 5c03239f AT demon> <20190402140358 DOT 53A6381FA166 AT turkos DOT aspodata DOT se> <20190405133337 DOT 6547eccf AT demon>
Comments: In-reply-to "(graahnul DOT grom AT gmail DOT com) [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com>
message dated "Fri, 05 Apr 2019 13:33:37 +0300."
Mime-Version: 1.0
Message-Id: <20190413130526.2FEC681FA166@turkos.aspodata.se>
Date: Sat, 13 Apr 2019 15:05:26 +0200 (CEST)
X-Virus-Scanned: ClamAV using ClamSMTP
Reply-To: geda-user AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: geda-user AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

This is a multipart MIME message.

--==_Exmh_1555160223_4490
Content-Type: text/plain

Dmitry:
> On Tue,  2 Apr 2019 16:03:58 +0200 (CEST)
> karl AT aspodata DOT se wrote:
> > Running
> >  HOME=/home/karl/kicad/4.0.7 /usr/local/kicad_4.0.7/bin/kicad
> > doesn't work, since it couldn't (?) find its associated
> > binaries for some reason.
> > Adding a
> >  export PATH=/usr/local/kicad_4.0.7/bin:$PATH
> > didn't help.
> 
> You may also try to set:
> LD_LIBRARY_PATH=/usr/local/kicad_4.0.7/lib
> PYTHONPATH=/usr/local/kicad_4.0.7/lib/python2.7/site-packages
...

attached script seems to work, running it like 

 Kicad 4.0.7 kicad zz.pro
 Kicad 5.1.0 pcbnew zz.kicad_pcb
etc.

where I
cd kicad git top dir
git co 4.0.7
mkdir build_4.0.7
cd build_4.0.7
cmake -DCMAKE_INSTALL_PREFIX=/usr/local/kicad_4.0.7 ..
make -j3 install

mkdir ~/kicad/4.0.7

and ditto for different versions, kicad-footprints,
kicad-packages3d and kicad-symbols.

still, the first time I run a kicad version, I have to setup
footprint and symbol paths...

Regards,
/Karl Hammar


--==_Exmh_1555160223_4490
Content-Type: text/plain; charset="utf-8" ; name="Kicad"
Content-Description: Kicad
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment; filename="Kicad"

#!/bin/sh

version=3D$1
bin=3D$2
shift
shift

HOME=3D$HOME/kicad/$version
PATH=3D/usr/local/kicad_$version/bin:$PATH
LD_LIBRARY_PATH=3D/usr/local/kicad_$version/lib64

export HOME
export PATH
export LD_LIBRARY_PATH

$bin "$@"
--==_Exmh_1555160223_4490--


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019