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
Stefan Schippers
11/15/2023, 9:10 PM
When building ngspice did you run configure with the
--with-x
option?
l
Lukas Bongartz
11/15/2023, 9:28 PM
When executing
brew install ngspice --with-x
, I receive
Error: invalid option: --with-x
s
Stefan Schippers
11/15/2023, 9:46 PM
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
Stefan Schippers
11/16/2023, 1:03 AM
also ensure you run ngspice in interactive mode if the plot is inside a .control / .endc section:
Linen is a search-engine friendly community platform. We offer integrations with existing Slack/Discord communities and make those conversations Google-searchable.