-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathREADME_Windows
57 lines (46 loc) · 2.76 KB
/
README_Windows
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
56
NAME
README_Windows -- A installation guide for OOQP under Microsoft Windows
SYNOPSYS
OOQP was developed under an UNIX-like environment, but also may be
installed and will run under Microsoft Windows. The C++ code itself is
platform-independent. The only issue is the system for building the
libraries and executables.
The file INSTALL contains instructions for compiling OOQP in a UNIX-like
environment, as well as general information about installing OOQP. The
current file contains suplemental information for compiling under
Windows. We are aware of two reasonable options. The first is to install
and use Cygwin. The second is to compile under Microsoft Visual C++.
CYGWIN
Cygwin is a UNIX-like environment that runs under Windows. It is freely
available from <http://www.cygwin.com>, or may be purchased on machine
readable media. If you choose to install Cygwin, you may simply follow
the standard instructions in the INSTALL guide.
Visual C++
OOQP is primarily developed under GNU Linux, and the files needed to
compile OOQP under Microsoft Visual Studio are not part of the standard
OOQP distribution. We are not aware of any technical impediment to
compiling OOQP under Visual Studio -- please report any problem you may
find.
To compile OOQP with Visual Studio, you must accomplish the following
tasks.
1) Obtain a means of compiling MA27, which is written in Fortran 77.
F2C may work (see the INSTALL file for a discussion of F2C). There
are also commercial packages that support for compiling Fortran with
Visual Studio; we don't have experience with these.
2) Obtain BLAS and LAPACK libraries for Visual Studio. These may be
compiled from source, but to do so you need a Fortran compiler (see
INSTALL). Use the same Fortran compiler that you use to build MA27.
3) Either find a way to use the OOQP makefiles with the Visual Studio
compilers (e.g. via Cygwin), or create a Visual Studio project
building the necessary executables. The task of builing an
appropriate project is tedious, but not technically difficult. The
appropriate "main" routine for the sparse general solver is in
src/QpGen/QpGenSparseGondzioDriver.C. It should be Ok to include all
other the .C files under src/ the Visual Studio project that builds
the sparse general solver, so long as these files do not provide an
alternate definition of main (by convention the files that contain a
main routine have "Driver" in the name).
4) Link against (build the excutables using) an appropriate Fortran
system library.
Additional support for compiling with Visual Studio may be available on
the OOQP web site.