ngspice
ngspice copied to clipboard
Ngspice development tools for browser (WASM), Linux and Windows
Live Demo 🚀
ngspice container tools
Docker environment to build ngspice from source with a focus on command-line operations
WASM
We use Emscripten to compile the ngspice codebased into WASM to run client-side inside compatible browsers.
First clone the repository:
git clone https://github.com/danchitnis/ngspice.git
cd ngspice
Build the Docker image:
cd emcc
docker build -t ngspice:emcc .
Run the Docker image:
docker run -it -v $(realpath .):/mnt ngspice:emcc
This will create a new directory build
which has the generated JS and WASM runtime files.
Linux
First clone the repository:
git clone https://github.com/danchitnis/ngspice.git
cd ngspice
Build the Docker image:
cd linux
sudo docker build -t ngspice:linux .
Run the Docker image:
docker run -it -v $(realpath .):/mnt ngspice:linux
This will create a new directory build
which contains the generated ngspice
executable
Windows
TBA
GUI debug container
TBA
Notice that the docker image is based on container-xrdp
Ngspice mirror
https://github.com/danchitnis/ngspice-sf-mirror
Details
See: https://sourceforge.net/p/ngspice/patches/99/