Project

General

Profile

Actions

Ngspice compiling method enhancement

Now can use a python script to do ngspice compilation.
The script is "compile_linux_all.py", which is under ngspice path.

Usage:
./compile—linux—all.py [-m] <machine> [-r] <runmode> [-d] [-c] [-cm]
	-r, --runmode: choose the compiling way. Default is "make".
	"all": Will run full compiling, including autogen.sh, configure, make clean and make;
	"make": Will only do incremental compiling. Default is "make".
	-m, --machine

: choose the binary version. By default it will be same as the machine you are working on.
"6": Will generate a centos6 version; "l": Will generate a centosl version.

        -d, --debug: Will compile a debug build.
	-c, --clean: Will only run make clean for specific binary.
	-cm, --cleanmake: Will first run "make clean" under specific binary, then run make. Be noted that -c and -cm can't be used simutaneously.
Exapmple:
l. ./compile—linux—all.py: If run on centos6, will do incremental compilation for centos6 version binary;
2../compile—linux—all.py -m 6 -d: If run on centosl, will do incremental compilation for centos6 debug version binary;
3../compile—linux—all.py -r all -m l: Will generate a centosl version binary and do full compilation;
4../compile—linux—all.py -m 6 -c: WIll only run "make clean" for centos6 version binary.

Due to that Anaconda settting of LD_LIBRARY_PATH will fail configure procedure, the script will automatically remove this from LD_LIBRARY_PATH

Updated by jun chen 4 months ago · 1 revisions