@@ -44,14 +44,29 @@ The APA MEX interface is known to work and tested for
44
44
45
45
> ** MS Windows Note:** To compile MPFR with Visual Studio, please look at the
46
46
> following project < https://github.com/BrianGladman/mpfr > . However, this
47
- > approach is not supported by APA and requires some adaptions.
47
+ > approach is not supported by APA and requires some adaptions of this project .
48
48
49
49
50
50
## Compiling static GMP and MPFR libraries for MS Windows, macOS, and UNIX (Linux)
51
51
52
- For macOS and UNIX/Linux systems
52
+ > Usually this step is ** not** necessary, as pre-compiled static library
53
+ > versions (` libgmp.a ` , ` libmpfr.a ` , ` gmp.h ` , ` mpfr.h ` , and ` mpf2mpfr.h ` )
54
+ > are included in the released package in the respective folders
55
+ > - ` apa/inst/mex/macos `
56
+ > - ` apa/inst/mex/mswin `
57
+ > - ` apa/inst/mex/unix `
53
58
54
- < https://wiki.octave.org/Windows_Installer >
59
+ For macOS and UNIX/Linux systems (Octave or Matlab) this can be conveniently
60
+ done by calling:
61
+ ``` matlab
62
+ cd apa/inst/mex
63
+ system ('make')
64
+ ```
65
+
66
+ For MS Windows one has to cross-compile the respective libraries using
67
+ the [ octave-mxe] ( https://wiki.octave.org/Windows_Installer ) project.
68
+
69
+ > The following steps have to be done on Linux (e.g. in a virtual machine).
55
70
56
71
```
57
72
hg clone https://hg.octave.org/mxe-octave
@@ -72,13 +87,3 @@ cp ./usr/x86_64-w64-mingw32/lib/libgmp.a \
72
87
./usr/x86_64-w64-mingw32/include/mpf2mpfr.h \
73
88
/path/to/apa/inst/mex/mswin
74
89
```
75
-
76
- ### Matlab
77
-
78
- > Only Matlab R2018b and later
79
-
80
-
81
-
82
-
83
-
84
- $(ENABLE_SHARED_OR_STATIC) --with-pic=yes
0 commit comments