Skip to content

Ngspice development tools for browser (WASM), Linux and Windows

License

Notifications You must be signed in to change notification settings

danchitnis/ngspice

Repository files navigation

ngspice container tools

EMCC Build CI

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

Linux Build CI

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

Mirror CI

https://github.com/danchitnis/ngspice-sf-mirror

Details

See: https://sourceforge.net/p/ngspice/patches/99/

Contributions

ngspice

Emscripten

SPICE3f5