← Back to team overview

kicad-developers team mailing list archive

Re: Integrated Simulator

 

With your new script:
$ LANG=C ./get_libngspice_so.sh
./get_libngspice_so.sh: 13: ./get_libngspice_so.sh: [[: not found
./get_libngspice_so.sh: 41: ./get_libngspice_so.sh: [[: not found
-e \e[34mDownloading ngspice tarball..\e[0m
--2016-08-01 16:47:54-- http://downloads.sourceforge.net/project/ngspice/ng-spice-rework/26/ngspice-26.tar.gz Resolving downloads.sourceforge.net (downloads.sourceforge.net)... 52.85.142.110, 52.85.142.253, 52.85.142.13, ... Connecting to downloads.sourceforge.net (downloads.sourceforge.net)|52.85.142.110|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://downloads.sourceforge.net/#!/project/ngspice/ng-spice-rework/26/ngspice-26.tar.gz [following]
--2016-08-01 16:47:55--  http://downloads.sourceforge.net/
Reusing existing connection to downloads.sourceforge.net:80.
HTTP request sent, awaiting response... 200 OK
Length: 639 [text/html]
Saving to: 'ngspice-26.tar.gz.2'

ngspice-26.tar.gz.2 100%[========================================================>] 639 --.-KB/s in 0s

2016-08-01 16:47:55 (93,8 MB/s) - 'ngspice-26.tar.gz.2' saved [639/639]

./get_libngspice_so.sh: 49: ./get_libngspice_so.sh: [[: not found
./get_libngspice_so.sh: 56: ./get_libngspice_so.sh: [[: not found

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
./get_libngspice_so.sh: 62: cd: can't cd to ngspice-26
-e \e[34mBuilding libngspice shared library..\e[0m
./get_libngspice_so.sh: 66: ./get_libngspice_so.sh: ./configure: not found
make: *** No targets specified and no makefile found.  Stop.
./get_libngspice_so.sh: 69: ./get_libngspice_so.sh: [[: not found

-e \e[32mngspice shared library has been built successfully!\e[0m

Now, to finish the installation run the script as root with 'install' parameter:
sudo ./get_libngspice_so.sh install

В Понедельник, 1 авг. 2016 в 4:19 , Maciej Sumiński <maciej.suminski@xxxxxxx> написал:
Hi Eldar,

I would rather install the libraries to /usr/local, so they do not
interfere with libraries installed by package managers. I guess I know
what I kind of issue you have faced, and now it should be fixed in the
new version get_libngspice_so.sh script [1].

Regards,
Orson

1. https://orson.net.pl/pub/libngspice/get_libngspice_so.sh

On 07/22/2016 04:44 PM, Eldar Khayrullin wrote:
 If whom need I send libngspice install script with my modifications

 В Пятница, 22 июл. 2016 в 5:30 , Eldar Khayrullin
 <eldar.khayrullin@xxxxxxx> написал:
After adding option --prefix=/usr (if install path is /usr/local need
 to add it to LD_PRELOAD) I saw in sallen_key.sch (without .include
 diodes):

 ******
 ** ngspice-26 shared library
 ** Creation Date: Fri Jul 22 17:17:51 MSK 2016
 ******
 Circuit: KiCad schematic
 Reducing trtol to 1 for xspice 'A' devices
 Doing analysis at TEMP = 27,000000 and TNOM = 27,000000
 Warning: vv1: has no value, DC 0 assumed
  Reference value :  1,00000e+00
 No. of Data Rows : 61

 В Пятница, 22 июл. 2016 в 12:11 , Eldar Khayrullin
 <eldar.khayrullin@xxxxxxx> написал:
 Opening the sallen_key.sch with eeschema show in the log window:

 1) Note: can't find init file.

 2) Error: .include filename missing
 If delete ".include diodes.lib" - OK.

 3) Error on line 0 : a$poly$e.xu1.eos %vd [ xu1.53 xu1.98 ] %vd (
 xu1.3 2 ) a$poly$e.xu1.eos
 MIF-ERROR - unable to find definition of model a$poly$e.xu1.eos
Warning: Model issue on line 0 : .model a$poly$e.xu1.eos spice2poly
 coef = [ 1.7e-3 1 ] ...
 Unknown model type spice2poly - ignored
Error on line 0 : a$poly$e.xu1.eref1 %vd [ 4 0 5 0 ] %vd ( xu1.98 0 )
 a$poly$e.xu1.eref1
 MIF-ERROR - unable to find definition of model a$poly$e.xu1.eref1
Warning: Model issue on line 0 : .model a$poly$e.xu1.eref1 spice2poly
 coef = [ 0 0.5 0.5  ...
 Unknown model type spice2poly - ignored
Error on line 0 : a$poly$e.xu1.eref2 %vd [ 2 0 3 0 ] %vd ( xu1.97 0 )
 a$poly$e.xu1.eref2
 MIF-ERROR - unable to find definition of model a$poly$e.xu1.eref2
Warning: Model issue on line 0 : .model a$poly$e.xu1.eref2 spice2poly
 coef = [ 0 0.5 0.5  ...
 Unknown model type spice2poly - ignored
 Error on line 0 : a$poly$e.xu1.eo3 %vd [ xu1.98 xu1.30 ] %vd ( 4
 xu1.42 ) a$poly$e.xu1.eo3
 MIF-ERROR - unable to find definition of model a$poly$e.xu1.eo3
Warning: Model issue on line 0 : .model a$poly$e.xu1.eo3 spice2poly
 coef = [ 0.7175 0.5 ] ...
 Unknown model type spice2poly - ignored
Error on line 0 : a$poly$e.xu1.eo4 %vd [ xu1.30 xu1.98 ] %vd ( xu1.44
 5 ) a$poly$e.xu1.eo4
 MIF-ERROR - unable to find definition of model a$poly$e.xu1.eo4
Warning: Model issue on line 0 : .model a$poly$e.xu1.eo4 spice2poly
 coef = [ 0.7355 0.5 ] ...
 Unknown model type spice2poly - ignored
 Reducing trtol to 1 for xspice 'A' devices
 Doing analysis at TEMP = 27,000000 and TNOM = 27,000000
 Warning: vv1: has no value, DC 0 assumed
  Reference value :  1,00000e+00
 No. of Data Rows : 61

 But the simulation and the tune and the probe work.
It will be nice to have the select of visibility of signals (checkbox).


 В Четверг, 21 июл. 2016 в 10:37 , Tomasz Wlostowski
 <tomasz.wlostowski@xxxxxxx> написал:
 Hi,



 _______________________________________________
 Mailing list: https://launchpad.net/~kicad-developers
 Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
 Unsubscribe : https://launchpad.net/~kicad-developers
 More help   : https://help.launchpad.net/ListHelp




References