Initialization of ngspice on OSX
Bug #1630675 reported by
Jonatan Liljedahl
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
KiCad |
Fix Released
|
Medium
|
Maciej Suminski |
Bug Description
On OSX, the installed bundle does not include the necessary codemodels and init files for ngspice, so even though libngspice is bundled, one must also install ngspice separately. This might be OK in itself, but the problem is that kicad (or the bundled libngspice?) does not know where ngspice is installed, so it does not find the needed files. A workaround is to start kicad from the terminal and set an environment variable like this:
$ export SPICE_LIB_
$ /Applications/
This is not very user friendly.. ;)
Changed in kicad: | |
assignee: | Maciej Sumiński (orsonmmz) → nobody |
status: | Fix Committed → Confirmed |
tags: | added: osx |
Changed in kicad: | |
milestone: | none → 5.0.0-rc2 |
tags: | added: ngspice |
Changed in kicad: | |
importance: | Undecided → Medium |
Changed in kicad: | |
assignee: | nobody → Maciej Suminski (orsonmmz) |
Changed in kicad: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Here's another workaround, that is a lot simpler. Add the following to your spice text block in the schematic:
.control ngspice/ lib/ngspice/ spice2poly. cm ngspice/ lib/ngspice/ analog. cm ngspice/ lib/ngspice/ digital. cm ngspice/ lib/ngspice/ xtradev. cm ngspice/ lib/ngspice/ xtraevt. cm
pre_set noaskquit
pre_set nomoremode
pre_codemodel /Applications/
pre_codemodel /Applications/
pre_codemodel /Applications/
pre_codemodel /Applications/
pre_codemodel /Applications/
.endc