You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Docs/development/jasp-building-guide.md
+24-15Lines changed: 24 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ JASP depends on:
24
24
-[boost](http://boost.org)
25
25
-[libarchive](http://libarchive.org/)
26
26
-[zlib](http://zlib.net/)
27
-
27
+
28
28
Links to specific versions for each platform are provided below.
29
29
30
30
Windows
@@ -33,7 +33,7 @@ Windows
33
33
Building JASP under windows is the most temperamental, and the versions listed here are known to work; slight variations on these numbers probably won't work.
XCode: Qt on OS X relies on XCode to function, you can install this through the App Store. It's easiest if you install this, run it, accept the license agreement, and then close it down before installing Qt.
68
-
69
-
Qt: building JASP on OS X is pretty robust, and most versions work. We currently use 5.4.0, but newer versions will probably work too. You can download it from [here](https://qt-project.org/downloads).
64
+
0. Clone the JASP repository
65
+
1.[XCode](https://developer.apple.com/xcode/) Easiest would be via the App Store.
66
+
2.[Qt 5.4.0](https://download.qt.io/archive/qt/) Newer version not supported yet.
67
+
3.[R 3.3.3](https://static.jasp-stats.org/development/R3.3%20OSX%20JASP%200.8.3.zip) This contains R and the packages
@@ -80,6 +80,17 @@ The directory structure should be as follows:
80
80
- libarchive.a
81
81
- libz.a
82
82
83
+
0.**Clone** the JASP repository into a folder of your choice. Our default choice is *~/desktop/JASP/* and cloning results in the creating of *~/desktop/JASP/jasp-desktop*.
84
+
1.**XCode**: Qt on OS X relies on XCode to function, you can install this through the App Store. It's easiest if you install this, run it, accept the license agreement, and then close it down before installing Qt.
85
+
2.**Qt**: building JASP on OS X is pretty robust, but for the moment we're restricted to QT 5.4. We will upgrade to a newer version soon. **Note**: *For xcode 8 and above, to accept the license, Qt (v5.4) tries to find xcrun instead of xcodebuild, and the following has to be done,*
86
+
- Open the file: *Qt_install_folder/5.4/clang_64/mkspecs/features/mac/default_pre.prf*
87
+
- Replace the line *isEmpty($$list($$system("/usr/bin/xcrun -find xcrun 2>/dev/null")))* by *isEmpty($$list($$system("/usr/bin/xcrun -find xcodebuild 2>/dev/null")))*
88
+
3.**R 3.3.3**: Create the folder */Frameworks* in the directory of your choice in step 0. For our default choice this results in *~/desktop/JASP/Frameworks/* first and subsequently *~/desktop/JASP/Frameworks/R.frameworks*.
89
+
4.**boost 1.64.0**: Unzip these files in the JASP folder. In our case, this results in *~/desktop/JASP/boost_1_64_0/*
90
+
5.**boost 1.64.0 binaries, libarchive binaries**: We're almost there! Fire up QT and try to build JASP. QT will automatically create a */build-JASP-....* directory. In our case this leads to *~/desktop/JASP/build-JASP-Desktop_Qt_5_5_1_clang_64bit-Debug*. QT will stop building JASP as it requires additional files. Thus, unzip the **boost 1.64.0 binaries, libarchive binaries** files and put them into the */build-JASP-....* directory that Qt created.
91
+
6. Build JASP again from Qt. The first build might take a while, but after the first time it'll go very smoothly.
92
+
93
+
83
94
Linux
84
95
-----
85
96
@@ -110,13 +121,13 @@ Under Fedora, you need these packages:
110
121
- qt5-qtwebkit-devel
111
122
- boost-devel
112
123
- libarchive-devel
113
-
124
+
114
125
And (under fedora only), in R (started as root so packages are installed systemwide), you need to install:
115
126
116
127
```
117
128
install.packages(c("Rcpp","RInside"))
118
129
```
119
-
130
+
120
131
Finally, under Fedora only, you need to create a symlink so that R is found:
121
132
122
133
```
@@ -135,7 +146,7 @@ In order to run, you will need (Ubuntu and alike):
135
146
- r-cran-logspline *
136
147
- r-cran-hypergeo *
137
148
- r-cran-rjson
138
-
149
+
139
150
Those marked with asterisks are available from Jonathon's PPA.
140
151
141
152
### Fedora
@@ -144,5 +155,3 @@ It works under Fedora, if you install these R packages manually in R:
0 commit comments