-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILDING.txt
144 lines (101 loc) · 4.84 KB
/
BUILDING.txt
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
How to build TurboJPEG/IPP
*******************************************************************************
** Linux Prerequisites
*******************************************************************************
-- GCC v2.96 or later
-- GNU Make v3.7 or later
-- Intel(R) Integrated Performance Primitives v4.1 or later
* See http://www.intel.com/software/products/ipp/index.htm
-- RPM v4 or later or DPKG (required to build a redistributable TurboJPEG/IPP
package)
-- binutils 2.12.90 or later. This shouldn't be an issue unless you are
(still) running RedHat 7.x or Enterprise 2.1, in which case you can
download an updated bintools RPM from
http://mirror.atrpms.net/ccrma/mirror/7.2/
*******************************************************************************
** Mac OS X (Intel) Prerequisites
*******************************************************************************
-- GCC v3.3 or later
* Available in the Xcode package on the OS X install disc or from
http://developer.apple.com/tools/xcode
-- GNU Make v3.7 or later
* Should already be installed
-- Intel(R) Integrated Performance Primitives v5.1.1 or later
* See http://www.intel.com/software/products/ipp/index.htm
-- OS X PackageMaker (part of the O/S)
* The TurboJPEG/IPP build tries to find this in its default location, but
you can specify an alternate location by setting the PACKAGEMAKER Makefile
variable (see the Makefile Options section below.)
*******************************************************************************
** Windows Prerequisites
*******************************************************************************
-- GNU Make v3.7 or later
* GNU Make for Win32 can be found in MSYS
(http://www.mingw.org/download.shtml) or Cygwin (http://www.cygwin.com/)
-- Microsoft Visual C++ 2003 or later
* Tested with the free Visual C++ 2005 Express Edition
(http://msdn.microsoft.com/vstudio/express/visualc/)
-- Microsoft Platform SDK
* See http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/
-- Intel(R) Integrated Performance Primitives v4.1 or later
* See http://www.intel.com/software/products/ipp/index.htm
* Add the IPP include path (e.g.
c:\Program Files\Intel\IPP\5.3.4.087\ia32\include) to your system INCLUDE
environment variable prior to building TurboJPEG/IPP.
* Add the IPP library path
(e.g. c:\Program Files\Intel\IPP\5.3.4.087\ia32\lib) to your system LIB
environment variable prior to building TurboJPEG/IPP.
-- Nullsoft Install System (http://nsis.sourceforge.net/) required to build a
redistributable TurboJPEG/IPP package. makensis.exe should be in your PATH.
*******************************************************************************
** Building
*******************************************************************************
cd turbojpeg-ipp
make
*******************************************************************************
** Building a redistributable package
*******************************************************************************
-- Building an RPM package
cd turbojpeg-ipp
make dist
-- Building a DEB package
cd turbojpeg-ipp
make deb
*******************************************************************************
** Makefile Options
*******************************************************************************
Each of these options can be passed as an argument to "make".
-------
General
-------
DEBUG = yes
* Build a version of TurboJPEG/IPP with debugging symbols and no
optimization. The debug version will reside in ${platform}/dbg/lib and
${platform}/dbg/bin, whereas the release version will reside in
${platform}/lib and ${platform}/bin, so these two versions can be built
independently of one another.
M32 = yes
* On x86-64 systems, this cross-compiles a 32-bit (x86) version of
TurboJPEG/IPP.
--------------
Linux-Specific
--------------
IPPDIR = {location of Intel Performance Primitives directory}
* This allows you to override the default location of
/opt/intel/ipp/5.3.4.080/{ia32|em64t|itanium}, for instance to use an
earlier or later version of IPP.
IPPSHARED = yes
* Link against the IPP shared libraries rather than the static (merged)
libraries. Using this option has the following ramifications:
-- The IPP run-time RPM must be installed on the build machine.
-- The IPP run-time RPM must be installed on any machine that will use
TurboJPEG/IPP.
-- TurboJPEG/IPP's CPU autodetection mechanism for non-Intel CPU's will no
longer work, and it is likely that the non-optimal (MMX) code path will
be selected for non-Intel CPU's at run time.
--------------
MacOS-Specific
--------------
PACKAGEMAKER = {Location of PackageMaker executable}
* Default location =
/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker