forked from tmolteno/necpp
-
Notifications
You must be signed in to change notification settings - Fork 1
/
INSTALL
56 lines (39 loc) · 1.71 KB
/
INSTALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
Installation from CVS
=====================
To create the files using autoconf and friends, issue the following
command, and then proceed to the Basic Installation.
==Pre-requisites==
Nec2++ requires a C++ compiler and uses the GNU autoconf packages for
keeping track of dependencies. On Debian or a derivative, you can
install these with the following command.
aptitude install g++ make automake autoconf libtool libatlas-base-dev
==Installation Steps==
1. Install the autoconf and libtool packages.
On Debian this is done with
`aptitude install automake autoconf libtool'
on other systems you will have to find the appropriate way to do this.
2. Cenerate the ./configure script. To do this, type
`make -f Makefile.cvs'
3. Then do the usual thing
./configure --without-lapack
make
sudo make install
4. To use LAPACK, you should install the appropriate atlas system
aptitude install libatlas-base-dev. And then to the usual thing, i.e.,
./configure
make
sudo make install
==Compiling for a specific architecture==
Particularly using gcc-4.0 it is important to specify the architecture you
are using (this will produce approximately a 50% speedup on the athlon-xp
for example. The following configure options will do this:
1. ./configure CXX=g++-4.0 CXXFLAGS="-O3 -march=athlon-xp"
2. make
3. make install
==Building for Windows==
The MinGW toolset (a free compiler for Windows based on GCC) can be used to
compile nec2++ for windows operating systems. This is easily done from a
command line (cygwin shell is best).
1. ./configure --host=i586-mingw32msvc
2. make
3. The executable nec2++.exe can now be found in the src subdirectory.