mingw installation
This commit is contained in:
parent
db1fe413fe
commit
f9a5d631ae
|
|
@ -1,5 +1,6 @@
|
||||||
2011-06-02 Holger Vogt
|
2011-06-02 Holger Vogt
|
||||||
* tests/hisim/makefile.am: no more test1.cir in EXTRA_DIST
|
* tests/hisim/makefile.am: no more test1.cir in EXTRA_DIST
|
||||||
|
* INSTALL, compile_min.sh: new instructions for mingw compilation
|
||||||
|
|
||||||
2011-06-01 Dietmar Warning
|
2011-06-01 Dietmar Warning
|
||||||
* devices/bjt/bjt.c: introduce ccc as an alias for the
|
* devices/bjt/bjt.c: introduce ccc as an alias for the
|
||||||
|
|
|
||||||
20
INSTALL
20
INSTALL
|
|
@ -426,7 +426,10 @@ Most of the options now following are not well maintained, are not tested or eve
|
||||||
if you have MSYS/MINGW installed properly. Unfortunately this is rather
|
if you have MSYS/MINGW installed properly. Unfortunately this is rather
|
||||||
tedious because you will need several enhancements to the standard install,
|
tedious because you will need several enhancements to the standard install,
|
||||||
especially if you want to include XSpice. Some links are given below which
|
especially if you want to include XSpice. Some links are given below which
|
||||||
describe the procedures.
|
describe the procedures.
|
||||||
|
|
||||||
|
Installing from the tarball, e.g. ngspice-23.tar.gz, is now simple: After
|
||||||
|
expanding, you may just run ./compile_min.sh from the ngspice-23 directory.
|
||||||
|
|
||||||
The default installation location of ngspice is the Windows path
|
The default installation location of ngspice is the Windows path
|
||||||
C:\spice. The install path can be altered by passing --prefix=NEWPATH
|
C:\spice. The install path can be altered by passing --prefix=NEWPATH
|
||||||
|
|
@ -440,8 +443,9 @@ Most of the options now following are not well maintained, are not tested or eve
|
||||||
The procedure of compiling a distribution (for example, a tarball from
|
The procedure of compiling a distribution (for example, a tarball from
|
||||||
the ngspice website), is as follows:
|
the ngspice website), is as follows:
|
||||||
|
|
||||||
$ cd ng-spice-rework
|
$ cd ngspice-23
|
||||||
$ ./configure --with-windows ...and other options
|
|
||||||
|
$ ../configure --with-windows ...and other options
|
||||||
$ make
|
$ make
|
||||||
$ make install
|
$ make install
|
||||||
|
|
||||||
|
|
@ -452,7 +456,9 @@ Most of the options now following are not well maintained, are not tested or eve
|
||||||
|
|
||||||
A fully featured ngspice on Windows may be obtained with the following commands:
|
A fully featured ngspice on Windows may be obtained with the following commands:
|
||||||
$ ./autogen.sh --adms
|
$ ./autogen.sh --adms
|
||||||
$ ./configure --with-windows --enable-cider --disable-debug --enable-openmp --enable-xspice --enable-adms
|
$ mkdir release
|
||||||
|
$ cd release
|
||||||
|
$ ../configure --with-windows --enable-cider --disable-debug --enable-openmp --enable-xspice --enable-adms
|
||||||
$ make install
|
$ make install
|
||||||
|
|
||||||
However, to compile code extracted from the CVS repository the procedure is
|
However, to compile code extracted from the CVS repository the procedure is
|
||||||
|
|
@ -460,7 +466,9 @@ Most of the options now following are not well maintained, are not tested or eve
|
||||||
|
|
||||||
$ cd ng-spice-rework
|
$ cd ng-spice-rework
|
||||||
$ ./autogen.sh
|
$ ./autogen.sh
|
||||||
$ ./configure --enable-maintainer-mode --with-windows ...and other options
|
$ mkdir release
|
||||||
|
$ cd release
|
||||||
|
$ ../configure --enable-maintainer-mode --with-windows ...and other options
|
||||||
$ make
|
$ make
|
||||||
$ make install
|
$ make install
|
||||||
|
|
||||||
|
|
@ -492,7 +500,7 @@ Most of the options now following are not well maintained, are not tested or eve
|
||||||
CIDER and XSPICE are included, but the code models for XSPICE
|
CIDER and XSPICE are included, but the code models for XSPICE
|
||||||
(*.cm) are not (yet) made. You may however use the code models
|
(*.cm) are not (yet) made. You may however use the code models
|
||||||
created with MINGW (which in fact are dlls), as e.g. found in
|
created with MINGW (which in fact are dlls), as e.g. found in
|
||||||
the ngspice binary distribution.
|
the ngspice binary distribution our made as described in 9.1.
|
||||||
|
|
||||||
There is currently no installation procedure provided, you may
|
There is currently no installation procedure provided, you may
|
||||||
however install the executable manually as described in the
|
however install the executable manually as described in the
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# ngspice build script for MINGW-w64
|
# ngspice build script for MINGW-w64, release version, 32 or 64 bit
|
||||||
# compile_min.sh
|
# compile_min.sh
|
||||||
|
|
||||||
#Procedure:
|
#Procedure:
|
||||||
|
|
@ -14,21 +14,42 @@
|
||||||
# Options:
|
# Options:
|
||||||
# --adms and --enable-adms will install extra HICUM, EKV and MEXTRAM models via the
|
# --adms and --enable-adms will install extra HICUM, EKV and MEXTRAM models via the
|
||||||
# adms interface.
|
# adms interface.
|
||||||
|
# Please see http://ngspice.sourceforge.net/admshowto.html for more info on adms.
|
||||||
# CIDER, XSPICE, and OpenMP may be selected at will.
|
# CIDER, XSPICE, and OpenMP may be selected at will.
|
||||||
# --disable-debug will give O2 optimization (versus O0 for debug) and removes all debugging info.
|
# --disable-debug will give O2 optimization (versus O0 for debug) and removes all debugging info.
|
||||||
|
|
||||||
./autogen.sh --adms
|
|
||||||
if [ $? -ne 0 ]; then echo "./autogen.sh failed"; exit 1 ; fi
|
if test "$1" = "64"; then
|
||||||
|
if [ ! -d "release64" ]; then
|
||||||
|
mkdir release64
|
||||||
|
if [ $? -ne 0 ]; then echo "mkdir release64 failed"; exit 1 ; fi
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
if [ ! -d "release" ]; then
|
||||||
|
mkdir release
|
||||||
|
if [ $? -ne 0 ]; then echo "mkdir release failed"; exit 1 ; fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# If compiling sources from CVS, you may need to uncomment the following two lines:
|
||||||
|
#./autogen.sh --adms
|
||||||
|
#if [ $? -ne 0 ]; then echo "./autogen.sh failed"; exit 1 ; fi
|
||||||
|
|
||||||
echo
|
echo
|
||||||
if test "$1" = "64"; then
|
if test "$1" = "64"; then
|
||||||
echo "configuring for 64 bit"
|
cd release64
|
||||||
echo
|
if [ $? -ne 0 ]; then echo "cd release64 failed"; exit 1 ; fi
|
||||||
./configure --with-windows --enable-xspice --enable-cider --enable-openmp --enable-adms --disable-debug prefix="C:/Spice64" CFLAGS="-m64" LDFLAGS="-m64"
|
echo "configuring for 64 bit"
|
||||||
|
echo
|
||||||
|
# You may add --enable-adms to the following command for adding adms generated devices
|
||||||
|
../configure --with-windows --enable-xspice --enable-cider --enable-openmp --disable-debug prefix="C:/Spice64" CFLAGS="-m64" LDFLAGS="-m64"
|
||||||
else
|
else
|
||||||
echo "configuring for 32 bit"
|
cd release
|
||||||
echo
|
if [ $? -ne 0 ]; then echo "cd release failed"; exit 1 ; fi
|
||||||
./configure --with-windows --enable-xspice --enable-cider --enable-openmp --enable-adms --disable-debug CFLAGS="-m32" LDFLAGS="-m32"
|
echo "configuring for 32 bit"
|
||||||
|
echo
|
||||||
|
# You may add --enable-adms to the following command for adding adms generated devices
|
||||||
|
../configure --with-windows --enable-xspice --enable-cider --enable-openmp --disable-debug CFLAGS="-m32" LDFLAGS="-m32"
|
||||||
fi
|
fi
|
||||||
if [ $? -ne 0 ]; then echo "./configure failed"; exit 1 ; fi
|
if [ $? -ne 0 ]; then echo "./configure failed"; exit 1 ; fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue