Has anyone experience with running ngspice on a mac (M1)? Everything works fine, except that I canno...
l
Has anyone experience with running ngspice on a mac (M1)? Everything works fine, except that I cannot get the plotting function to work (homebrew installation). Error message:
Can't open viewport for graphics.
I have XQuartz (2.8.2 ) installed and other plotting tools (e.g., gnuplot) work fine. Seems that ngspice cannot connect to XQuartz somehow. Any help is appreciated!
s
When building ngspice did you run configure with the
--with-x
option?
l
When executing
brew install ngspice --with-x
, I receive
Error: invalid option: --with-x
s
no the option I mentioned is to be used if you compile ngspice from sources. I see you are installing a compiled package so forget the --with-x
also ensure you run ngspice in interactive mode if the plot is inside a .control / .endc section:
ngspice -i circuit.spice
h
Alternatively, you can run
ngspice
in our Docker natively on Mac M1 (in addition to many more tools, of course): https://github.com/iic-jku/IIC-OSIC-TOOLS
h
Homebrew does compile ngspice with configure flag --without-x, so without graphics interface to X11.