0032147: Documentation - drop mentioning of WOK from build_3rdparty
[occt.git] / dox / build / build_3rdparty / building_3rdparty.md
CommitLineData
06ce029f
VS
1 Build 3rd-parties {#build_upgrade_building_3rdparty}
2==============================================
3@tableofcontents
4
5On Windows, the easiest way to install third-party libraries is to download archive with pre-built binaries from https://opencascade.com/content/3rd-party-components.
6On Linux and OS X, it is recommended to use the version installed in the system natively.
7
8@section dev_guides__building_3rdparty_win_1 Windows
9
10This document presents guidelines for building third-party products used by Open CASCADE Technology (OCCT) and samples on Windows platform. It is assumed that you are already familiar with MS Visual Studio / Visual C++.
11
12You need to use the same version of MS Visual Studio for building all third-party products and OCCT itself, in order to receive a consistent set of run-time binaries.
13
14The links for downloading the third-party products are available at https://opencascade.com/content/3rd-party-components.
15
16There are two types of third-party products used by OCCT:
17
18* Mandatory products:
19 * Tcl/Tk 8.5 -- 8.6;
20 * FreeType 2.4.10 -- 2.5.3.
21* Optional products:
22 * TBB 3.x -- 4.x;
23 * FreeImage 3.14.1 -- 3.16.0;
24 * VTK 6.1.0.
25
26It is recommended to create a separate new folder on your workstation, where you will unpack the downloaded archives of the third-party products, and where you will build these products (for example, *c:\\occ3rdparty*).
27
28Further in this document, this folder is referred to as *3rdparty*.
29
30@subsection dev_guides__building_3rdparty_win_2 Tcl/Tk
31
32Tcl/Tk is required for DRAW test harness.
33
34**Installation from sources: Tcl**
35
36Download the necessary archive from https://www.tcl.tk/software/tcltk/download.html and unpack it.
37
381. In the *win* sub-directory, edit file *buildall.vc.bat*:
39
40 * Edit the line "call ... vcvars32.bat" to have correct path to the version of Visual Studio to be used for building, for instance:
41
42 call "%VS80COMNTOOLS%\vsvars32.bat"
43
44 If you are building 64-bit version, set environment accordingly, e.g.:
45
46 call "%VS80COMNTOOLS%\..\..\VC\vcvarsall.bat" amd64
47
48 * Define variable *INSTALLDIR* pointing to directory where Tcl/Tk will be installed, e.g.:
49
50 set INSTALLDIR=D:\OCCT\3rdparty\tcltk-86-32
51
52 * Add option *install* to the first command line calling *nmake*:
53
54 nmake -nologo -f makefile.vc release htmlhelp install %1
55
56 * Remove second call to *nmake* (building statically linked executable)
57
582. Edit file *rules.vc* replacing line
59
60 SUFX = tsgx
61
62 by
63
64 SUFX = sgx
65
66 This is to avoid extra prefix 't' in the library name, which is not recognized by default by OCCT build tools.
67
68
693. By default, Tcl uses dynamic version of run-time library (MSVCRT), which must be installed on the system where Tcl will be used.
70 You may wish to link Tcl library with static version of run-time to avoid this dependency.
71 For that:
72
73 * Edit file *makefile.vc* replacing strings "crt = -MD" by "crt = -MT"
74
75 * Edit source file *tclMain.c* (located in folder *generic*) commenting out forward declaration of function *isatty()*.
76
77
784. In the command prompt, run *buildall.vc.bat*
79
80 You might need to run this script twice to have *tclsh* executable installed; check subfolder *bin* of specified installation path to verify this.
81
825. For convenience of use, we recommend making a copy of *tclsh* executable created in subfolder *bin* of *INSTALLDIR* and named with Tcl version number suffix, as *tclsh.exe* (with no suffix)
83
84 > cd D:\OCCT\3rdparty\tcltk-86-32\bin
85 > cp tclsh86.exe tclsh.exe
86
87**Installation from sources: Tk**
88
89Download the necessary archive from https://www.tcl.tk/software/tcltk/download.html and unpack it.
90
91Apply the same steps as described for building Tcl above, with the same INSTALLDIR.
92Note that Tk produces its own executable, called *wish*.
93
94You might need to edit default value of *TCLDIR* variable defined in *buildall.vc.bat* (should be not necessary if you unpack both Tcl and Tk sources in the same folder).
95
96@subsection dev_guides__building_3rdparty_win_2_2 FreeType
97
98FreeType is required for text display in a 3D viewer. You can download its sources from https://sourceforge.net/projects/freetype/files/
99
100### The building procedure
101
1021. Unpack the downloaded archive of FreeType product into the *3rdparty* folder. As a result, you will get a folder named, for example, *3rdparty\\freetype-2.4.10*. Further in this document, this folder is referred to as *freetype*.
103
1042. Open the solution file *freetype\\builds\\win32\\vc20xx\\freetype.sln* in Visual Studio. Here *vc20xx* stands for your version of Visual Studio.
105
1063. Select the configuration to build: either Debug or Release.
107
1084. Build the *freetype* project.
109
110 As a result, you will get a freetype import library (.lib) in the *freetype\\obj\\win32\\vc20xx* folder.
111
112
1135. If you build FreeType for a 64 bit platform, select in the main menu **Build - Configuration Manager** and add *x64* platform to the solution configuration by copying the settings from Win32 platform:
114
115 @figure{/build/build_3rdparty/images/3rdparty_image001.png}
116
117 Update the value of the Output File for x64 configuration:
118
119 @figure{/build/build_3rdparty/images/3rdparty_image003.png}
120
121 Build the *freetype* project.
122
123 As a result, you will obtain a 64 bit import library (.lib) file in the *freetype\\x64\\vc20xx* folder.
124
125 To build FreeType as a dynamic library (.dll) follow steps 6, 7 and 8 of this procedure.
126
1276. Open menu Project-> Properties-> Configuration Properties-> General and change option **Configuration Type** to *Dynamic Library (.dll)*.
1287. Edit file *freetype\\include\\freetype\\config\\ftoption.h*:
129
130 in line 255, uncomment the definition of macro *FT_EXPORT* and change it as follows:
131
132 #define FT_EXPORT(x) __declspec(dllexport) x
133
1348. Build the *freetype* project.
135
136 As a result, you will obtain the files of the import library (.lib) and the dynamic library (.dll) in folders <i>freetype \\objs\\release</i> or <i>\\objs\\debug </i>.
137
138 If you build for a 64 bit platform, follow step 5 of the procedure.
139
140 To facilitate the use of FreeType libraries in OCCT with minimal adjustment of build procedures, it is recommended to copy the include files and libraries of FreeType into a separate folder, named according to the pattern: *freetype-compiler-bitness-building mode*, where:
141 * **compiler** is *vc8* or *vc9* or *vc10* or *vc11*;
142 * **bitness** is *32* or *64*;
143 * **building mode** is *opt* (for Release) or *deb* (for Debug).
144
145 The *include* subfolder should be copied as is, while libraries should be renamed to *freetype.lib* and *freetype.dll* (suffixes removed) and placed to subdirectories *lib *and *bin*, respectively. If the Debug configuration is built, the Debug libraries should be put into subdirectories *libd* and *bind*.
146
147
148@subsection dev_guides__building_3rdparty_win_3_1 TBB
149
150This third-party product is installed with binaries
151from the archive that can be downloaded from https://github.com/intel/tbb.
152Go to the **Download** page, find the release version you need (e.g. *tbb30_018oss*) and pick the archive for Windows platform.
153
154Unpack the downloaded archive of TBB product into the *3rdparty* folder.
155
156Further in this document, this folder is referred to as *tbb*.
157
158@subsection dev_guides__building_3rdparty_win_3_3 FreeImage
159
160This third-party product should be built as a dynamically loadable library (.dll file).
161You can download its sources from
162https://sourceforge.net/projects/freeimage/files/Source%20Distribution/
163
164### The building procedure:
165
1661. Unpack the downloaded archive of FreeImage product into *3rdparty* folder.
167
168 As a result, you should have a folder named *3rdparty\\FreeImage*.
169
170 Rename it according to the rule: *freeimage-platform-compiler-building mode*, where
171
172 * **platform** is *win32* or *win64*;
173 * **compiler** is *vc8* or *vc9* or *vc10* or *vc11*;
174 * **building mode** is *opt* (for release) or *deb* (for debug)
175
176 Further in this document, this folder is referred to as *freeimage*.
177
1782. Open the solution file *freeimage\\FreeImage.*.sln* in your Visual Studio.
179
180 If you use a Visual Studio version higher than VC++ 2008, apply conversion of the workspace.
181 Such conversion should be suggested automatically by Visual Studio.
182
1833. Select a configuration to build.
184
185 - Choose **Release** if you are building Release binaries.
186 - Choose **Debug** if you are building Debug binaries.
187
188 *Note:*
189
190 If you want to build a debug version of FreeImage binaries then you need to rename the following files in FreeImage and FreeimagePlus projects:
191
192 Project -> Properties -> Configuration Properties -> Linker -> General -> Output File
193
194 FreeImage*d*.dll to FreeImage.dll
195 FreeImagePlus*d*.dll to FreeImagePlus.dll
196
197 Project -> Properties -> Configuration Properties -> Linker -> Debugging-> Generate Program Database File
198
199 FreeImage*d*.pdb to FreeImage.pdb
200 FreeImagePlus*d*.pdb to FreeImagePlus.pdb
201
202 Project -> Properties -> Configuration Properties -> Linker -> Advanced-Import Library
203
204 FreeImage*d*.lib to FreeImage.lib
205 FreeImagePlus*d*.lib to FreeImagePlus.lib
206
207 Project -> Properties -> Configuration Properties -> Build Events -> Post -> Build Event -> Command Line
208
209 FreeImage*d*.dll to FreeImage.dll
210 FreeImage*d*.lib to FreeImage.lib
211 FreeImagePlus*d*.dll to FreeImagePlus.dll
212 FreeImagePlus*d*.lib to FreeImagePlus.lib
213
214 Additionally, rename in project FreeImagePlus
215
216 Project -> Properties -> Configuration Properties -> Linker -> Input -> Additional Dependencies
217
218 from FreeImage*d*.lib to FreeImage.lib
219
2204. Select a platform to build.
221
222 - Choose *Win32* if you are building for a 32 bit platform.
223 - Choose *x64* if you are building for a 64 bit platform.
224
2255. Start the building process.
226
227 As a result, you should have the library files of FreeImage product in *freeimage\\Dist* folder (*FreeImage.dll* and *FreeImage.lib*) and in *freeimage\\Wrapper\\FreeImagePlus\\dist* folder (*FreeImagePlus.dll* and *FreeImagePlus.lib*).
228
229@subsection dev_guides__building_3rdparty_win_3_4 VTK
230
231VTK is an open-source, freely available software system for 3D computer graphics, image processing and visualization. VTK Integration Services component provides adaptation functionality for visualization of OCCT topological shapes by means of VTK library.
232
233### The building procedure:
234
2351. Download the necessary archive from https://www.vtk.org/VTK/resources/software.html and unpack it into *3rdparty* folder.
236
237 As a result, you will get a folder named, for example, <i>3rdparty\VTK-6.1.0.</i>
238
239 Further in this document, this folder is referred to as *VTK*.
240
2412. Use CMake to generate VS projects for building the library:
242 - Start CMake-GUI and select VTK folder as source path, and the folder of your choice for VS project and intermediate build data.
243 - Click **Configure**.
244 - Select the VS version to be used from the ones you have installed (we recommend using VS 2010) and the architecture (32 or 64-bit).
245 - Generate VS projects with default CMake options. The open solution *VTK.sln* will be generated in the build folder.
246
2473. Build project VTK in Release mode.
248
249
250@section build_3rdparty_linux Linux
251
252This document presents additional guidelines for building third-party
253products used by Open CASCADE Technology and samples on Linux platform.
254
255The links for downloading the third-party products are available on the web site at
256https://opencascade.com/content/3rd-party-components.
257
258There are two types of third-party products, which are necessary to build OCCT:
259
260* Mandatory products:
261 * Tcl/Tk 8.5 - 8.6;  
262 * FreeType 2.4.10 - 2.5.3;
263* Optional products:
264 * TBB 3.x - 4.x;
265 * FreeImage 3.14.1 - 3.16.0;
266 * VTK 6.1.0.
267
268
269@subsection dev_guides__building_3rdparty_linux_2_1 Tcl/Tk
270
271Tcl/Tk is required for DRAW test harness.
272
273**Installation from sources: Tcl**
274
275Download the necessary archive from https://www.tcl.tk/software/tcltk/download.html and unpack it.
276
2771. Enter the unix sub-directory of the directory where the Tcl source files are located <i>(TCL_SRC_DIR)</i>.
278
279 cd TCL_SRC_DIR/unix
280
2812. Run the *configure* command:
282
283 configure --enable-gcc --enable-shared --enable-threads --prefix=TCL_INSTALL_DIR
284
285 For a 64 bit platform also add <i>--enable-64bit</i> option to the command line.
286
2873. If the configure command has finished successfully, start the building process:
288
289 make
290
2914. If building is finished successfully, start the installation of Tcl.
292 All binary and service files of the product will be copied to the directory defined by *TCL_INSTALL_DIR*
293
294 make install
295
296**Installation from sources: Tk**
297
298Download the necessary archive from https://www.tcl.tk/software/tcltk/download.html and unpack it.
299
3001. Enter the unix sub-directory of the directory where the Tk source files are located <i>(TK_SRC_DIR)</i>
301
302 cd TK_SRC_DIR/unix
303
3042. Run the configure command, where <i>TCL_LIB_DIR</i> is *TCL_INSTALL_DIR/lib*.
305
306 configure --enable-gcc --enable-shared --enable-threads --with-tcl=TCL_LIB_DIR --prefix=TK_INSTALL_DIR
307
308 For a 64 bit platform also add <i>--enable-64bit</i> option to the command line.
309
3103. If the configure command has finished successfully, start the building process:
311
312 make
313
3144. If the building has finished successfully, start the installation of Tk.
315 All binary and service files of the product will be copied
316 to the directory defined by *TK_INSTALL_DIR* (usually it is *TCL_INSTALL_DIR*)
317
318 make install
319
320@subsection dev_guides__building_3rdparty_linux_2_2 FreeType
321
322FreeType is required for text display in the 3D viewer.
323Download the necessary archive from https://sourceforge.net/projects/freetype/files/ and unpack it.
324
3251. Enter the directory where the source files of FreeType are located <i>(FREETYPE_SRC_DIR)</i>.
326
327 cd FREETYPE_SRC_DIR
328
3292. Run the *configure* command:
330
331 configure --prefix=FREETYPE_INSTALL_DIR
332
333 For a 64 bit platform also add <i>CFLAGS='-m64 -fPIC' CPPFLAGS='-m64 -fPIC'</i> option to the command line.
334
3353. If the *configure* command has finished successfully, start the building process:
336
337 make
338
3394. If the building has finished successfully, start the installation of FreeType.
340 All binary and service files of the product will be copied to the directory defined by *FREETYPE_INSTALL_DIR*
341
342 make install
343
344
345@subsection dev_guides__building_3rdparty_linux_3_1 TBB
346
347This third-party product is installed with binaries from the archive that can be downloaded from https://github.com/intel/tbb.
348Go to the **Download** page, find the release version you need and pick the archive for Linux platform.
349To install, unpack the downloaded archive of TBB product.
350
351@subsection dev_guides__building_3rdparty_linux_3_3 FreeImage
352
353Download the necessary archive from https://sourceforge.net/projects/freeimage/files/Source%20Distribution/
354and unpack it. The directory with unpacked sources is further referred to as *FREEIMAGE_SRC_DIR*.
355
3561. Modify *FREEIMAGE_SRC_DIR/Source/OpenEXR/Imath/ImathMatrix.h*:
357 In line 60 insert the following:
358
359 #include string.h
360
3612. Enter the directory where the source files of FreeImage are located <i>(FREEIMAGE_SRC_DIR)</i>.
362
363 cd FREEIMAGE_SRC_DIR
364
3653. Run the building process
366
367 make
368
3694. Run the installation process
370
371 a. If you have the permission to write into directories <i>/usr/include</i> and <i>/usr/lib</i>, run the following command:
372
373 make install
374 b. If you do not have this permission, you need to modify file *FREEIMAGE_SRC_DIR/Makefile.gnu*:
375
376 Change lines 7-9 from:
377
378 DESTDIR ?= /
379 INCDIR ?= $(DESTDIR)/usr/include
380 INSTALLDIR ?= $(DESTDIR)/usr/lib
381
382 to:
383
384 DESTDIR ?= $(DESTDIR)
385 INCDIR ?= $(DESTDIR)/include
386 INSTALLDIR ?= $(DESTDIR)/lib
387
388 Change lines 65-67 from:
389
390 install -m 644 -o root -g root $(HEADER) $(INCDIR)
391 install -m 644 -o root -g root $(STATICLIB) $(INSTALLDIR)
392 install -m 755 -o root -g root $(SHAREDLIB) $(INSTALLDIR)
393
394 to:
395
396 install -m 755 $(HEADER) $(INCDIR)
397 install -m 755 $(STATICLIB) $(INSTALLDIR)
398 install -m 755 $(SHAREDLIB) $(INSTALLDIR)
399
400 Change line 70 from: 
401
402 ldconfig
403
404 to:
405
406 \#ldconfig
407
408 Then run the installation process by the following command:
409
410 make DESTDIR=FREEIMAGE_INSTALL_DIR install
411
4125. Clean temporary files
413
414 make clean
415
416@subsection dev_guides__building_3rdparty_linux_3_4 VTK
417
418You can download VTK sources from https://www.vtk.org/VTK/resources/software.html
419
420### The building procedure:
421
422Download the necessary archive from https://www.vtk.org/VTK/resources/software.html and unpack it.
423
4241. Install or build *cmake* product from the source file.
4252. Start *cmake* in GUI mode with the directory where the source files of *VTK* are located:
426
427 ccmake VTK_SRC_DIR
428
429 * Press <i>[c]</i> to make the initial configuration
430 * Define the necessary options in *VTK_INSTALL_PREFIX*
431 * Press <i>[c]</i> to make the final configuration
432 * Press <i>[g]</i> to generate Makefile and exit
433
4343. Start the building of VTK:
435
436 make
437
4384. Start the installation of VTK. Binaries will be installed according to the *VTK_INSTALL_PREFIX* option.
439
440 make install
441
442@subsection dev_guides__building_3rdparty_linux_4 Installation From Official Repositories
443
444**Debian-based distributives**
445
446All 3rd-party products required for building of OCCT could be installed
447from official repositories. You may install them from console using apt-get utility:
448
127330f9 449 sudo apt-get install tcllib tklib tcl-dev tk-dev libfreetype-dev libxt-dev libxmu-dev libxi-dev libgl1-mesa-dev libfreeimage-dev
06ce029f
VS
450
451Building is possible with C++ compliant compiler:
452
453 sudo apt-get install g++
454
455@section build_3rdparty_macos Mac OS X
456
457This document presents additional guidelines for building third-party products
458used by Open CASCADE Technology and samples on Mac OS X platform (10.6.4 and later).
459
460The links for downloading the third-party products are available at https://opencascade.com/content/3rd-party-components.
461
462There are two types of third-party products, which are necessary to build OCCT:
463
464* Mandatory products:
465 * Tcl/Tk 8.5 - 8.6;
466 * FreeType 2.4.10 - 2.5.3.
467* Optional products:
468 * TBB 3.x - 4.x;
469 * FreeImage 3.14.1 - 3.16.0
470
471
472@subsection dev_guides__building_3rdparty_osx_2_1 Tcl/Tk 8.5
473
474Tcl/Tk is required for DRAW test harness. Version 8.5 or 8.6 can be used with OCCT.
475
476**Installation from sources: Tcl 8.5**
477
478Download the necessary archive from https://www.tcl.tk/software/tcltk/download.html and unpack it.
479
4801. Enter the *macosx* sub-directory of the directory where the Tcl source files are located <i>(TCL_SRC_DIR)</i>.
481
482 cd TCL_SRC_DIR/macosx
483
4842. Run the *configure* command
485
486 configure --enable-gcc --enable-shared --enable-threads --prefix=TCL_INSTALL_DIR
487
488 For a 64 bit platform also add <i>--enable-64bit</i> option to the command line.
489
4903. If the *configure* command has finished successfully, start the building process
491
492 make
493
4944. If building is finished successfully, start the installation of Tcl.
495 All binary and service files of the product will be copied to the directory defined by *TCL_INSTALL_DIR*.
496
497 make install
498
499**Installation from sources: Tk 8.5**
500
501Download the necessary archive from https://www.tcl.tk/software/tcltk/download.html and unpack it.
502
5031. Enter the *macosx* sub-directory of the directory where the source files of Tk are located <i>(TK_SRC_DIR)</i>.
504
505 cd TK_SRC_DIR/macosx
506
5072. Run the *configure* command, where TCL_LIB_DIR is TCL_INSTALL_DIR/lib
508
509 configure --enable-gcc --enable-shared --enable-threads --with-tcl=TCL_LIB_DIR --prefix=TK_INSTALL_DIR
510
511 For a 64 bit platform also add <i>--enable-64bit</i> option to the command line.
512
5133. If the *configure* command has finished successfully, start the building process:
514
515 make
516
5174. If the building has finished successfully, start the installation of Tk. All binary and service files of the product will be copied to the directory defined by *TK_INSTALL_DIR* (usually it is TCL_INSTALL_DIR)
518
519 make install
520
521@subsection dev_guides__building_3rdparty_osx_2_2 FreeType 2.4.10
522
523FreeType is required for text display in the 3D viewer.
524
525Download the necessary archive from https://sourceforge.net/projects/freetype/files/ and unpack it.
526
5271. Enter the directory where the source files of FreeType are located <i>(FREETYPE_SRC_DIR)</i>.
528
529 cd FREETYPE_SRC_DIR
530
5312. Run the *configure* command
532
533 configure --prefix=FREETYPE_INSTALL_DIR
534
535 For a 64 bit platform also add <i>CFLAGS='-m64 -fPIC' CPPFLAGS='-m64 -fPIC'</i> option to the command line.
536
5373. If the *configure* command has finished successfully, start the building process
538
539 make
540
5414. If building has finished successfully, start the installation of FreeType.
542 All binary and service files of the product will be copied to the directory defined by *FREETYPE_INSTALL_DIR*.
543
544 make install
545
546@subsection dev_guides__building_3rdparty_osx_3_1 TBB 3.x or 4.x
547
548This third-party product is installed with binaries from the archive
549that can be downloaded from https://github.com/intel/tbb.
550Go to the **Download** page, find the release version you need (e.g. *tbb30_018oss*)
551and pick the archive for Mac OS X platform.
552To install, unpack the downloaded archive of TBB 3.0 product (*tbb30_018oss_osx.tgz*).
553
554@subsection dev_guides__building_3rdparty_osx_3_3 FreeImage 3.14.1 or 3.15.x
555
556Download the necessary archive from
557https://sourceforge.net/projects/freeimage/files/Source%20Distribution/
558and unpack it. The directory with unpacked sources is further referred to as *FREEIMAGE_SRC_DIR*.
559
560Note that for building FreeImage on Mac OS X 10.7 you should replace *Makefile.osx*
561in *FREEIMAGE_SRC_DIR* by the corrected file, which you can find in attachment to issue #22811 in OCCT Mantis bug tracker
562(https://tracker.dev.opencascade.org/file_download.php?file_id=6937&type=bug).
563
5641. If you build FreeImage 3.15.x you can skip this step.
565 Modify <i>FREEIMAGE_SRC_DIR/Source/OpenEXR/Imath/ImathMatrix.h:</i>
566
567 In line 60 insert the following:
568
569 #include string.h
570
571 Modify <i>FREEIMAGE_SRC_DIR/Source/FreeImage/PluginTARGA.cpp:</i>
572
573 In line 320 replace:
574
575 SwapShort(value);
576
577 with:
578
579 SwapShort(&value);
580
5812. Enter the directory where the source files of FreeImage are located <i>(FREEIMAGE_SRC_DIR)</i>.
582
583 cd FREEIMAGE_SRC_DIR
584
5853. Run the building process
586
587 make
588
5894. Run the installation process
590
591 1. If you have the permission to write into <i>/usr/local/include</i> and <i>/usr/local/lib</i> directories, run the following command:
592
593 make install
594
595 2. If you do not have this permission, you need to modify file *FREEIMAGE_SRC_DIR/Makefile.osx*:
596
597 Change line 49 from:   
598
599 PREFIX ?= /usr/local
600
601 to:
602
603 PREFIX ?= $(PREFIX)
604
605   Change lines 65-69 from:
606
607 install -d -m 755 -o root -g wheel $(INCDIR) $(INSTALLDIR)
608 install -m 644 -o root -g wheel $(HEADER) $(INCDIR)
609 install -m 644 -o root -g wheel $(SHAREDLIB) $(STATICLIB) $(INSTALLDIR)
610 ranlib -sf $(INSTALLDIR)/$(STATICLIB)
611 ln -sf $(SHAREDLIB) $(INSTALLDIR)/$(LIBNAME)
612
613 to:
614
615 install -d $(INCDIR) $(INSTALLDIR)
616 install -m 755 $(HEADER) $(INCDIR)
617 install -m 755 $(STATICLIB) $(INSTALLDIR)
618 install -m 755 $(SHAREDLIB) $(INSTALLDIR)
619 ln -sf $(SHAREDLIB) $(INSTALLDIR)/$(VERLIBNAME)
620 ln -sf $(VERLIBNAME) $(INSTALLDIR)/$(LIBNAME)
621
622 Then run the installation process by the following command:
623
624 make PREFIX=FREEIMAGE_INSTALL_DIR install
625
6265. Clean temporary files
627
628 make clean