forked from GoyaPtyLtd/BaseElements-Plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILDING.linux
378 lines (218 loc) · 11.5 KB
/
BUILDING.linux
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
=======================================================================
Linux
=======================================================================
The plug-in was built using Code::Blocks svn11417 on Centos 7 (64-bit).
Download the FileMaker External Plug-In API from
http://www.filemaker.com/support/technologies/
and place the FMWrapper directory inside the SDK's Headers directory in the Headers directory. The version of libFMWrapper.so in the Libraries/Linux should be placed the Libraries/linux directory.
The BaseElements plug-in is built as a static library and all third-party libraries must be built from source as static libraries.
=======================================================================
Boost - 1.70_0
=======================================================================
The Boost FileSystem and System libraries are required.
http://www.boost.org/
See
more/getting_started/index.html
for instructions on compiling the Boost libraries. From the command prompt try
cd boost_1_70_0
./bootstrap.sh
./b2 link=static cflags=-fPIC cxxflags=-fPIC runtime-link=static install --prefix=build --with-program_options --with-regex --with-date_time --with-filesystem --with-thread
Copy the directory containing the boost headers from the build/include directory to the Headers directory and copy the files in the build/lib to Libraries/linux.
=======================================================================
zlib
=======================================================================
Building zlib is straightforward. Download the zlib source from
http://www.zlib.net/
and extract the folder zlib-1.2.8 to the desktop.
cd zlib-1.2.8
CFLAGS="-fPIC" ./configure --static --prefix=build
make install
Move
buld/libz.a
into the Libraries/linux directory and copy zip.h and zconf.h from the root directory of the distribution to the Headers directory.
=======================================================================
Jansson - 2.5
=======================================================================
Download the source from
https://github.com/GoyaPtyLtd/jansson
Then
cd jansson-json_path
autoreconf -i
CFLAGS=-fPIC ./configure --prefix=build
make install
Copy jansson.h and jansson_config.h from build/include to the Headers directory and build/lib/libjansson.a to Libraries/linux.
=======================================================================
OpenSSL - 1.0.2g
=======================================================================
Download the latest openssl source from
http://www.openssl.org/source/
cd openssl-1.0.2h
export CFLAGS=-fPIC
export CXXFLAGS=-fPIC
./config --prefix=build no-shared -fPIC
make depend
make install
Copy libcrypto.a and libssl.a to Libraries/linux and copy build/include/openssl to Headers.
=======================================================================
liboauth - 1.0.3
=======================================================================
Note: OpenSSL & cURL must be built first.
Download the source from
http://liboauth.sourceforge.net/
cd openssl-1.0.3
CURL_CFLAGS="-I/home/mark/Dropbox/Development/BaseElements-Plugin/Headers" CURL_LIBS="/home/mark/Dropbox/Development/BaseElements-Plugin/Libraries/linux/libcurl.a" CFLAGS="-fPIC -I/home/mark/Documents/BaseElements-Plugin.git/trunk/Headers" LDFLAGS="-L/home/mark/Documents/BaseElements-Plugin.git/trunk/Libraries/linux" ./configure --prefix=/home/mark/Desktop/liboauth-1.0.3/build --disable-curl --enable-libcurl --disable-shared
make install
Copy liboauth.h from ./src/ to the Headers directory and liboautha to Libraries\linux.
=======================================================================
mimetic - 0.9.8
=======================================================================
Download the source from
http://www.codesink.org/mimetic_mime_library.html#download
Edit the file mimetic/base64.h to replace the line
*out = NL; ++out;
with
*out = CR; ++out;
*out = LF; ++out;
Then
cd mimetic-0.9.8
CFLAGS=-fPIC ./configure --prefix=build
make install
Copy the directory containing the mimetic headers from the build/include directory to the Headers directory and copy the library in the build/lib directory to the Libraries/linux directory.
=======================================================================
libssh2 - 1.7.0
=======================================================================
Note: OpenSSL & zlib must be built first.
Download the source from
http://www.libssh2.org/
Then
cd libssh2-1.7.0
CFLAGS="-fPIC -I/home/mark/Dropbox/Development/BaseElements-Plugin/Headers" LDFLAGS="-L/home/mark/Dropbox/Development/BaseElements-Plugin/Libraries/linux -ldl" ./configure --prefix=/home/mark/Desktop/libssh2-1.7.0/build --with-openssl --with-libz --without-libgcrypt --disable-examples-build --disable-shared
make install
Copy
build/lib/libssh2.a
into the Libraries/osx directory and copy
build/include
to Headers/libssh
=======================================================================
libcurl - 7.50.1
=======================================================================
Note: OpenSSL & libssh2 must be built before building libcurl.
Download the source from
http://curl.haxx.se/download.html
and expand it into a directory on the Desktop. Then
cd curl-7.50.1
CPPFLAGS="-I/home/mark/Dropbox/Development/BaseElements-Plugin/Headers" LDFLAGS="-L/home/mark/Dropbox/Development/BaseElements-Plugin/Libraries/linux/libssl.a -L/home/mark/Dropbox/Development/BaseElements-Plugin/Libraries/linux/libcrypto.a -L/home/mark/Dropbox/Development/BaseElements-Plugin/Libraries/linux/libssh2.a -lpthread -ldl" ./configure --with-ssl='/home/mark/Desktop/openssl-1.0.2h/build' --with-libssh2='/home/mark/Documents/LibraryBuilds/libssh2-1.7.0/build' --disable-shared --with-zlib --prefix='/home/mark/Documents/LibraryBuilds/curl-7.50.1/build'
make install
Copy
build/lib/curl.a
into the Libraries/linux directory and
build/inlcude/curl
into Headers.
=======================================================================
libiconv - 1.14 & libxml2 - 2.9.4
=======================================================================
Download the libiconv source from
http://www.gnu.org/software/libiconv/
Then
cd libiconv-1.14
Change line 682 from
#if @GNULIB_GETS@
to
#if 0
then...
CFLAGS=-fPIC ./configure --prefix=build
make install
Download the source for libxml2 from
http://xmlsoft.org/downloads.html
and expand it into a directory on the Desktop.
cd libxml2-2.9.4
CFLAGS=-fPIC ./configure --with-threads --without-python --prefix=build
make install
Copy build/libxml2.a to Libraries/linux folder and, copy
build/include/libxml
into the BE Plugin Headers folder.
=======================================================================
libxslt & libexslt - 1.1.29
=======================================================================
Download the source from
http://xmlsoft.org/XSLT/downloads.html
and expand it into a directory on the Desktop.
cd libxslt-1.1.29
CFLAGS=-fPIC ./configure --prefix='/home/mark/Desktop/libxslt-1.1.29/build' --with-libxml-prefix='/home/mark/Desktop/libxml2-2.9.4/build'
make install
Finally, place the headers
build/include/libxslt & build/include/libexslt
in the Headers directory and copy the libraries
build/lib/libxslt.a & build/lib/libexslt.a
into the Libraries/linux directory.
=======================================================================
duktape - 2.3.0
=======================================================================
Download the source from
http://duktape.org/
and extract the archive to the desktop and copy the src directory to the Source directory and rename it to duktape.
=======================================================================
libjpeg-turbo - 1.5
=======================================================================
Download the source from
http://www.libjpeg-turbo.org/
and extract the archive to the desktop. Then
cd libjpeg-turbo-1.5.0
autoreconf -fiv
CFLAGS=-fPIC ./configure --prefix=build
make install
Rename build/include to libturbojpeg and copy the directory to Headers. Copy build/lib/libjpeg.a & libturbojpeg.a to Libraries/linux.
=======================================================================
Poco 1.9.2
=======================================================================
Download the source from
http://pocoproject.org/download/index.html
Then
cd poco-1.9.2-all
./configure --cflags=-fPIC --config=Linux-clang --static --no-tests --no-samples --omit=Data,MongoDB,Crypto,Net,XML,PageCompiler --prefix=build
make install
Copy the libraries libPocoFoundation.a, libPocoJSON.a & libPocoZip.a from build/lib to the Libraries/linux directory and copy the build/include/Poco to Headers.
=======================================================================
freetype - 2.7
=======================================================================
Download freetype from
https://www.freetype.org/download.html
and expand it into a directory on the Desktop.
cd freetype-2.7
CFLAGS="-fPIC" ./configure --disable-shared --prefix=build
make install
then copy build/lib/libfreetype.a to Libraries/linux and build/include/freetype2 to Headers.
=======================================================================
expat - 2.20.0
=======================================================================
Download fontconfig from
https://www.freedesktop.org/wiki/Software/fontconfig/
and expand it into a directory on the Desktop.
cd fontconfig-2.20.0
CFLAGS="-fPIC" ./configure --disable-shared --prefix=build
make install
then copy build/lib/libexpat.a to Libraries/linux directory.
=======================================================================
fontconfig - 2.12.1
=======================================================================
Download fontconfig from
https://www.freedesktop.org/wiki/Software/fontconfig/
and expand it into a directory on the Desktop.
cd fontconfig-2.12.1
CFLAGS="-fPIC" ./configure --disable-shared --prefix=build FREETYPE_CFLAGS="-I<path to /BaseElements-Plugin/Headers>/freetype2" FREETYPE_LIBS="<path to /BaseElements-Plugin/Libraries/macOS>" LDFLAGS="-L<path to /BaseElements-Plugin/Libraries/macOS>" --with-expat='~/Desktop/expat-2.2.0/build'
make install
then copy build/lib/libfontconfig.a to Libraries/linux and build/include/fontconfig to Headers.
=======================================================================
podofo - 0.9.4
=======================================================================
Download freetype from
https://www.freetype.org/download.html
and expand it into a directory on the Desktop.
cd podofo-0.9.4
Edit
CMakeLists.txt
to remove references to CMP0033 and the PNG library. Then
cmake -G "Unix Makefiles" -DWANT_FONTCONFIG:BOOL=TRUE -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_INSTALL_PREFIX="./_build" -DPODOFO_BUILD_STATIC:BOOL=TRUE -DPODOFO_BUILD_SHARED:BOOL=FALSE -DFREETYPE_INCLUDE_DIR="<path to /BaseElements-Plugin/Headers>/freetype2" -DFREETYPE_LIBRARY_RELEASE="<path to /BaseElements-Plugin/Libraries/linux>/libfreetype.a" -DFONTCONFIG_INCLUDE_DIR="<path to /BaseElements-Plugin/Headers>/fontconfig" -DFONTCONFIG_LIBRARY_RELEASE="<path to /BaseElements-Plugin/Libraries/linux>/libfontconfig.a" -DFONTCONFIG_LIBRARIES="<path to /BaseElements-Plugin/Libraries/linux>" -DPODOFO_BUILD_LIB_ONLY=TRUE -DWANT_LIB64:BOOL=TRUE -DCMAKE_CXX_FLAGS="fPIC" ./
make install
then copy _build/lib/libpodofo.a to Libraries/linux and _build/include/podofo to Headers.
=======================================================================