DRC | 2c0ea90 | 2010-04-16 07:33:41 +0000 | [diff] [blame] | 1 | ******************************************************************************* |
DRC | 667df92 | 2011-06-23 10:11:22 +0000 | [diff] [blame] | 2 | ** Building TigerVNC |
DRC | 2c0ea90 | 2010-04-16 07:33:41 +0000 | [diff] [blame] | 3 | ******************************************************************************* |
| 4 | |
| 5 | |
DRC | 667df92 | 2011-06-23 10:11:22 +0000 | [diff] [blame] | 6 | ================================ |
| 7 | Build Requirements (All Systems) |
| 8 | ================================ |
DRC | 2c0ea90 | 2010-04-16 07:33:41 +0000 | [diff] [blame] | 9 | |
DRC | 667df92 | 2011-06-23 10:11:22 +0000 | [diff] [blame] | 10 | -- CMake (http://www.cmake.org) v2.8 or later |
| 11 | |
Peter Åstrand | e7370bd | 2013-01-22 08:11:05 +0000 | [diff] [blame] | 12 | -- FLTK 1.3.2 |
Pierre Ossman | c656bac | 2012-08-17 08:10:27 +0000 | [diff] [blame] | 13 | * Must be a patched snapshot to get full functionality |
Peter Åstrand | 956a636 | 2012-08-09 07:33:08 +0000 | [diff] [blame] | 14 | * See "Building FLTK" below. |
| 15 | |
DRC | 69854b4 | 2011-05-13 09:31:24 +0000 | [diff] [blame] | 16 | -- If building TLS support: |
| 17 | * GnuTLS and its dependencies (libgcrypt, libtasn1, libgpg-error) |
| 18 | |
DRC | ce355e3 | 2011-06-24 04:58:01 +0000 | [diff] [blame] | 19 | -- If building native language support (NLS): |
| 20 | * Gnu gettext 0.14.4 or later |
| 21 | * See "Building Native Language Support" below. |
| 22 | |
DRC | 667df92 | 2011-06-23 10:11:22 +0000 | [diff] [blame] | 23 | -- libjpeg-turbo SDK |
DRC | ce355e3 | 2011-06-24 04:58:01 +0000 | [diff] [blame] | 24 | * If your system does not include libjpeg-turbo, then you can download the |
| 25 | SDK from http://sourceforge.net/projects/libjpeg-turbo/files/ |
DRC | 240a5ff | 2011-07-06 07:28:30 +0000 | [diff] [blame] | 26 | * See "Building High-Performance JPEG Support" below. |
DRC | 667df92 | 2011-06-23 10:11:22 +0000 | [diff] [blame] | 27 | |
| 28 | |
| 29 | ========================= |
| 30 | Build Requirements (Unix) |
| 31 | ========================= |
| 32 | |
| 33 | -- Non-Mac platforms: |
| 34 | * X11 development kit |
| 35 | |
DRC | 2c0ea90 | 2010-04-16 07:33:41 +0000 | [diff] [blame] | 36 | -- If building Xvnc: |
DRC | 667df92 | 2011-06-23 10:11:22 +0000 | [diff] [blame] | 37 | * autoconf 2.57 or later |
| 38 | * automake 1.7 or later |
| 39 | * libtool 1.4 or later |
| 40 | * OpenSSL v0.9.7 or later |
DRC | 2c0ea90 | 2010-04-16 07:33:41 +0000 | [diff] [blame] | 41 | * Python v2.3 or later |
| 42 | * zlib v1.2 or later |
DRC | 2c0ea90 | 2010-04-16 07:33:41 +0000 | [diff] [blame] | 43 | |
DRC | 69854b4 | 2011-05-13 09:31:24 +0000 | [diff] [blame] | 44 | * 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 | |
DRC | 69854b4 | 2011-05-13 09:31:24 +0000 | [diff] [blame] | 50 | * 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. |
DRC | 2b0b194 | 2011-02-09 03:10:44 +0000 | [diff] [blame] | 56 | |
DRC | 2c0ea90 | 2010-04-16 07:33:41 +0000 | [diff] [blame] | 57 | |
DRC | 667df92 | 2011-06-23 10:11:22 +0000 | [diff] [blame] | 58 | ============================ |
| 59 | Build Requirements (Windows) |
| 60 | ============================ |
DRC | 180c016 | 2010-10-27 07:20:27 +0000 | [diff] [blame] | 61 | |
DRC | ccc0969 | 2011-11-08 06:57:58 +0000 | [diff] [blame] | 62 | -- MinGW or MinGW-w64 |
DRC | 180c016 | 2010-10-27 07:20:27 +0000 | [diff] [blame] | 63 | |
DRC | 180c016 | 2010-10-27 07:20:27 +0000 | [diff] [blame] | 64 | -- 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 | |
DRC | 667df92 | 2011-06-23 10:11:22 +0000 | [diff] [blame] | 73 | |
DRC | 15b6e05 | 2011-10-06 01:20:52 +0000 | [diff] [blame] | 74 | ========================= |
| 75 | Build Requirements (Java) |
| 76 | ========================= |
| 77 | |
| 78 | -- Sun/Oracle JDK v5 or later or OpenJDK |
| 79 | |
| 80 | -- See "Building Java Support" below. |
| 81 | |
| 82 | |
Peter Åstrand | 956a636 | 2012-08-09 07:33:08 +0000 | [diff] [blame] | 83 | ============= |
| 84 | Building FLTK |
| 85 | ============= |
| 86 | |
Pierre Ossman | c656bac | 2012-08-17 08:10:27 +0000 | [diff] [blame] | 87 | TigerVNC requires FLTK 1.3.0 (or later). Although it will build and work |
| 88 | with plain 1.3.0, to get full functionality and the best behaviour you |
| 89 | need to build a patched version: |
Peter Åstrand | 956a636 | 2012-08-09 07:33:08 +0000 | [diff] [blame] | 90 | |
Peter Åstrand | e7370bd | 2013-01-22 08:11:05 +0000 | [diff] [blame] | 91 | 1. 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 Åstrand | 956a636 | 2012-08-09 07:33:08 +0000 | [diff] [blame] | 93 | |
Peter Åstrand | e7370bd | 2013-01-22 08:11:05 +0000 | [diff] [blame] | 94 | 2. For full functionality, apply patches. Here's a shell script to do |
| 95 | that: |
Peter Åstrand | 956a636 | 2012-08-09 07:33:08 +0000 | [diff] [blame] | 96 | |
Peter Åstrand | e7370bd | 2013-01-22 08:11:05 +0000 | [diff] [blame] | 97 | #!/bin/bash |
| 98 | set -e |
| 99 | apply_patch() |
| 100 | { |
| 101 | rm -f $2 |
| 102 | wget http://www.fltk.org/strfiles/$1/$2 |
| 103 | patch -p1 < $2 |
| 104 | } |
Peter Åstrand | 956a636 | 2012-08-09 07:33:08 +0000 | [diff] [blame] | 105 | |
Peter Åstrand | 578ea4d | 2013-01-22 08:08:10 +0000 | [diff] [blame] | 106 | # Export dead key information from FLTK to the apps |
| 107 | # http://www.fltk.org/str.php?L2599 |
Peter Åstrand | e7370bd | 2013-01-22 08:11:05 +0000 | [diff] [blame] | 108 | apply_patch 2599 fltk-1_v4.3.x-keyboard-x11.patch |
| 109 | apply_patch 2599 fltk-1_v4.3.x-keyboard-win32.patch |
| 110 | apply_patch 2599 fltk-1_v6.3.x-keyboard-osx.patch |
Peter Åstrand | 956a636 | 2012-08-09 07:33:08 +0000 | [diff] [blame] | 111 | |
Peter Åstrand | 578ea4d | 2013-01-22 08:08:10 +0000 | [diff] [blame] | 112 | # Notify applications of changes to the clipboard |
| 113 | # http://www.fltk.org/str.php?L2636 |
Peter Åstrand | e7370bd | 2013-01-22 08:11:05 +0000 | [diff] [blame] | 114 | apply_patch 2636 fltk-1.3.x-clipboard.patch |
Pierre Ossman | 7adc488 | 2013-09-05 14:27:21 +0000 | [diff] [blame] | 115 | apply_patch 2636 fltk-1_v6.3.x-clipboard-x11.patch |
Peter Åstrand | e7370bd | 2013-01-22 08:11:05 +0000 | [diff] [blame] | 116 | apply_patch 2636 fltk-1_v3.3.x-clipboard-win32-fix.patch |
| 117 | apply_patch 2636 fltk-1_v2.3.x-clipboard-win32.patch |
| 118 | apply_patch 2636 fltk-1_v2.3.x-clipboard-osx.patch |
Peter Åstrand | 956a636 | 2012-08-09 07:33:08 +0000 | [diff] [blame] | 119 | |
Peter Åstrand | 578ea4d | 2013-01-22 08:08:10 +0000 | [diff] [blame] | 120 | # Ability to convert a Fl_Pixmap to a Fl_RGB_Image |
| 121 | # http://www.fltk.org/str.php?L2659 |
Peter Åstrand | e7370bd | 2013-01-22 08:11:05 +0000 | [diff] [blame] | 122 | apply_patch 2659 pixmap_v2.patch |
Peter Åstrand | 956a636 | 2012-08-09 07:33:08 +0000 | [diff] [blame] | 123 | |
Peter Åstrand | 578ea4d | 2013-01-22 08:08:10 +0000 | [diff] [blame] | 124 | # Support for custom cursors |
| 125 | # http://www.fltk.org/str.php?L2660 |
Peter Åstrand | 923c5fe | 2013-02-05 13:38:06 +0000 | [diff] [blame] | 126 | apply_patch 2660 fltk-1_v5.3.x-cursor.patch |
Peter Åstrand | 956a636 | 2012-08-09 07:33:08 +0000 | [diff] [blame] | 127 | |
Peter Åstrand | 578ea4d | 2013-01-22 08:08:10 +0000 | [diff] [blame] | 128 | # Improve modality interaction with WM |
| 129 | # http://www.fltk.org/str.php?L2802 |
Peter Åstrand | e7370bd | 2013-01-22 08:11:05 +0000 | [diff] [blame] | 130 | apply_patch 2802 fltk-1_v2.3.0-modal.patch |
Peter Åstrand | 956a636 | 2012-08-09 07:33:08 +0000 | [diff] [blame] | 131 | |
Peter Åstrand | 578ea4d | 2013-01-22 08:08:10 +0000 | [diff] [blame] | 132 | # Window icons |
| 133 | # http://www.fltk.org/str.php?L2816 |
Peter Åstrand | e7370bd | 2013-01-22 08:11:05 +0000 | [diff] [blame] | 134 | apply_patch 2816 fltk-1_v3.3.0-icons.patch |
Peter Åstrand | 956a636 | 2012-08-09 07:33:08 +0000 | [diff] [blame] | 135 | |
Peter Åstrand | 578ea4d | 2013-01-22 08:08:10 +0000 | [diff] [blame] | 136 | # Multihead |
| 137 | # http://fltk.org/str.php?L2860 |
Peter Åstrand | e7370bd | 2013-01-22 08:11:05 +0000 | [diff] [blame] | 138 | apply_patch 2860 fltk-1.3.x-screen_num.patch |
| 139 | apply_patch 2860 fltk-1_v3.3.x-multihead.patch |
Peter Åstrand | 956a636 | 2012-08-09 07:33:08 +0000 | [diff] [blame] | 140 | |
Brian Hinz | 1ff04d1 | 2013-11-28 16:26:08 +0000 | [diff] [blame] | 141 | ### END SCRIPT ### |
| 142 | |
Peter Åstrand | 956a636 | 2012-08-09 07:33:08 +0000 | [diff] [blame] | 143 | 3. Use CMake to build FLTK using the same procedures described below for |
| 144 | building TigerVNC. The recipes in the "Build Recipes" section also apply. |
Peter Åstrand | fc3e86e | 2013-01-07 09:59:00 +0000 | [diff] [blame] | 145 | If you want optimized code, make sure to build with |
| 146 | -DCMAKE_BUILD_TYPE=Release. |
Peter Åstrand | 956a636 | 2012-08-09 07:33:08 +0000 | [diff] [blame] | 147 | |
| 148 | 4. (optional) Use 'make install' to install FLTK into a directory of your |
| 149 | choosing. |
| 150 | |
| 151 | 5. When building TigerVNC, set the FLTK_FLUID_EXECUTABLE CMake variable to the |
| 152 | location of the fluid executable that was built in Step 3 or installed in |
| 153 | Step 4. This gives CMake a hint as to where to find the FLTK library. |
Pierre Ossman | bbb0c61 | 2012-08-17 08:05:59 +0000 | [diff] [blame] | 154 | |
Peter Åstrand | 956a636 | 2012-08-09 07:33:08 +0000 | [diff] [blame] | 155 | 6. If you did not install FLTK, then set the FLTK_INCLUDE_DIR CMake variable to |
| 156 | the location of the FLTK source directory. |
| 157 | |
| 158 | |
DRC | 180c016 | 2010-10-27 07:20:27 +0000 | [diff] [blame] | 159 | ================== |
| 160 | Out-of-Tree Builds |
| 161 | ================== |
| 162 | |
| 163 | Binary objects, libraries, and executables are generated in the same directory |
| 164 | from which cmake was executed (the "binary directory"), and this directory need |
| 165 | not necessarily be the same as the TigerVNC source directory. You can create |
| 166 | multiple independent binary directories, in which different versions of |
| 167 | TigerVNC can be built from the same source tree using different compilers or |
| 168 | settings. In the sections below, {build_directory} refers to the binary |
| 169 | directory, whereas {source_directory} refers to the TigerVNC source directory. |
| 170 | For in-tree builds, these directories are the same. |
| 171 | |
| 172 | |
| 173 | ================= |
| 174 | Building TigerVNC |
| 175 | ================= |
| 176 | |
| 177 | |
DRC | 62f3a66 | 2011-08-24 00:03:31 +0000 | [diff] [blame] | 178 | Building the TigerVNC Viewer on Unix/Mac Systems |
| 179 | ------------------------------------------------ |
DRC | 667df92 | 2011-06-23 10:11:22 +0000 | [diff] [blame] | 180 | |
| 181 | The following procedure will build the TigerVNC Viewer on Linux and Unix |
| 182 | systems. On 64-bit systems, this will build a 64-bit version of TigerVNC. See |
| 183 | "Build Recipes" for specific build instructions for building a 32-bit version |
| 184 | of TigerVNC on 64-bit systems. |
| 185 | |
| 186 | cd {build_directory} |
DRC | 240a5ff | 2011-07-06 07:28:30 +0000 | [diff] [blame] | 187 | cmake -G "Unix Makefiles" [additional CMake flags] {source_directory} |
DRC | 667df92 | 2011-06-23 10:11:22 +0000 | [diff] [blame] | 188 | make |
| 189 | |
DRC | 62f3a66 | 2011-08-24 00:03:31 +0000 | [diff] [blame] | 190 | |
| 191 | Building the TigerVNC Server on Modern Unix/Linux Systems |
| 192 | --------------------------------------------------------- |
| 193 | |
DRC | 667df92 | 2011-06-23 10:11:22 +0000 | [diff] [blame] | 194 | Building the TigerVNC Server (Xvnc) is a bit trickier. On newer systems |
| 195 | containing Xorg 7.4 or later (such as Fedora), Xvnc is typically built to use |
| 196 | the X11 shared libraries provided with the system. The procedure for this is |
DRC | 62f3a66 | 2011-08-24 00:03:31 +0000 | [diff] [blame] | 197 | system-specific, since it requires specifying such things as font directories, |
| 198 | but the general outline is as follows (this procedure assumes that the viewer |
| 199 | has already been built, per above.) |
| 200 | |
| 201 | > cd {build_directory} |
| 202 | |
| 203 | If performing an out-of-tree build: |
| 204 | > mkdir unix |
| 205 | > cp -R {source_directory}/unix/xserver unix/ |
| 206 | |
| 207 | > cp -R {xorg_source}/* unix/xserver/ |
| 208 | (NOTE: {xorg_source} is the directory containing the Xorg source for the |
| 209 | machine on which you are building TigerVNC. The most recent versions of |
| 210 | Red Hat/CentOS/Fedora, for instance, provide an RPM called |
| 211 | "xorg-x11-server-source", which installs the Xorg source under |
| 212 | /usr/share/xorg-x11-server-source.) |
| 213 | |
| 214 | > cd unix/xserver/ |
| 215 | > patch -p1 < {source_directory}/unix/xserver{version}.patch |
| 216 | (where {version} matches the X server version you are building, such as |
| 217 | "17" for version 1.7.x.) |
| 218 | > autoreconf -fiv |
| 219 | |
Peter Åstrand | 01b2433 | 2011-10-31 08:14:40 +0000 | [diff] [blame] | 220 | > ./configure --with-pic --without-dtrace --disable-static --disable-dri \ |
DRC | 62f3a66 | 2011-08-24 00:03:31 +0000 | [diff] [blame] | 221 | --disable-xinerama --disable-xvfb --disable-xnest --disable-xorg \ |
| 222 | --disable-dmx --disable-xwin --disable-xephyr --disable-kdrive \ |
| 223 | --disable-config-dbus --disable-config-hal --disable-config-udev \ |
| 224 | --disable-dri2 --enable-install-libxf86config --enable-glx \ |
| 225 | --with-default-font-path="catalogue:/etc/X11/fontpath.d,built-ins" \ |
| 226 | --with-fontdir=/usr/share/X11/fonts \ |
| 227 | --with-xkb-path=/usr/share/X11/xkb \ |
| 228 | --with-xkb-output=/var/lib/xkb \ |
DRC | 0bb7e13 | 2011-08-24 00:26:54 +0000 | [diff] [blame] | 229 | --with-xkb-bin-directory=/usr/bin \ |
DRC | 62f3a66 | 2011-08-24 00:03:31 +0000 | [diff] [blame] | 230 | --with-serverconfig-path=/usr/lib[64]/xorg \ |
| 231 | --with-dri-driver-path=/usr/lib[64]/dri \ |
| 232 | {additional configure options} |
| 233 | (NOTE: This is merely an example that works with Red Hat Enterprise/CentOS |
| 234 | 6 and recent Fedora releases. You should customize it for your particular |
| 235 | system. In particular, it will be necessary to customize the font, XKB, |
| 236 | and DRI directories.) |
| 237 | |
| 238 | > make TIGERVNC_SRCDIR={source_directory} |
| 239 | |
| 240 | |
| 241 | Building the TigerVNC Server on Legacy Unix/Linux Systems |
| 242 | --------------------------------------------------------- |
DRC | 667df92 | 2011-06-23 10:11:22 +0000 | [diff] [blame] | 243 | |
| 244 | Those using systems with older versions of Xorg must build a "legacy-friendly" |
| 245 | version of the TigerVNC Server. This is accomplished by downloading and |
| 246 | building the more recent Xorg modules in a local directory and then building |
| 247 | Xvnc such that it links against the local build of these libraries, not the X11 |
| 248 | libraries installed on the system. The "build-xorg" script in the TigerVNC |
| 249 | source distribution (located under unix/) automates this process. |
| 250 | |
| 251 | The following procedure will build both the TigerVNC Viewer and a |
| 252 | "legacy-friendly" version of the TigerVNC Server: |
| 253 | |
| 254 | cd {build_directory} |
| 255 | sh {source_directory}/unix/build-xorg init |
| 256 | sh {source_directory}/unix/build-xorg build [additional CMake flags] |
| 257 | |
| 258 | build-xorg generates a version of Xvnc that has no external dependencies on the |
| 259 | X11 shared libraries or any other distribution-specific shared libraries. This |
| 260 | version of Xvnc should be transportable across multiple O/S distributions. |
| 261 | build-xorg should work on Red Hat Enterprise 4, its contemporaries, and later |
| 262 | systems. It probably will not work on older systems. It has not been tested |
| 263 | on non-Linux systems (yet). |
| 264 | |
| 265 | build-xorg can also be used to rebuild just the TigerVNC Server and Viewer, |
| 266 | once the X11 modules and other dependencies have been built for the first time. |
| 267 | This is convenient for testing changes that just apply to the TigerVNC source |
| 268 | code. To accomplish this, run: |
| 269 | |
| 270 | sh {source_directory}/unix/build-xorg rebuild [additional make flags] |
| 271 | |
| 272 | For instance, |
| 273 | |
| 274 | sh {source_directory}/unix/build-xorg rebuild clean |
| 275 | |
| 276 | will clean both the Xvnc and vncviewer builds without destroying any of the |
| 277 | build configuration or module dependencies. |
| 278 | |
| 279 | |
DRC | e4e604f | 2011-10-01 17:54:36 +0000 | [diff] [blame] | 280 | Building the Windows TigerVNC Viewer with MinGW |
| 281 | ----------------------------------------------- |
DRC | 180c016 | 2010-10-27 07:20:27 +0000 | [diff] [blame] | 282 | |
DRC | ccc0969 | 2011-11-08 06:57:58 +0000 | [diff] [blame] | 283 | If building the Windows version of TigerVNC on a Windows build system, use |
| 284 | the following procedure. |
| 285 | |
DRC | 180c016 | 2010-10-27 07:20:27 +0000 | [diff] [blame] | 286 | cd {build_directory} |
DRC | 240a5ff | 2011-07-06 07:28:30 +0000 | [diff] [blame] | 287 | cmake -G "MSYS Makefiles" [additional CMake flags] {source_directory} |
DRC | 180c016 | 2010-10-27 07:20:27 +0000 | [diff] [blame] | 288 | make |
| 289 | |
DRC | ccc0969 | 2011-11-08 06:57:58 +0000 | [diff] [blame] | 290 | If cross-compiling on a Unix/Linux system, then see the "Build Recipes" section |
| 291 | below. |
DRC | 180c016 | 2010-10-27 07:20:27 +0000 | [diff] [blame] | 292 | |
| 293 | |
| 294 | Debug Build |
| 295 | ----------- |
| 296 | |
DRC | ccc0969 | 2011-11-08 06:57:58 +0000 | [diff] [blame] | 297 | Add "-DCMAKE_BUILD_TYPE=Debug" to the CMake command line. |
DRC | 180c016 | 2010-10-27 07:20:27 +0000 | [diff] [blame] | 298 | |
| 299 | |
DRC | e4e604f | 2011-10-01 17:54:36 +0000 | [diff] [blame] | 300 | Self-Contained GCC Build |
| 301 | ------------------------ |
DRC | 8290dd6 | 2011-02-10 22:54:36 +0000 | [diff] [blame] | 302 | |
DRC | e4e604f | 2011-10-01 17:54:36 +0000 | [diff] [blame] | 303 | If TigerVNC is built using GCC (including MinGW), then it may depend on the |
| 304 | libgcc or libstdc++ dynamic libraries. To eliminate this dependency, add |
DRC | 8290dd6 | 2011-02-10 22:54:36 +0000 | [diff] [blame] | 305 | |
DRC | e4e604f | 2011-10-01 17:54:36 +0000 | [diff] [blame] | 306 | -DBUILD_STATIC=1 |
DRC | 8290dd6 | 2011-02-10 22:54:36 +0000 | [diff] [blame] | 307 | |
Adam Tkac | f586b84 | 2011-04-27 11:20:18 +0000 | [diff] [blame] | 308 | to the CMake command line. |
DRC | 8290dd6 | 2011-02-10 22:54:36 +0000 | [diff] [blame] | 309 | |
| 310 | |
DRC | ce355e3 | 2011-06-24 04:58:01 +0000 | [diff] [blame] | 311 | ====================================== |
DRC | 240a5ff | 2011-07-06 07:28:30 +0000 | [diff] [blame] | 312 | Building High-Performance JPEG Support |
| 313 | ====================================== |
| 314 | |
| 315 | In order to achieve its high levels of performance, TigerVNC relies on |
| 316 | libjpeg-turbo (http://www.libjpeg-turbo.org), a derivative of libjpeg which |
| 317 | uses SIMD instructions to accelerate baseline JPEG compression and |
| 318 | decompression. If you are building TigerVNC on an operating system that |
| 319 | includes libjpeg-turbo as a system library (for instance, Fedora 14 and later), |
| 320 | then the TigerVNC build system should detect the system version of |
| 321 | libjpeg-turbo automatically and link against it. However, this produces a |
| 322 | version of TigerVNC that depends on the libjpeg-turbo dynamic libraries, and |
| 323 | thus the TigerVNC binaries are not portable. |
| 324 | |
| 325 | To build a fully portable, cross-compatible version of TigerVNC with |
| 326 | high-performance JPEG support, it is necessary to link against the |
DRC | ccc0969 | 2011-11-08 06:57:58 +0000 | [diff] [blame] | 327 | libjpeg-turbo static library. This is also necessary when building the |
| 328 | Windows or OS X versions of TigerVNC. To link against the libjpeg-turbo static |
| 329 | library, first install the libjpeg-turbo SDK, which is available from |
DRC | 240a5ff | 2011-07-06 07:28:30 +0000 | [diff] [blame] | 330 | https://sourceforge.net/projects/libjpeg-turbo/files/. Next, use the |
| 331 | JPEG_INCLUDE_DIR and JPEG_LIBRARY CMake variables to specify the location of |
| 332 | libjpeg-turbo. For example, adding |
| 333 | |
| 334 | -DJPEG_INCLUDE_DIR=/opt/libjpeg-turbo/include \ |
| 335 | -DJPEG_LIBRARY=/opt/libjpeg-turbo/lib/libjpeg.a |
| 336 | |
| 337 | to the CMake command line will link TigerVNC against a static version of |
| 338 | libjpeg-turbo installed under /opt/TigerVNC (which is the normal install |
| 339 | location for the libjpeg-turbo SDK on Unix and Linux platforms.) Replace "lib" |
| 340 | with "lib32" or "lib64" to use the 32-bit or 64-bit version of the library on |
| 341 | 64-bit Linux platforms. |
| 342 | |
DRC | ccc0969 | 2011-11-08 06:57:58 +0000 | [diff] [blame] | 343 | When building on Windows systems, adding |
DRC | 240a5ff | 2011-07-06 07:28:30 +0000 | [diff] [blame] | 344 | |
| 345 | -DJPEG_INCLUDE_DIR=/c/libjpeg-turbo-gcc[64]/include \ |
| 346 | -DJPEG_LIBRARY=/c/libjpeg-turbo-gcc[64]/lib/libjpeg.a |
| 347 | |
| 348 | to the CMake command line will link TigerVNC against the static version of |
| 349 | libjpeg-turbo provided by the libjpeg-turbo SDK for GCC (MinGW.) |
| 350 | |
| 351 | CMake will report: |
| 352 | |
| 353 | Performing Test FOUND_LIBJPEG_TURBO - Success |
| 354 | |
| 355 | if it successfully finds libjpeg-turbo. |
| 356 | |
| 357 | |
DRC | 15b6e05 | 2011-10-06 01:20:52 +0000 | [diff] [blame] | 358 | ===================== |
| 359 | Building Java Support |
| 360 | ===================== |
| 361 | |
| 362 | TigerVNC includes a Java version of the TigerVNC Viewer, which can be used on |
| 363 | any platform that has a Java Runtime Environment (JRE) installed. The Java |
| 364 | viewer works similarly to the native viewer, but with lower performance. |
| 365 | |
| 366 | To build the Java TigerVNC Viewer, add |
| 367 | |
| 368 | -DBUILD_JAVA=1 |
| 369 | |
| 370 | to the CMake or build-xorg command line. The build system will attempt to find |
| 371 | an installed Java Development Kit (JDK) and determine the appropriate paths for |
| 372 | the Java compiler (javac) and the JAR creation utility (jar). You can override |
| 373 | these paths by setting the Java_JAVAC_EXECUTABLE and Java_JAR_EXECUTABLE CMake |
| 374 | variables. You can also override the default flags that are passed to javac |
| 375 | by setting the JAVACFLAGS CMake variable. The build system will look for |
| 376 | keytool and jarsigner in the same directory as Java_JAR_EXECUTABLE. These |
| 377 | tools are needed to sign the JAR file, which is necessary to enable certain |
| 378 | functionality (such as clipboard transfers) when the Java viewer is used as an |
| 379 | applet. |
| 380 | |
| 381 | If the Java viewer is built along with the Windows TigerVNC Server (WinVNC), |
| 382 | then the build system will embed the Java viewer into WinVNC4.exe so that it |
| 383 | will automatically be served up using WinVNC's built-in HTTP server. |
| 384 | Similarly, if the Java viewer is built along with the Unix TigerVNC Server |
| 385 | (Xvnc), then the build system will include the Java viewer in the server |
| 386 | tarball. |
| 387 | |
Brian Hinz | f88b3ad | 2013-12-02 02:53:10 +0000 | [diff] [blame^] | 388 | By default, a self-signed certificate will be generated and used to sign the |
| 389 | jar file. By specifying the following command line arguments to the CMake |
| 390 | command line, an alternate certificate may be used for signing. |
| 391 | |
| 392 | -DJAVA_KEYSTORE=${keystore_location_or_url} |
| 393 | -DJAVA_KEYSTORE_TYPE=${keystore_type} (Default: "jks") |
| 394 | -DJAVA_KEY_ALIAS=${keytore_key_alias} |
| 395 | -DJAVA_STOREPASS=${keystore_password} |
| 396 | -DJAVA_KEYPASS=${keystore_entry_password} |
| 397 | -DJAVA_TSA_URL=${url_of_timestamping_authority} |
| 398 | |
| 399 | The values of the JAVA_STOREPASS and JAVA_KEYPASS arguments may optionally be |
| 400 | read from file or environment variables by prefixing the value with ":env " |
| 401 | or ":file " (see the jarsigner documentation for more info): |
| 402 | |
| 403 | export StorePass=tigervnc |
| 404 | export KeyPass=tigervnc |
| 405 | cmake \ |
| 406 | ... |
| 407 | -DJAVA_STOREPASS=":env StorePass" |
| 408 | -DJAVA_KEYPASS=":env KeyPass" |
| 409 | |
DRC | 15b6e05 | 2011-10-06 01:20:52 +0000 | [diff] [blame] | 410 | |
DRC | 240a5ff | 2011-07-06 07:28:30 +0000 | [diff] [blame] | 411 | ====================================== |
DRC | ce355e3 | 2011-06-24 04:58:01 +0000 | [diff] [blame] | 412 | Building Native Language Support (NLS) |
| 413 | ====================================== |
| 414 | |
DRC | ccc0969 | 2011-11-08 06:57:58 +0000 | [diff] [blame] | 415 | NLS requires gettext, which is supplied with most Linux distributions and |
| 416 | with MinGW for Windows and which can easily be built from source on OS X and |
| 417 | other Unix variants. |
DRC | ce355e3 | 2011-06-24 04:58:01 +0000 | [diff] [blame] | 418 | |
| 419 | You can override the ICONV_LIBRARIES and LIBINTL_LIBRARY CMake variables to |
| 420 | specify the locations of libiconv and libintl, respectively. For instance, |
| 421 | adding |
| 422 | |
| 423 | -DLIBINTL_LIBRARY=/opt/gettext/lib/libintl.a |
| 424 | |
| 425 | to the CMake command line would link TigerVNC against a static version of |
| 426 | libintl located under /opt/gettext. Adding |
| 427 | |
| 428 | -DICONV_INCLUDE_DIR=/mingw/include \ |
| 429 | -DICONV_LIBRARIES=/mingw/lib/libiconv.a \ |
| 430 | -DGETTEXT_INCLUDE_DIR=/mingw/include \ |
| 431 | -DLIBINTL_LIBRARY=/mingw/lib/libintl.a |
| 432 | |
| 433 | to the CMake command line would link TigerVNC against the static versions of |
| 434 | libiconv and libintl included in the MinGW Developer Toolkit. |
| 435 | |
| 436 | |
| 437 | =============================================== |
| 438 | Building Transport Layer Security (TLS) support |
| 439 | =============================================== |
DRC | 8290dd6 | 2011-02-10 22:54:36 +0000 | [diff] [blame] | 440 | |
Adam Tkac | 445d4ed | 2011-04-27 11:04:01 +0000 | [diff] [blame] | 441 | VeNCrypt (the TigerVNC security and authentication extensions) can be built |
| 442 | with TLS support, which provides built-in encryption for VNC sessions. This |
DRC | ce355e3 | 2011-06-24 04:58:01 +0000 | [diff] [blame] | 443 | requires GnuTLS, which is readily available in many Linux distributions but not |
| 444 | as readily available in binary form on other types of systems. This section |
DRC | 667df92 | 2011-06-23 10:11:22 +0000 | [diff] [blame] | 445 | describes the issues associated with building a version of TigerVNC with TLS |
| 446 | support and how to work around those issues. |
Adam Tkac | f586b84 | 2011-04-27 11:20:18 +0000 | [diff] [blame] | 447 | |
DRC | 667df92 | 2011-06-23 10:11:22 +0000 | [diff] [blame] | 448 | |
| 449 | Unix/Mac |
| 450 | -------- |
| 451 | |
| 452 | In general, if you are building on a Unix-ish platform that has the GnuTLS |
| 453 | libraries and include files installed in the standard system locations, then |
| 454 | the TigerVNC build system should detect the system version of GnuTLS |
| 455 | automatically and link against it. However, this produces a version of |
| 456 | TigerVNC that depends on the GnuTLS dynamic libraries, and thus the TigerVNC |
| 457 | binaries are not portable. |
| 458 | |
DRC | ce355e3 | 2011-06-24 04:58:01 +0000 | [diff] [blame] | 459 | To build a fully portable, cross-compatible version of TigerVNC with TLS |
DRC | 667df92 | 2011-06-23 10:11:22 +0000 | [diff] [blame] | 460 | support, it is necessary to link against the GnuTLS static library (as well |
| 461 | as the static libraries of its dependencies.) If you are lucky enough, then |
| 462 | your O/S distribution may include pre-packaged versions of these static |
| 463 | libraries. Otherwise, it will be necessary to build GnuTLS, libgcrypt, |
| 464 | libtasn1, and libgpg-error from source. |
| 465 | |
| 466 | You can manipulate the GNUTLS_INCLUDE_DIR and GNUTLS_LIBRARY CMake variables to |
DRC | ce355e3 | 2011-06-24 04:58:01 +0000 | [diff] [blame] | 467 | build TigerVNC against a custom build of GnuTLS that is installed in a |
| 468 | non-system directory. For instance, adding |
DRC | 667df92 | 2011-06-23 10:11:22 +0000 | [diff] [blame] | 469 | |
| 470 | -DGNUTLS_INCLUDE_DIR=/opt/gnutls/include \ |
| 471 | -DGNUTLS_LIBRARY='/opt/gnutls/lib/libgnutls.a;/opt/gnutls/lib/libgcrypt.a;/opt/gnutls/lib/libgpg-error.a;/opt/gnutls/lib/libtasn1.a' \ |
| 472 | -DUSE_INCLUDED_ZLIB=1 |
| 473 | |
| 474 | to the CMake or 'build-xorg build' command line will cause TigerVNC to be |
| 475 | statically linked against a custom installation of GnuTLS that resides under |
DRC | ce355e3 | 2011-06-24 04:58:01 +0000 | [diff] [blame] | 476 | /opt/gnutls. GnuTLS depends on zlib, so specifying -DUSE_INCLUDED_ZLIB=1 will |
DRC | 667df92 | 2011-06-23 10:11:22 +0000 | [diff] [blame] | 477 | satisfy that dependency using TigerVNC's in-tree version of zlib, which |
| 478 | prevents TigerVNC from depending on the libz dynamic library. |
| 479 | |
| 480 | |
| 481 | MinGW |
| 482 | ----- |
DRC | 8290dd6 | 2011-02-10 22:54:36 +0000 | [diff] [blame] | 483 | |
| 484 | An installer containing the GnuTLS header files, as well as static and dynamic |
Adam Tkac | f586b84 | 2011-04-27 11:20:18 +0000 | [diff] [blame] | 485 | link libraries for 32-bit MinGW, can be downloaded from the following site: |
DRC | 8290dd6 | 2011-02-10 22:54:36 +0000 | [diff] [blame] | 486 | |
| 487 | http://josefsson.org/gnutls4win/ |
| 488 | |
Adam Tkac | f586b84 | 2011-04-27 11:20:18 +0000 | [diff] [blame] | 489 | As of this writing, GnuTLS cannot be built cleanly with MinGW64 due to the fact |
| 490 | that portions of the code assume an LP64 data model (Windows uses LLP64.) |
| 491 | Thus, it is not possible at this time to produce a Win64 version of TigerVNC |
| 492 | with TLS support. |
DRC | 8290dd6 | 2011-02-10 22:54:36 +0000 | [diff] [blame] | 493 | |
Adam Tkac | f586b84 | 2011-04-27 11:20:18 +0000 | [diff] [blame] | 494 | Whether you use the above installer or build GnuTLS from source, make sure that |
| 495 | you install the libraries and headers into a pathname that doesn't contain |
| 496 | spaces (the installer will try to install under c:\Program Files unless you |
| 497 | tell it otherwise.) If the GnuTLS include path contains spaces, then the MinGW |
| 498 | resource compiler will barf when you try to build TigerVNC. |
| 499 | |
| 500 | You can manipulate the GNUTLS_INCLUDE_DIR and GNUTLS_LIBRARY CMake variables to |
DRC | 8290dd6 | 2011-02-10 22:54:36 +0000 | [diff] [blame] | 501 | specify the directory under which you installed GnuTLS. For instance, adding |
| 502 | |
| 503 | -DGNUTLS_INCLUDE_DIR=/c/gnutls/include \ |
Adam Tkac | f586b84 | 2011-04-27 11:20:18 +0000 | [diff] [blame] | 504 | -DGNUTLS_LIBRARY=/c/gnutls/lib/libgnutls.dll.a |
| 505 | |
| 506 | to the CMake command line when using MinGW will cause TigerVNC to be linked |
| 507 | against GnuTLS DLLs that are installed under c:\gnutls. |
| 508 | |
| 509 | Adding |
| 510 | |
| 511 | -DGNUTLS_INCLUDE_DIR=/c/gnutls/include \ |
DRC | 8290dd6 | 2011-02-10 22:54:36 +0000 | [diff] [blame] | 512 | -DGNUTLS_LIBRARY='/c/gnutls/lib/libgnutls.a;/c/gnutls/lib/libgcrypt.a;/c/gnutls/lib/libtasn1.a;/c/gnutls/lib/libgpg-error.a' |
| 513 | |
Adam Tkac | f586b84 | 2011-04-27 11:20:18 +0000 | [diff] [blame] | 514 | to the CMake command line will cause TigerVNC to be statically linked against |
| 515 | GnuTLS libraries that are installed under c:\gnutls. |
| 516 | |
DRC | 8290dd6 | 2011-02-10 22:54:36 +0000 | [diff] [blame] | 517 | |
DRC | 180c016 | 2010-10-27 07:20:27 +0000 | [diff] [blame] | 518 | =================== |
| 519 | Installing TigerVNC |
| 520 | =================== |
| 521 | |
| 522 | You can use the build system to install TigerVNC into a directory of your |
DRC | 667df92 | 2011-06-23 10:11:22 +0000 | [diff] [blame] | 523 | choosing. To do this, add: |
DRC | 180c016 | 2010-10-27 07:20:27 +0000 | [diff] [blame] | 524 | |
| 525 | -DCMAKE_INSTALL_PREFIX={install_directory} |
| 526 | |
DRC | ccc0969 | 2011-11-08 06:57:58 +0000 | [diff] [blame] | 527 | to the CMake command line. Then, you can run 'make install' to build and |
| 528 | install it. |
DRC | 180c016 | 2010-10-27 07:20:27 +0000 | [diff] [blame] | 529 | |
| 530 | If you don't specify CMAKE_INSTALL_PREFIX, then the default is |
DRC | 667df92 | 2011-06-23 10:11:22 +0000 | [diff] [blame] | 531 | c:\Program Files\TigerVNC on Windows and /usr/local on Unix. |
DRC | 180c016 | 2010-10-27 07:20:27 +0000 | [diff] [blame] | 532 | |
| 533 | |
DRC | 667df92 | 2011-06-23 10:11:22 +0000 | [diff] [blame] | 534 | ========================= |
| 535 | Creating Release Packages |
| 536 | ========================= |
| 537 | |
| 538 | The following commands can be used to create various types of release packages: |
| 539 | |
| 540 | |
| 541 | Unix |
| 542 | ---- |
| 543 | |
DRC | 667df92 | 2011-06-23 10:11:22 +0000 | [diff] [blame] | 544 | make tarball |
| 545 | |
| 546 | Create a binary tarball containing the TigerVNC Viewer |
| 547 | |
| 548 | make servertarball |
| 549 | |
| 550 | Create a binary tarball containing both the TigerVNC Server and Viewer |
| 551 | |
| 552 | make dmg |
| 553 | |
DRC | aab3830 | 2011-06-25 20:24:02 +0000 | [diff] [blame] | 554 | Create Macintosh disk image file that contains an application bundle of the |
| 555 | TigerVNC Viewer |
DRC | 667df92 | 2011-06-23 10:11:22 +0000 | [diff] [blame] | 556 | |
DRC | aab3830 | 2011-06-25 20:24:02 +0000 | [diff] [blame] | 557 | make udmg |
DRC | 667df92 | 2011-06-23 10:11:22 +0000 | [diff] [blame] | 558 | |
| 559 | On 64-bit OS X systems, this creates a version of the Macintosh package and |
| 560 | disk image which contains universal i386/x86-64 binaries. You should first |
| 561 | configure a 32-bit out-of-tree build of TigerVNC, then configure a 64-bit |
| 562 | out-of-tree build, then run 'make udmg' from the 64-bit build directory. The |
| 563 | build system will look for the 32-bit build under {source_directory}/osxx86 |
DRC | aab3830 | 2011-06-25 20:24:02 +0000 | [diff] [blame] | 564 | by default, but you can override this by setting the OSX_X86_BUILD CMake |
| 565 | variable to the directory containing your configured 32-bit build. Either |
| 566 | the 64-bit or 32-bit build can be configured to be backward compatible by |
| 567 | using the instructions in the "Build Recipes" section. |
DRC | 667df92 | 2011-06-23 10:11:22 +0000 | [diff] [blame] | 568 | |
| 569 | |
| 570 | Windows |
| 571 | ------- |
| 572 | |
DRC | ccc0969 | 2011-11-08 06:57:58 +0000 | [diff] [blame] | 573 | make installer |
DRC | 667df92 | 2011-06-23 10:11:22 +0000 | [diff] [blame] | 574 | |
DRC | ccc0969 | 2011-11-08 06:57:58 +0000 | [diff] [blame] | 575 | Create a Windows installer using Inno Setup. The installer package |
| 576 | (TigerVNC[64].exe) will be located under {build_directory}. |
DRC | 667df92 | 2011-06-23 10:11:22 +0000 | [diff] [blame] | 577 | |
| 578 | |
| 579 | ============= |
| 580 | Build Recipes |
| 581 | ============= |
| 582 | |
| 583 | |
| 584 | 32-bit Build on 64-bit Linux/Unix (including OS X) |
| 585 | -------------------------------------------------- |
| 586 | |
DRC | dc4f354 | 2011-08-24 00:30:49 +0000 | [diff] [blame] | 587 | Set the following environment variables before building TigerVNC. |
DRC | 667df92 | 2011-06-23 10:11:22 +0000 | [diff] [blame] | 588 | |
| 589 | CFLAGS='-O3 -m32' |
| 590 | CXXFLAGS='-O3 -m32' |
| 591 | LDFLAGS=-m32 |
| 592 | |
DRC | dc4f354 | 2011-08-24 00:30:49 +0000 | [diff] [blame] | 593 | If you are building the TigerVNC Server on a modern Unix/Linux system, then |
| 594 | you will also need to pass the appropriate --host argument when configuring the |
| 595 | X server source (for instance, --host=i686-pc-linux-gnu). |
| 596 | |
DRC | 667df92 | 2011-06-23 10:11:22 +0000 | [diff] [blame] | 597 | |
| 598 | 64-bit Backward-Compatible Build on 64-bit OS X |
| 599 | ----------------------------------------------- |
| 600 | |
| 601 | Add |
| 602 | |
| 603 | -DCMAKE_OSX_SYSROOT=/Developer/SDKs/MacOSX10.5.sdk \ |
| 604 | -DCMAKE_OSX_DEPLOYMENT_TARGET=10.5 |
| 605 | |
| 606 | to the CMake command line. The OS X 10.5 SDK must be installed. |
| 607 | |
| 608 | |
| 609 | 32-bit Backward-Compatible Build on 64-bit OS X |
| 610 | ----------------------------------------------- |
| 611 | |
| 612 | Set the following environment variables: |
| 613 | |
| 614 | CC=gcc-4.0 |
| 615 | CXX=g++-4.0 |
| 616 | CFLAGS='-O3 -m32' |
| 617 | CXXFLAGS='-O3 -m32' |
| 618 | LDFLAGS=-m32 |
| 619 | |
| 620 | and add |
| 621 | |
| 622 | -DCMAKE_OSX_SYSROOT=/Developer/SDKs/MacOSX10.4u.sdk \ |
| 623 | -DCMAKE_OSX_DEPLOYMENT_TARGET=10.4 |
| 624 | |
| 625 | to the CMake command line. The OS X 10.4 SDK must be installed. |
DRC | 180c016 | 2010-10-27 07:20:27 +0000 | [diff] [blame] | 626 | |
| 627 | |
| 628 | 64-bit MinGW Build on Cygwin |
| 629 | ---------------------------- |
| 630 | |
| 631 | cd {build_directory} |
| 632 | CC=/usr/bin/x86_64-w64-mingw32-gcc CXX=/usr/bin/x86_64-w64-mingw32-g++ \ |
| 633 | RC=/usr/bin/x86_64-w64-mingw32-windres \ |
| 634 | cmake -G "Unix Makefiles" -DCMAKE_SYSTEM_NAME=Windows \ |
| 635 | -DCMAKE_AR=/usr/bin/x86_64-w64-mingw32-ar \ |
| 636 | -DCMAKE_RANLIB=/usr/bin/x86_64-w64-mingw32-ranlib {source_directory} |
| 637 | make |
| 638 | |
| 639 | This produces a 64-bit build of TigerVNC that does not depend on cygwin1.dll or |
| 640 | other Cygwin DLL's. The mingw64-x86_64-gcc-core and mingw64-x86_64-gcc-g++ |
| 641 | packages (and their dependencies) must be installed. |
| 642 | |
| 643 | |
| 644 | 32-bit MinGW Build on Cygwin |
| 645 | ---------------------------- |
| 646 | |
| 647 | cd {build_directory} |
| 648 | CC=/usr/bin/i686-w64-mingw32-gcc CXX=/usr/bin/i686-w64-mingw32-g++ \ |
| 649 | RC=/usr/bin/i686-w64-mingw32-windres \ |
| 650 | cmake -G "Unix Makefiles" -DCMAKE_SYSTEM_NAME=Windows \ |
| 651 | -DDCMAKE_AR=/usr/bin/i686-w64-mingw32-ar \ |
| 652 | -DCMAKE_RANLIB=/usr/bin/i686-w64-mingw32-ranlib {source_directory} |
| 653 | make |
| 654 | |
| 655 | This produces a 32-bit build of TigerVNC that does not depend on cygwin1.dll or |
| 656 | other Cygwin DLL's. The mingw64-i686-gcc-core and mingw64-i686-gcc-g++ |
| 657 | packages (and their dependencies) must be installed. |
| 658 | |
| 659 | |
| 660 | MinGW-w64 Build on Windows |
| 661 | -------------------------- |
| 662 | |
| 663 | This produces a 64-bit build of TigerVNC using the "native" MinGW-w64 toolchain |
| 664 | (which is faster than the Cygwin version): |
| 665 | |
| 666 | cd {build_directory} |
| 667 | CC={mingw-w64_binary_path}/x86_64-w64-mingw32-gcc \ |
| 668 | CXX={mingw-w64_binary_path}/x86_64-w64-mingw32-g++ \ |
| 669 | RC={mingw-w64_binary_path}/x86_64-w64-mingw32-windres \ |
| 670 | cmake -G "MSYS Makefiles" \ |
| 671 | -DCMAKE_AR={mingw-w64_binary_path}/x86_64-w64-mingw32-ar \ |
| 672 | -DCMAKE_RANLIB={mingw-w64_binary_path}/x86_64-w64-mingw32-ranlib \ |
| 673 | {source_directory} |
| 674 | make |
| 675 | |
| 676 | |
| 677 | MinGW Build on Linux |
| 678 | -------------------- |
| 679 | |
| 680 | cd {build_directory} |
| 681 | CC={mingw_binary_path}/i386-mingw32-gcc \ |
| 682 | CXX={mingw_binary_path}/i386-mingw32-g++ \ |
| 683 | RC={mingw_binary_path}/i386-mingw32-windres \ |
| 684 | cmake -G "Unix Makefiles" -DCMAKE_SYSTEM_NAME=Windows \ |
| 685 | -DCMAKE_AR={mingw_binary_path}/i386-mingw32-ar \ |
| 686 | -DCMAKE_RANLIB={mingw_binary_path}/i386-mingw32-ranlib \ |
| 687 | {source_directory} |
| 688 | make |
Brian Hinz | 1ff04d1 | 2013-11-28 16:26:08 +0000 | [diff] [blame] | 689 | |
| 690 | |
| 691 | =============================== |
| 692 | Distribution-Specific Packaging |
| 693 | =============================== |
| 694 | |
| 695 | |
| 696 | RPM Packages for RHEL / CentOS |
| 697 | ------------------------------ |
| 698 | |
| 699 | The RPM spec files and patches used to create the nightly builds |
| 700 | and releases can be found in the "contrib/rpm/el{5,6}" directories |
| 701 | of the TigerVNC subversion trunk. All external source tarballs |
| 702 | must be fetched manually and placed into the 'SOURCES' directory |
| 703 | under the rpmbuild root. Additonally, the following macros need |
| 704 | to be defined: |
| 705 | |
| 706 | EL6: |
| 707 | %debug_package %{nil} |
| 708 | |
| 709 | EL5: |
| 710 | %dist .el5 |
| 711 | %_smp_mflags -j3 |
| 712 | %debug_package %{nil} |
| 713 | %__arch_install_post /usr/lib/rpm/check-rpaths /usr/lib/rpm/check-buildroot |
| 714 | |
| 715 | |
| 716 | Debian packages for Ubuntu 12.04LTS |
| 717 | ----------------------------------- |
| 718 | The debian folder used to create the nightly builds and releases |
| 719 | can be found in the "contrib/deb/ubuntu-precise" directory of the |
| 720 | TigerVNC subversion trunk. |