blob: 4ffcb726682196ded450ef60e8672917b6e3522b [file] [log] [blame]
DRC2c0ea902010-04-16 07:33:41 +00001*******************************************************************************
DRC667df922011-06-23 10:11:22 +00002** Building TigerVNC
DRC2c0ea902010-04-16 07:33:41 +00003*******************************************************************************
4
5
DRC667df922011-06-23 10:11:22 +00006================================
7Build Requirements (All Systems)
8================================
DRC2c0ea902010-04-16 07:33:41 +00009
DRC667df922011-06-23 10:11:22 +000010-- CMake (http://www.cmake.org) v2.8 or later
11
Peter Åstrande7370bd2013-01-22 08:11:05 +000012-- FLTK 1.3.2
Pierre Ossmanc656bac2012-08-17 08:10:27 +000013 * Must be a patched snapshot to get full functionality
Peter Åstrand956a6362012-08-09 07:33:08 +000014 * See "Building FLTK" below.
15
DRC69854b42011-05-13 09:31:24 +000016-- If building TLS support:
Pierre Ossmanec3dfe62014-10-17 10:36:58 +020017 * GnuTLS
DRC69854b42011-05-13 09:31:24 +000018
DRCce355e32011-06-24 04:58:01 +000019-- If building native language support (NLS):
20 * Gnu gettext 0.14.4 or later
21 * See "Building Native Language Support" below.
22
DRC667df922011-06-23 10:11:22 +000023-- libjpeg-turbo SDK
DRCce355e32011-06-24 04:58:01 +000024 * If your system does not include libjpeg-turbo, then you can download the
25 SDK from http://sourceforge.net/projects/libjpeg-turbo/files/
DRC240a5ff2011-07-06 07:28:30 +000026 * See "Building High-Performance JPEG Support" below.
DRC667df922011-06-23 10:11:22 +000027
28
29=========================
30Build Requirements (Unix)
31=========================
32
33-- Non-Mac platforms:
34 * X11 development kit
35
DRC2c0ea902010-04-16 07:33:41 +000036-- If building Xvnc:
DRC667df922011-06-23 10:11:22 +000037 * autoconf 2.57 or later
38 * automake 1.7 or later
39 * libtool 1.4 or later
40 * OpenSSL v0.9.7 or later
DRC2c0ea902010-04-16 07:33:41 +000041 * Python v2.3 or later
42 * zlib v1.2 or later
DRC2c0ea902010-04-16 07:33:41 +000043
DRC69854b42011-05-13 09:31:24 +000044 * pkgconfig 0.20 or later
45 If you are using an older RPM-based system which does not meet this
46 minimum requirement (such as Red Hat Enterprise Linux 4), then you can
47 build pkgconfig 0.20 from the Fedora 5 source RPM:
48 http://archive.fedoraproject.org/pub/archive/fedora/linux/core/5/source/SRPMS/pkgconfig-0.20-2.2.1.src.rpm
49
DRC69854b42011-05-13 09:31:24 +000050 * gettext 0.14.4 or later
51 If you are using an older RPM-based system which does not meet this
52 minimum requirement (such as Red Hat Enterprise Linux 4), then you can
53 build gettext 0.14.5 from the Fedora 5 source RPM:
54 http://archive.fedoraproject.org/pub/archive/fedora/linux/core/5/source/SRPMS/gettext-0.14.5-3.src.rpm
55 NOTE: gcj and libgcj are required when building the above source RPM.
DRC2b0b1942011-02-09 03:10:44 +000056
DRC2c0ea902010-04-16 07:33:41 +000057
DRC667df922011-06-23 10:11:22 +000058============================
59Build Requirements (Windows)
60============================
DRC180c0162010-10-27 07:20:27 +000061
DRCccc09692011-11-08 06:57:58 +000062-- MinGW or MinGW-w64
DRC180c0162010-10-27 07:20:27 +000063
DRC180c0162010-10-27 07:20:27 +000064-- Inno Setup (needed to build the TigerVNC installer)
65 Inno Setup can be downloaded from http://www.jrsoftware.org/isinfo.php.
66 You also need the Inno Setup Preprocessor, which is available in the
67 Inno Setup QuickStart Pack.
68
69 Add the directory containing iscc.exe (for instance,
70 C:\Program Files\Inno Setup 5) to the system or user PATH environment
71 variable prior to building TigerVNC.
72
DRC667df922011-06-23 10:11:22 +000073
DRC15b6e052011-10-06 01:20:52 +000074=========================
75Build Requirements (Java)
76=========================
77
78-- Sun/Oracle JDK v5 or later or OpenJDK
79
80-- See "Building Java Support" below.
81
82
Peter Åstrand956a6362012-08-09 07:33:08 +000083=============
84Building FLTK
85=============
86
Pierre Ossman1d36ed82014-08-22 14:41:03 +020087TigerVNC requires FLTK 1.3.2 (or later). Although it will build and work
88with plain 1.3.2, to get full functionality and the best behaviour you
Pierre Ossmanc656bac2012-08-17 08:10:27 +000089need to build a patched version:
Peter Åstrand956a6362012-08-09 07:33:08 +000090
Peter Åstrande7370bd2013-01-22 08:11:05 +0000911. Check out FLTK 1.3.2 using Subversion:
92$ svn co http://svn.easysw.com/public/fltk/fltk/tags/release-1.3.2 fltk-1.3.2
Peter Åstrand956a6362012-08-09 07:33:08 +000093
Pierre Ossman2f11bd92014-08-22 14:43:33 +0200942. For full functionality, apply patches. All patches can be found in
95 the contrib/fltk/ directory. There are also some general fixes to
96 FLTK that can be found in the contrib/fltk/fixes/ directory that
97 might be useful.
Brian Hinz1ff04d12013-11-28 16:26:08 +000098
Peter Åstrand956a6362012-08-09 07:33:08 +0000993. Use CMake to build FLTK using the same procedures described below for
100 building TigerVNC. The recipes in the "Build Recipes" section also apply.
Peter Åstrandfc3e86e2013-01-07 09:59:00 +0000101 If you want optimized code, make sure to build with
102 -DCMAKE_BUILD_TYPE=Release.
Peter Åstrand956a6362012-08-09 07:33:08 +0000103
1044. (optional) Use 'make install' to install FLTK into a directory of your
105 choosing.
106
1075. When building TigerVNC, set the FLTK_FLUID_EXECUTABLE CMake variable to the
108 location of the fluid executable that was built in Step 3 or installed in
109 Step 4. This gives CMake a hint as to where to find the FLTK library.
Pierre Ossmanbbb0c612012-08-17 08:05:59 +0000110
Peter Åstrand956a6362012-08-09 07:33:08 +00001116. If you did not install FLTK, then set the FLTK_INCLUDE_DIR CMake variable to
112 the location of the FLTK source directory.
113
114
DRC180c0162010-10-27 07:20:27 +0000115==================
116Out-of-Tree Builds
117==================
118
119Binary objects, libraries, and executables are generated in the same directory
120from which cmake was executed (the "binary directory"), and this directory need
121not necessarily be the same as the TigerVNC source directory. You can create
122multiple independent binary directories, in which different versions of
123TigerVNC can be built from the same source tree using different compilers or
124settings. In the sections below, {build_directory} refers to the binary
125directory, whereas {source_directory} refers to the TigerVNC source directory.
126For in-tree builds, these directories are the same.
127
128
129=================
130Building TigerVNC
131=================
132
133
DRC62f3a662011-08-24 00:03:31 +0000134Building the TigerVNC Viewer on Unix/Mac Systems
135------------------------------------------------
DRC667df922011-06-23 10:11:22 +0000136
137The following procedure will build the TigerVNC Viewer on Linux and Unix
138systems. On 64-bit systems, this will build a 64-bit version of TigerVNC. See
139"Build Recipes" for specific build instructions for building a 32-bit version
140of TigerVNC on 64-bit systems.
141
142 cd {build_directory}
DRC240a5ff2011-07-06 07:28:30 +0000143 cmake -G "Unix Makefiles" [additional CMake flags] {source_directory}
DRC667df922011-06-23 10:11:22 +0000144 make
145
DRC62f3a662011-08-24 00:03:31 +0000146
147Building the TigerVNC Server on Modern Unix/Linux Systems
148---------------------------------------------------------
149
DRC667df922011-06-23 10:11:22 +0000150Building the TigerVNC Server (Xvnc) is a bit trickier. On newer systems
151containing Xorg 7.4 or later (such as Fedora), Xvnc is typically built to use
152the X11 shared libraries provided with the system. The procedure for this is
DRC62f3a662011-08-24 00:03:31 +0000153system-specific, since it requires specifying such things as font directories,
154but the general outline is as follows (this procedure assumes that the viewer
155has already been built, per above.)
156
157 > cd {build_directory}
158
159 If performing an out-of-tree build:
160 > mkdir unix
161 > cp -R {source_directory}/unix/xserver unix/
162
163 > cp -R {xorg_source}/* unix/xserver/
164 (NOTE: {xorg_source} is the directory containing the Xorg source for the
165 machine on which you are building TigerVNC. The most recent versions of
166 Red Hat/CentOS/Fedora, for instance, provide an RPM called
167 "xorg-x11-server-source", which installs the Xorg source under
168 /usr/share/xorg-x11-server-source.)
169
170 > cd unix/xserver/
171 > patch -p1 < {source_directory}/unix/xserver{version}.patch
172 (where {version} matches the X server version you are building, such as
173 "17" for version 1.7.x.)
174 > autoreconf -fiv
175
Peter Åstrand01b24332011-10-31 08:14:40 +0000176 > ./configure --with-pic --without-dtrace --disable-static --disable-dri \
DRC62f3a662011-08-24 00:03:31 +0000177 --disable-xinerama --disable-xvfb --disable-xnest --disable-xorg \
178 --disable-dmx --disable-xwin --disable-xephyr --disable-kdrive \
179 --disable-config-dbus --disable-config-hal --disable-config-udev \
180 --disable-dri2 --enable-install-libxf86config --enable-glx \
181 --with-default-font-path="catalogue:/etc/X11/fontpath.d,built-ins" \
182 --with-fontdir=/usr/share/X11/fonts \
183 --with-xkb-path=/usr/share/X11/xkb \
184 --with-xkb-output=/var/lib/xkb \
DRC0bb7e132011-08-24 00:26:54 +0000185 --with-xkb-bin-directory=/usr/bin \
DRC62f3a662011-08-24 00:03:31 +0000186 --with-serverconfig-path=/usr/lib[64]/xorg \
187 --with-dri-driver-path=/usr/lib[64]/dri \
188 {additional configure options}
189 (NOTE: This is merely an example that works with Red Hat Enterprise/CentOS
190 6 and recent Fedora releases. You should customize it for your particular
191 system. In particular, it will be necessary to customize the font, XKB,
192 and DRI directories.)
193
194 > make TIGERVNC_SRCDIR={source_directory}
195
196
197Building the TigerVNC Server on Legacy Unix/Linux Systems
198---------------------------------------------------------
DRC667df922011-06-23 10:11:22 +0000199
200Those using systems with older versions of Xorg must build a "legacy-friendly"
201version of the TigerVNC Server. This is accomplished by downloading and
202building the more recent Xorg modules in a local directory and then building
203Xvnc such that it links against the local build of these libraries, not the X11
204libraries installed on the system. The "build-xorg" script in the TigerVNC
205source distribution (located under unix/) automates this process.
206
207The following procedure will build both the TigerVNC Viewer and a
208"legacy-friendly" version of the TigerVNC Server:
209
210 cd {build_directory}
211 sh {source_directory}/unix/build-xorg init
212 sh {source_directory}/unix/build-xorg build [additional CMake flags]
213
214build-xorg generates a version of Xvnc that has no external dependencies on the
215X11 shared libraries or any other distribution-specific shared libraries. This
216version of Xvnc should be transportable across multiple O/S distributions.
217build-xorg should work on Red Hat Enterprise 4, its contemporaries, and later
218systems. It probably will not work on older systems. It has not been tested
219on non-Linux systems (yet).
220
221build-xorg can also be used to rebuild just the TigerVNC Server and Viewer,
222once the X11 modules and other dependencies have been built for the first time.
223This is convenient for testing changes that just apply to the TigerVNC source
224code. To accomplish this, run:
225
226 sh {source_directory}/unix/build-xorg rebuild [additional make flags]
227
228For instance,
229
230 sh {source_directory}/unix/build-xorg rebuild clean
231
232will clean both the Xvnc and vncviewer builds without destroying any of the
233build configuration or module dependencies.
234
235
DRCe4e604f2011-10-01 17:54:36 +0000236Building the Windows TigerVNC Viewer with MinGW
237-----------------------------------------------
DRC180c0162010-10-27 07:20:27 +0000238
DRCccc09692011-11-08 06:57:58 +0000239If building the Windows version of TigerVNC on a Windows build system, use
240the following procedure.
241
DRC180c0162010-10-27 07:20:27 +0000242 cd {build_directory}
DRC240a5ff2011-07-06 07:28:30 +0000243 cmake -G "MSYS Makefiles" [additional CMake flags] {source_directory}
DRC180c0162010-10-27 07:20:27 +0000244 make
245
DRCccc09692011-11-08 06:57:58 +0000246If cross-compiling on a Unix/Linux system, then see the "Build Recipes" section
247below.
DRC180c0162010-10-27 07:20:27 +0000248
249
250Debug Build
251-----------
252
DRCccc09692011-11-08 06:57:58 +0000253Add "-DCMAKE_BUILD_TYPE=Debug" to the CMake command line.
DRC180c0162010-10-27 07:20:27 +0000254
255
DRCe4e604f2011-10-01 17:54:36 +0000256Self-Contained GCC Build
257------------------------
DRC8290dd62011-02-10 22:54:36 +0000258
DRCe4e604f2011-10-01 17:54:36 +0000259If TigerVNC is built using GCC (including MinGW), then it may depend on the
260libgcc or libstdc++ dynamic libraries. To eliminate this dependency, add
DRC8290dd62011-02-10 22:54:36 +0000261
DRCe4e604f2011-10-01 17:54:36 +0000262 -DBUILD_STATIC=1
DRC8290dd62011-02-10 22:54:36 +0000263
Adam Tkacf586b842011-04-27 11:20:18 +0000264to the CMake command line.
DRC8290dd62011-02-10 22:54:36 +0000265
266
DRCce355e32011-06-24 04:58:01 +0000267======================================
DRC240a5ff2011-07-06 07:28:30 +0000268Building High-Performance JPEG Support
269======================================
270
271In order to achieve its high levels of performance, TigerVNC relies on
272libjpeg-turbo (http://www.libjpeg-turbo.org), a derivative of libjpeg which
273uses SIMD instructions to accelerate baseline JPEG compression and
274decompression. If you are building TigerVNC on an operating system that
275includes libjpeg-turbo as a system library (for instance, Fedora 14 and later),
276then the TigerVNC build system should detect the system version of
277libjpeg-turbo automatically and link against it. However, this produces a
278version of TigerVNC that depends on the libjpeg-turbo dynamic libraries, and
279thus the TigerVNC binaries are not portable.
280
281To build a fully portable, cross-compatible version of TigerVNC with
282high-performance JPEG support, it is necessary to link against the
DRCccc09692011-11-08 06:57:58 +0000283libjpeg-turbo static library. This is also necessary when building the
284Windows or OS X versions of TigerVNC. To link against the libjpeg-turbo static
285library, first install the libjpeg-turbo SDK, which is available from
DRC240a5ff2011-07-06 07:28:30 +0000286https://sourceforge.net/projects/libjpeg-turbo/files/. Next, use the
287JPEG_INCLUDE_DIR and JPEG_LIBRARY CMake variables to specify the location of
288libjpeg-turbo. For example, adding
289
290 -DJPEG_INCLUDE_DIR=/opt/libjpeg-turbo/include \
291 -DJPEG_LIBRARY=/opt/libjpeg-turbo/lib/libjpeg.a
292
293to the CMake command line will link TigerVNC against a static version of
294libjpeg-turbo installed under /opt/TigerVNC (which is the normal install
295location for the libjpeg-turbo SDK on Unix and Linux platforms.) Replace "lib"
296with "lib32" or "lib64" to use the 32-bit or 64-bit version of the library on
29764-bit Linux platforms.
298
DRCccc09692011-11-08 06:57:58 +0000299When building on Windows systems, adding
DRC240a5ff2011-07-06 07:28:30 +0000300
301 -DJPEG_INCLUDE_DIR=/c/libjpeg-turbo-gcc[64]/include \
302 -DJPEG_LIBRARY=/c/libjpeg-turbo-gcc[64]/lib/libjpeg.a
303
304to the CMake command line will link TigerVNC against the static version of
305libjpeg-turbo provided by the libjpeg-turbo SDK for GCC (MinGW.)
306
307CMake will report:
308
309 Performing Test FOUND_LIBJPEG_TURBO - Success
310
311if it successfully finds libjpeg-turbo.
312
313
DRC15b6e052011-10-06 01:20:52 +0000314=====================
315Building Java Support
316=====================
317
318TigerVNC includes a Java version of the TigerVNC Viewer, which can be used on
319any platform that has a Java Runtime Environment (JRE) installed. The Java
320viewer works similarly to the native viewer, but with lower performance.
321
322To build the Java TigerVNC Viewer, add
323
324 -DBUILD_JAVA=1
325
326to the CMake or build-xorg command line. The build system will attempt to find
327an installed Java Development Kit (JDK) and determine the appropriate paths for
328the Java compiler (javac) and the JAR creation utility (jar). You can override
329these paths by setting the Java_JAVAC_EXECUTABLE and Java_JAR_EXECUTABLE CMake
330variables. You can also override the default flags that are passed to javac
331by setting the JAVACFLAGS CMake variable. The build system will look for
332keytool and jarsigner in the same directory as Java_JAR_EXECUTABLE. These
333tools are needed to sign the JAR file, which is necessary to enable certain
334functionality (such as clipboard transfers) when the Java viewer is used as an
335applet.
336
337If the Java viewer is built along with the Windows TigerVNC Server (WinVNC),
338then the build system will embed the Java viewer into WinVNC4.exe so that it
339will automatically be served up using WinVNC's built-in HTTP server.
340Similarly, if the Java viewer is built along with the Unix TigerVNC Server
341(Xvnc), then the build system will include the Java viewer in the server
342tarball.
343
Brian Hinzf88b3ad2013-12-02 02:53:10 +0000344By default, a self-signed certificate will be generated and used to sign the
345jar file. By specifying the following command line arguments to the CMake
346command line, an alternate certificate may be used for signing.
347
348 -DJAVA_KEYSTORE=${keystore_location_or_url}
349 -DJAVA_KEYSTORE_TYPE=${keystore_type} (Default: "jks")
350 -DJAVA_KEY_ALIAS=${keytore_key_alias}
351 -DJAVA_STOREPASS=${keystore_password}
352 -DJAVA_KEYPASS=${keystore_entry_password}
353 -DJAVA_TSA_URL=${url_of_timestamping_authority}
354
355The values of the JAVA_STOREPASS and JAVA_KEYPASS arguments may optionally be
356read from file or environment variables by prefixing the value with ":env "
357or ":file " (see the jarsigner documentation for more info):
358
359 export StorePass=tigervnc
360 export KeyPass=tigervnc
361 cmake \
362 ...
363 -DJAVA_STOREPASS=":env StorePass"
364 -DJAVA_KEYPASS=":env KeyPass"
365
DRC15b6e052011-10-06 01:20:52 +0000366
DRC240a5ff2011-07-06 07:28:30 +0000367======================================
DRCce355e32011-06-24 04:58:01 +0000368Building Native Language Support (NLS)
369======================================
370
DRCccc09692011-11-08 06:57:58 +0000371NLS requires gettext, which is supplied with most Linux distributions and
372with MinGW for Windows and which can easily be built from source on OS X and
373other Unix variants.
DRCce355e32011-06-24 04:58:01 +0000374
375You can override the ICONV_LIBRARIES and LIBINTL_LIBRARY CMake variables to
376specify the locations of libiconv and libintl, respectively. For instance,
377adding
378
379 -DLIBINTL_LIBRARY=/opt/gettext/lib/libintl.a
380
381to the CMake command line would link TigerVNC against a static version of
382libintl located under /opt/gettext. Adding
383
384 -DICONV_INCLUDE_DIR=/mingw/include \
385 -DICONV_LIBRARIES=/mingw/lib/libiconv.a \
386 -DGETTEXT_INCLUDE_DIR=/mingw/include \
387 -DLIBINTL_LIBRARY=/mingw/lib/libintl.a
388
389to the CMake command line would link TigerVNC against the static versions of
390libiconv and libintl included in the MinGW Developer Toolkit.
391
392
DRC180c0162010-10-27 07:20:27 +0000393===================
394Installing TigerVNC
395===================
396
397You can use the build system to install TigerVNC into a directory of your
DRC667df922011-06-23 10:11:22 +0000398choosing. To do this, add:
DRC180c0162010-10-27 07:20:27 +0000399
400 -DCMAKE_INSTALL_PREFIX={install_directory}
401
DRCccc09692011-11-08 06:57:58 +0000402to the CMake command line. Then, you can run 'make install' to build and
403install it.
DRC180c0162010-10-27 07:20:27 +0000404
405If you don't specify CMAKE_INSTALL_PREFIX, then the default is
DRC667df922011-06-23 10:11:22 +0000406c:\Program Files\TigerVNC on Windows and /usr/local on Unix.
DRC180c0162010-10-27 07:20:27 +0000407
408
DRC667df922011-06-23 10:11:22 +0000409=========================
410Creating Release Packages
411=========================
412
413The following commands can be used to create various types of release packages:
414
415
416Unix
417----
418
DRC667df922011-06-23 10:11:22 +0000419make tarball
420
421 Create a binary tarball containing the TigerVNC Viewer
422
423make servertarball
424
425 Create a binary tarball containing both the TigerVNC Server and Viewer
426
427make dmg
428
DRCaab38302011-06-25 20:24:02 +0000429 Create Macintosh disk image file that contains an application bundle of the
430 TigerVNC Viewer
DRC667df922011-06-23 10:11:22 +0000431
DRCaab38302011-06-25 20:24:02 +0000432make udmg
DRC667df922011-06-23 10:11:22 +0000433
434 On 64-bit OS X systems, this creates a version of the Macintosh package and
435 disk image which contains universal i386/x86-64 binaries. You should first
436 configure a 32-bit out-of-tree build of TigerVNC, then configure a 64-bit
437 out-of-tree build, then run 'make udmg' from the 64-bit build directory. The
438 build system will look for the 32-bit build under {source_directory}/osxx86
DRCaab38302011-06-25 20:24:02 +0000439 by default, but you can override this by setting the OSX_X86_BUILD CMake
440 variable to the directory containing your configured 32-bit build. Either
441 the 64-bit or 32-bit build can be configured to be backward compatible by
442 using the instructions in the "Build Recipes" section.
DRC667df922011-06-23 10:11:22 +0000443
444
445Windows
446-------
447
DRCccc09692011-11-08 06:57:58 +0000448make installer
DRC667df922011-06-23 10:11:22 +0000449
DRCccc09692011-11-08 06:57:58 +0000450 Create a Windows installer using Inno Setup. The installer package
451 (TigerVNC[64].exe) will be located under {build_directory}.
DRC667df922011-06-23 10:11:22 +0000452
453
454=============
455Build Recipes
456=============
457
458
45932-bit Build on 64-bit Linux/Unix (including OS X)
460--------------------------------------------------
461
DRCdc4f3542011-08-24 00:30:49 +0000462Set the following environment variables before building TigerVNC.
DRC667df922011-06-23 10:11:22 +0000463
464 CFLAGS='-O3 -m32'
465 CXXFLAGS='-O3 -m32'
466 LDFLAGS=-m32
467
DRCdc4f3542011-08-24 00:30:49 +0000468If you are building the TigerVNC Server on a modern Unix/Linux system, then
469you will also need to pass the appropriate --host argument when configuring the
470X server source (for instance, --host=i686-pc-linux-gnu).
471
DRC667df922011-06-23 10:11:22 +0000472
47364-bit Backward-Compatible Build on 64-bit OS X
474-----------------------------------------------
475
476Add
477
478 -DCMAKE_OSX_SYSROOT=/Developer/SDKs/MacOSX10.5.sdk \
479 -DCMAKE_OSX_DEPLOYMENT_TARGET=10.5
480
481to the CMake command line. The OS X 10.5 SDK must be installed.
482
483
48432-bit Backward-Compatible Build on 64-bit OS X
485-----------------------------------------------
486
487Set the following environment variables:
488
489 CC=gcc-4.0
490 CXX=g++-4.0
491 CFLAGS='-O3 -m32'
492 CXXFLAGS='-O3 -m32'
493 LDFLAGS=-m32
494
495and add
496
497 -DCMAKE_OSX_SYSROOT=/Developer/SDKs/MacOSX10.4u.sdk \
498 -DCMAKE_OSX_DEPLOYMENT_TARGET=10.4
499
500to the CMake command line. The OS X 10.4 SDK must be installed.
DRC180c0162010-10-27 07:20:27 +0000501
502
50364-bit MinGW Build on Cygwin
504----------------------------
505
506 cd {build_directory}
507 CC=/usr/bin/x86_64-w64-mingw32-gcc CXX=/usr/bin/x86_64-w64-mingw32-g++ \
508 RC=/usr/bin/x86_64-w64-mingw32-windres \
509 cmake -G "Unix Makefiles" -DCMAKE_SYSTEM_NAME=Windows \
510 -DCMAKE_AR=/usr/bin/x86_64-w64-mingw32-ar \
511 -DCMAKE_RANLIB=/usr/bin/x86_64-w64-mingw32-ranlib {source_directory}
512 make
513
514This produces a 64-bit build of TigerVNC that does not depend on cygwin1.dll or
515other Cygwin DLL's. The mingw64-x86_64-gcc-core and mingw64-x86_64-gcc-g++
516packages (and their dependencies) must be installed.
517
518
51932-bit MinGW Build on Cygwin
520----------------------------
521
522 cd {build_directory}
523 CC=/usr/bin/i686-w64-mingw32-gcc CXX=/usr/bin/i686-w64-mingw32-g++ \
524 RC=/usr/bin/i686-w64-mingw32-windres \
525 cmake -G "Unix Makefiles" -DCMAKE_SYSTEM_NAME=Windows \
526 -DDCMAKE_AR=/usr/bin/i686-w64-mingw32-ar \
527 -DCMAKE_RANLIB=/usr/bin/i686-w64-mingw32-ranlib {source_directory}
528 make
529
530This produces a 32-bit build of TigerVNC that does not depend on cygwin1.dll or
531other Cygwin DLL's. The mingw64-i686-gcc-core and mingw64-i686-gcc-g++
532packages (and their dependencies) must be installed.
533
534
535MinGW-w64 Build on Windows
536--------------------------
537
538This produces a 64-bit build of TigerVNC using the "native" MinGW-w64 toolchain
539(which is faster than the Cygwin version):
540
541 cd {build_directory}
542 CC={mingw-w64_binary_path}/x86_64-w64-mingw32-gcc \
543 CXX={mingw-w64_binary_path}/x86_64-w64-mingw32-g++ \
544 RC={mingw-w64_binary_path}/x86_64-w64-mingw32-windres \
545 cmake -G "MSYS Makefiles" \
546 -DCMAKE_AR={mingw-w64_binary_path}/x86_64-w64-mingw32-ar \
547 -DCMAKE_RANLIB={mingw-w64_binary_path}/x86_64-w64-mingw32-ranlib \
548 {source_directory}
549 make
550
551
552MinGW Build on Linux
553--------------------
554
555 cd {build_directory}
556 CC={mingw_binary_path}/i386-mingw32-gcc \
557 CXX={mingw_binary_path}/i386-mingw32-g++ \
558 RC={mingw_binary_path}/i386-mingw32-windres \
559 cmake -G "Unix Makefiles" -DCMAKE_SYSTEM_NAME=Windows \
560 -DCMAKE_AR={mingw_binary_path}/i386-mingw32-ar \
561 -DCMAKE_RANLIB={mingw_binary_path}/i386-mingw32-ranlib \
562 {source_directory}
563 make
Brian Hinz1ff04d12013-11-28 16:26:08 +0000564
565
566===============================
567Distribution-Specific Packaging
568===============================
569
570
571RPM Packages for RHEL / CentOS
572------------------------------
573
574The RPM spec files and patches used to create the nightly builds
575and releases can be found in the "contrib/rpm/el{5,6}" directories
576of the TigerVNC subversion trunk. All external source tarballs
577must be fetched manually and placed into the 'SOURCES' directory
578under the rpmbuild root. Additonally, the following macros need
579to be defined:
580
581 EL6:
582 %debug_package %{nil}
583
584 EL5:
585 %dist .el5
586 %_smp_mflags -j3
587 %debug_package %{nil}
588 %__arch_install_post /usr/lib/rpm/check-rpaths /usr/lib/rpm/check-buildroot
589
590
591Debian packages for Ubuntu 12.04LTS
592-----------------------------------
593The debian folder used to create the nightly builds and releases
594can be found in the "contrib/deb/ubuntu-precise" directory of the
595TigerVNC subversion trunk.