Ngspice compiling method enhancement » History » Version 1
jun chen, 03/07/2025 12:30 AM
1 | 1 | jun chen | # Ngspice compiling method enhancement |
---|---|---|---|
2 | |||
3 | Now can use a python script to do ngspice compilation. |
||
4 | The script is "compile_linux_all.py", which is under ngspice path. |
||
5 | |||
6 | ``` |
||
7 | Usage: |
||
8 | ./compile—linux—all.py [-m] <machine> [-r] <runmode> [-d] [-c] [-cm] |
||
9 | -r, --runmode: choose the compiling way. Default is "make". |
||
10 | "all": Will run full compiling, including autogen.sh, configure, make clean and make; |
||
11 | "make": Will only do incremental compiling. Default is "make". |
||
12 | -m, --machine |
||
13 | |||
14 | : choose the binary version. By default it will be same as the machine you are working on. |
||
15 | "6": Will generate a centos6 version; "l": Will generate a centosl version. |
||
16 | |||
17 | -d, --debug: Will compile a debug build. |
||
18 | -c, --clean: Will only run make clean for specific binary. |
||
19 | -cm, --cleanmake: Will first run "make clean" under specific binary, then run make. Be noted that -c and -cm can't be used simutaneously. |
||
20 | ``` |
||
21 | |||
22 | ``` |
||
23 | Exapmple: |
||
24 | l. ./compile—linux—all.py: If run on centos6, will do incremental compilation for centos6 version binary; |
||
25 | 2../compile—linux—all.py -m 6 -d: If run on centosl, will do incremental compilation for centos6 debug version binary; |
||
26 | 3../compile—linux—all.py -r all -m l: Will generate a centosl version binary and do full compilation; |
||
27 | 4../compile—linux—all.py -m 6 -c: WIll only run "make clean" for centos6 version binary. |
||
28 | ``` |
||
29 | |||
30 | Due to that Anaconda settting of LD_LIBRARY_PATH will fail configure procedure, the script will automatically remove this from LD_LIBRARY_PATH |
||
31 |  |