DRC | 2c0ea90 | 2010-04-16 07:33:41 +0000 | [diff] [blame] | 1 | ******************************************************************************* |
DRC | 180c016 | 2010-10-27 07:20:27 +0000 | [diff] [blame^] | 2 | ** Building on Unix Platforms (including Cygwin) |
DRC | 2c0ea90 | 2010-04-16 07:33:41 +0000 | [diff] [blame] | 3 | ******************************************************************************* |
| 4 | |
| 5 | |
| 6 | ================== |
| 7 | Build Requirements |
| 8 | ================== |
| 9 | |
| 10 | -- autoconf 2.57 or later |
DRC | 2c0ea90 | 2010-04-16 07:33:41 +0000 | [diff] [blame] | 11 | -- automake 1.7 or later |
DRC | 2c0ea90 | 2010-04-16 07:33:41 +0000 | [diff] [blame] | 12 | -- libtool 1.4 or later |
| 13 | |
| 14 | -- NASM |
| 15 | * 0.98 or later is required for a 32-bit build |
| 16 | * NASM 2.05 or later is required for a 64-bit build |
DRC | ef5e17f | 2010-09-30 18:53:42 +0000 | [diff] [blame] | 17 | * NASM 2.07 or later is required for a 64-bit build on OS X. This can be |
DRC | 896a96c | 2010-07-08 07:12:09 +0000 | [diff] [blame] | 18 | obtained from MacPorts (http://www.macports.org/). |
DRC | 2c0ea90 | 2010-04-16 07:33:41 +0000 | [diff] [blame] | 19 | |
DRC | 180c016 | 2010-10-27 07:20:27 +0000 | [diff] [blame^] | 20 | The NASM 2.05 RPMs do not work on older Linux systems, such as Red Hat |
| 21 | Enterprise Linux 4. On such systems, you can easily build and install NASM |
| 22 | 2.05 from the source RPM by executing the following as root: |
DRC | 2c0ea90 | 2010-04-16 07:33:41 +0000 | [diff] [blame] | 23 | |
| 24 | ARCH=`uname -m` |
| 25 | wget http://www.nasm.us/pub/nasm/releasebuilds/2.05.01/nasm-2.05.01-1.src.rpm |
| 26 | rpmbuild --rebuild nasm-2.05.01-1.src.rpm |
| 27 | rpm -Uvh /usr/src/redhat/RPMS/$ARCH/nasm-2.05.01-1.$ARCH.rpm |
| 28 | |
| 29 | NOTE: NASM build will fail if texinfo is not installed. |
| 30 | |
| 31 | -- GCC v4.1 or later recommended for best performance |
| 32 | |
| 33 | -- X11 development kit |
| 34 | |
| 35 | -- If building Xvnc: |
| 36 | * Python v2.3 or later |
| 37 | * zlib v1.2 or later |
| 38 | * OpenSSL v0.9.7 or later |
| 39 | |
| 40 | |
DRC | 180c016 | 2010-10-27 07:20:27 +0000 | [diff] [blame^] | 41 | ================== |
| 42 | Out-of-Tree Builds |
| 43 | ================== |
| 44 | |
| 45 | Binary objects, libraries, and executables are generated in the same directory |
| 46 | from which configure was executed (the "binary directory"), and this directory |
| 47 | need not necessarily be the same as the TigerVNC source directory. You can |
| 48 | create multiple independent binary directories, in which different versions of |
| 49 | TigerVNC can be built from the same source tree using different compilers or |
| 50 | settings. In the sections below, {build_directory} refers to the binary |
| 51 | directory, whereas {source_directory} refers to the TigerVNC source directory. |
| 52 | For in-tree builds, these directories are the same. |
| 53 | |
| 54 | |
DRC | 2c0ea90 | 2010-04-16 07:33:41 +0000 | [diff] [blame] | 55 | ================= |
| 56 | Building TigerVNC |
| 57 | ================= |
| 58 | |
| 59 | The following procedure will build the TigerVNC viewer on Linux and Unix |
| 60 | systems. On 64-bit systems, this may build a 32-bit version of TigerVNC, |
| 61 | depending on the default compiler configuration for your system. See below for |
| 62 | specific build instructions for 64-bit systems. |
| 63 | |
DRC | 180c016 | 2010-10-27 07:20:27 +0000 | [diff] [blame^] | 64 | cd {source_directory} |
DRC | 2c0ea90 | 2010-04-16 07:33:41 +0000 | [diff] [blame] | 65 | autoreconf -fiv |
DRC | 180c016 | 2010-10-27 07:20:27 +0000 | [diff] [blame^] | 66 | cd {build_directory} |
| 67 | sh {source_directory}/configure [additional configure flags] |
DRC | 2c0ea90 | 2010-04-16 07:33:41 +0000 | [diff] [blame] | 68 | make |
| 69 | |
DRC | 180c016 | 2010-10-27 07:20:27 +0000 | [diff] [blame^] | 70 | NOTE: Running autoreconf in the source directory is only necessary if building |
| 71 | TigerVNC from the SVN repository. |
DRC | 2c0ea90 | 2010-04-16 07:33:41 +0000 | [diff] [blame] | 72 | |
| 73 | Building the TigerVNC server (Xvnc) is a bit trickier. On newer systems, such |
| 74 | as Fedora, Xvnc is typically built to use the X11 shared libraries provided |
| 75 | with the system. This requires a system with Xorg 7.4 or later, however. |
| 76 | Systems with older versions of Xorg must build a "legacy-friendly" version of |
| 77 | the TigerVNC server. This is accomplished by downloading and building the |
| 78 | more recent Xorg modules in a local directory and then building Xvnc such that |
| 79 | it links against the local build of these libraries, not the X11 libraries |
| 80 | installed on the system. The "build-xorg" script in the TigerVNC source |
| 81 | distribution automates this process. |
| 82 | |
| 83 | The following procedure will build both the TigerVNC viewer and a |
| 84 | "legacy-friendly" version of the TigerVNC server: |
| 85 | |
DRC | 180c016 | 2010-10-27 07:20:27 +0000 | [diff] [blame^] | 86 | cd {build_directory} |
| 87 | sh {source_directory}/unix/build-xorg init -version 7.4 |
| 88 | sh {source_directory}/unix/build-xorg build -version 7.4 [-static] [additional configure flags] |
DRC | 2c0ea90 | 2010-04-16 07:33:41 +0000 | [diff] [blame] | 89 | |
| 90 | Passing an argument of "-static" to the build command line will generate a |
| 91 | version of Xvnc that has no external dependencies on the X11 shared libraries |
| 92 | or any other distribution-specific shared libraries. This version of Xvnc |
| 93 | should be transportable across multiple O/S distributions. The legacy-friendly |
DRC | 180c016 | 2010-10-27 07:20:27 +0000 | [diff] [blame^] | 94 | build should work on Red Hat Enterprise 4, its contemporaries, and later |
DRC | 2c0ea90 | 2010-04-16 07:33:41 +0000 | [diff] [blame] | 95 | systems. It probably will not work on older systems. It has not been tested |
| 96 | on non-Linux systems (yet). |
| 97 | |
| 98 | build-xorg can also be used to rebuild just the TigerVNC server and viewer, |
| 99 | once the X11 modules and other dependencies have been built the first time. |
| 100 | This is convenient for testing changes that just apply to the TigerVNC source |
| 101 | code. To accomplish this, run: |
| 102 | |
DRC | 180c016 | 2010-10-27 07:20:27 +0000 | [diff] [blame^] | 103 | sh {source_directory}/unix/build-xorg rebuild [additional make flags] |
DRC | 2c0ea90 | 2010-04-16 07:33:41 +0000 | [diff] [blame] | 104 | |
| 105 | For instance, |
| 106 | |
DRC | 180c016 | 2010-10-27 07:20:27 +0000 | [diff] [blame^] | 107 | sh {source_directory}/unix/build-xorg rebuild clean |
DRC | 2c0ea90 | 2010-04-16 07:33:41 +0000 | [diff] [blame] | 108 | |
| 109 | will clean both the Xvnc and vncviewer builds without destroying any of the |
| 110 | build configuration or module dependencies. |
| 111 | |
| 112 | |
| 113 | ================================== |
| 114 | Build Recipes for Specific Systems |
| 115 | ================================== |
| 116 | |
| 117 | |
| 118 | 32-bit Build on 64-bit Linux |
| 119 | ---------------------------- |
| 120 | |
| 121 | Add |
| 122 | |
DRC | 896a96c | 2010-07-08 07:12:09 +0000 | [diff] [blame] | 123 | --host i686-pc-linux-gnu CFLAGS='-O3 -m32' CXXFLAGS='-O3 -m32' LDFLAGS=-m32 |
DRC | 2c0ea90 | 2010-04-16 07:33:41 +0000 | [diff] [blame] | 124 | |
DRC | 180c016 | 2010-10-27 07:20:27 +0000 | [diff] [blame^] | 125 | to the configure or build command lines. |
DRC | 2c0ea90 | 2010-04-16 07:33:41 +0000 | [diff] [blame] | 126 | |
| 127 | |
DRC | ef5e17f | 2010-09-30 18:53:42 +0000 | [diff] [blame] | 128 | 64-bit Build on 64-bit OS X |
DRC | 2c0ea90 | 2010-04-16 07:33:41 +0000 | [diff] [blame] | 129 | --------------------------- |
| 130 | |
| 131 | Add |
| 132 | |
DRC | 896a96c | 2010-07-08 07:12:09 +0000 | [diff] [blame] | 133 | --host x86_64-apple-darwin NASM=/opt/local/bin/nasm |
DRC | 2c0ea90 | 2010-04-16 07:33:41 +0000 | [diff] [blame] | 134 | |
| 135 | to the configure command line. NASM 2.07 or later from MacPorts must be |
| 136 | installed. |
| 137 | |
| 138 | |
DRC | ef5e17f | 2010-09-30 18:53:42 +0000 | [diff] [blame] | 139 | 32-bit Build on 64-bit OS X |
DRC | 2c0ea90 | 2010-04-16 07:33:41 +0000 | [diff] [blame] | 140 | --------------------------- |
| 141 | |
| 142 | Add |
| 143 | |
| 144 | CFLAGS='-O3 -m32' CXXFLAGS='-O3 -m32' LDFLAGS=-m32 |
| 145 | |
| 146 | to the configure command line. |
| 147 | |
| 148 | |
DRC | ef5e17f | 2010-09-30 18:53:42 +0000 | [diff] [blame] | 149 | 64-bit Backward-Compatible Build on 64-bit OS X |
DRC | 896a96c | 2010-07-08 07:12:09 +0000 | [diff] [blame] | 150 | ----------------------------------------------- |
| 151 | |
| 152 | Add |
| 153 | |
| 154 | --host x86_64-apple-darwin NASM=/opt/local/bin/nasm \ |
| 155 | CFLAGS='-isysroot /Developer/SDKs/MacOSX10.5.sdk \ |
| 156 | -mmacosx-version-min=10.5 -O3' \ |
| 157 | CXXFLAGS='-isysroot /Developer/SDKs/MacOSX10.5.sdk \ |
| 158 | -mmacosx-version-min=10.5 -O3' \ |
| 159 | LDFLAGS='-isysroot /Developer/SDKs/MacOSX10.5.sdk \ |
| 160 | -mmacosx-version-min=10.5' |
| 161 | |
| 162 | to the configure command line. The OS X 10.5 SDK, and NASM 2.07 or later from |
| 163 | MacPorts, must be installed. |
| 164 | |
| 165 | |
DRC | ef5e17f | 2010-09-30 18:53:42 +0000 | [diff] [blame] | 166 | 32-bit Backward-Compatible Build on 64-bit OS X |
DRC | 2c0ea90 | 2010-04-16 07:33:41 +0000 | [diff] [blame] | 167 | ----------------------------------------------- |
| 168 | |
| 169 | Add |
| 170 | |
| 171 | CC=gcc-4.0 CXX=g++-4.0 CFLAGS='-isysroot /Developer/SDKs/MacOSX10.4u.sdk \ |
| 172 | -mmacosx-version-min=10.4 -O3 -m32' \ |
| 173 | CXXFLAGS='-isysroot /Developer/SDKs/MacOSX10.4u.sdk \ |
| 174 | -mmacosx-version-min=10.4 -O3 -m32' \ |
| 175 | LDFLAGS='-isysroot /Developer/SDKs/MacOSX10.4u.sdk \ |
| 176 | -mmacosx-version-min=10.4 -m32' |
| 177 | |
| 178 | to the configure command line. The OS X 10.4 SDK must be installed. |
| 179 | |
| 180 | |
DRC | 2e0b965 | 2010-10-01 09:31:44 +0000 | [diff] [blame] | 181 | Building VeNCrypt support on OS X |
| 182 | --------------------------------- |
| 183 | |
| 184 | VeNCrypt requires GnuTLS, which is not available on OS X systems by default. |
| 185 | However, it can be obtained from MacPorts (http://www.macports.org/). The |
| 186 | easiest way to build TigerVNC using this version of GnuTLS is simply to |
| 187 | modify the CPATH and LIBRARY_PATH environment variables to include /opt/local, |
| 188 | i.e.: |
| 189 | |
| 190 | export CPATH=/opt/local/include |
| 191 | export LIBRARY_PATH=/opt/local/lib |
| 192 | |
| 193 | and then build TigerVNC as you would normally. However, this produces run-time |
| 194 | dependencies on the .dylib files in /opt/local/lib. To statically link with |
| 195 | GnuTLS, add the following monstrosity to the configure command line: |
| 196 | |
| 197 | GNUTLS_CFLAGS=-I/opt/local/include \ |
| 198 | GNUTLS_LDFLAGS='/opt/local/lib/libgnutls.a /opt/local/lib/libgcrypt.a \ |
| 199 | /opt/local/lib/libgpg-error.a /opt/local/lib/libz.a \ |
| 200 | /opt/local/lib/libtasn1.a /opt/local/lib/libiconv.a \ |
| 201 | /opt/local/lib/libintl.a -framework CoreFoundation' |
| 202 | |
| 203 | |
DRC | 2c0ea90 | 2010-04-16 07:33:41 +0000 | [diff] [blame] | 204 | ******************************************************************************* |
DRC | 180c016 | 2010-10-27 07:20:27 +0000 | [diff] [blame^] | 205 | ** Building on Windows (Visual C++ or MinGW) |
| 206 | ******************************************************************************* |
| 207 | |
| 208 | |
| 209 | ================== |
| 210 | Build Requirements |
| 211 | ================== |
| 212 | |
| 213 | -- CMake (http://www.cmake.org) v2.6 or later |
| 214 | |
| 215 | -- Microsoft Visual C++ 2005 or later |
| 216 | |
| 217 | If you don't already have Visual C++, then the easiest way to get it is by |
| 218 | installing the Windows SDK: |
| 219 | |
| 220 | http://msdn.microsoft.com/en-us/windows/bb980924.aspx |
| 221 | |
| 222 | The Windows SDK includes both 32-bit and 64-bit Visual C++ compilers and |
| 223 | everything necessary to build TigerVNC. |
| 224 | |
| 225 | * For 32-bit builds, you can also use Microsoft Visual C++ Express |
| 226 | Edition. Visual C++ Express Edition is a free download. |
| 227 | * If you intend to build TigerVNC from the command line, then add the |
| 228 | appropriate compiler and SDK directories to the INCLUDE, LIB, and PATH |
| 229 | environment variables. This is generally accomplished by executing |
| 230 | vcvars32.bat or vcvars64.bat and SetEnv.cmd. vcvars32.bat and |
| 231 | vcvars64.bat are part of Visual C++ and are located in the same directory |
| 232 | as the compiler. SetEnv.cmd is part of the Windows SDK. You can pass |
| 233 | optional arguments to SetEnv.cmd to specify a 32-bit or 64-bit build |
| 234 | environment. |
| 235 | |
| 236 | ... OR ... |
| 237 | |
| 238 | -- MinGW |
| 239 | |
| 240 | GCC v4.1 or later recommended for best performance |
| 241 | |
| 242 | -- NASM (http://www.nasm.us/) 0.98 or later (NASM 2.05 or later is required for |
| 243 | a 64-bit build) |
| 244 | |
| 245 | -- Inno Setup (needed to build the TigerVNC installer) |
| 246 | Inno Setup can be downloaded from http://www.jrsoftware.org/isinfo.php. |
| 247 | You also need the Inno Setup Preprocessor, which is available in the |
| 248 | Inno Setup QuickStart Pack. |
| 249 | |
| 250 | Add the directory containing iscc.exe (for instance, |
| 251 | C:\Program Files\Inno Setup 5) to the system or user PATH environment |
| 252 | variable prior to building TigerVNC. |
| 253 | |
| 254 | |
| 255 | ================== |
| 256 | Out-of-Tree Builds |
| 257 | ================== |
| 258 | |
| 259 | Binary objects, libraries, and executables are generated in the same directory |
| 260 | from which cmake was executed (the "binary directory"), and this directory need |
| 261 | not necessarily be the same as the TigerVNC source directory. You can create |
| 262 | multiple independent binary directories, in which different versions of |
| 263 | TigerVNC can be built from the same source tree using different compilers or |
| 264 | settings. In the sections below, {build_directory} refers to the binary |
| 265 | directory, whereas {source_directory} refers to the TigerVNC source directory. |
| 266 | For in-tree builds, these directories are the same. |
| 267 | |
| 268 | |
| 269 | ================= |
| 270 | Building TigerVNC |
| 271 | ================= |
| 272 | |
| 273 | |
| 274 | Visual C++ (Command Line) |
| 275 | ------------------------- |
| 276 | |
| 277 | cd {build_directory} |
| 278 | cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release {source_directory} |
| 279 | nmake |
| 280 | |
| 281 | This will build either a 32-bit or a 64-bit version of TigerVNC, depending |
| 282 | on which version of cl.exe is in the PATH. |
| 283 | |
| 284 | |
| 285 | Visual C++ (IDE) |
| 286 | ---------------- |
| 287 | |
| 288 | Choose the appropriate CMake generator option for your version of Visual Studio |
| 289 | (run "cmake" with no arguments for a list of available generators.) For |
| 290 | instance: |
| 291 | |
| 292 | cd {build_directory} |
| 293 | cmake -G "Visual Studio 9 2008" {source_directory} |
| 294 | |
| 295 | You can then open ALL_BUILD.vcproj in Visual Studio and build one of the |
| 296 | configurations in that project ("Debug", "Release", etc.) to generate a full |
| 297 | build of TigerVNC. |
| 298 | |
| 299 | |
| 300 | MinGW |
| 301 | ----- |
| 302 | |
| 303 | cd {build_directory} |
| 304 | cmake -G "MSYS Makefiles" {source_directory} |
| 305 | make |
| 306 | |
| 307 | This will generate only vncviewer. Currently, Visual C++ must be used to build |
| 308 | WinVNC. |
| 309 | |
| 310 | |
| 311 | Debug Build |
| 312 | ----------- |
| 313 | |
| 314 | Add "-DCMAKE_BUILD_TYPE=Debug" to the cmake command line. Or, if building with |
| 315 | NMake, remove "-DCMAKE_BUILD_TYPE=Release" (Debug builds are the default with |
| 316 | NMake.) |
| 317 | |
| 318 | |
| 319 | =================== |
| 320 | Installing TigerVNC |
| 321 | =================== |
| 322 | |
| 323 | You can use the build system to install TigerVNC into a directory of your |
| 324 | choosing (as opposed to creating an installer.) To do this, add: |
| 325 | |
| 326 | -DCMAKE_INSTALL_PREFIX={install_directory} |
| 327 | |
| 328 | to the cmake command line. |
| 329 | |
| 330 | For example, |
| 331 | |
| 332 | cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release \ |
| 333 | -DCMAKE_INSTALL_PREFIX=c:\TigerVNC {source_directory} |
| 334 | nmake install |
| 335 | |
| 336 | If you don't specify CMAKE_INSTALL_PREFIX, then the default is |
| 337 | c:\Program Files\TigerVNC. |
| 338 | |
| 339 | |
| 340 | ============= |
| 341 | Build Recipes |
| 342 | ============= |
| 343 | |
| 344 | |
| 345 | 64-bit MinGW Build on Cygwin |
| 346 | ---------------------------- |
| 347 | |
| 348 | cd {build_directory} |
| 349 | CC=/usr/bin/x86_64-w64-mingw32-gcc CXX=/usr/bin/x86_64-w64-mingw32-g++ \ |
| 350 | RC=/usr/bin/x86_64-w64-mingw32-windres \ |
| 351 | cmake -G "Unix Makefiles" -DCMAKE_SYSTEM_NAME=Windows \ |
| 352 | -DCMAKE_AR=/usr/bin/x86_64-w64-mingw32-ar \ |
| 353 | -DCMAKE_RANLIB=/usr/bin/x86_64-w64-mingw32-ranlib {source_directory} |
| 354 | make |
| 355 | |
| 356 | This produces a 64-bit build of TigerVNC that does not depend on cygwin1.dll or |
| 357 | other Cygwin DLL's. The mingw64-x86_64-gcc-core and mingw64-x86_64-gcc-g++ |
| 358 | packages (and their dependencies) must be installed. |
| 359 | |
| 360 | |
| 361 | 32-bit MinGW Build on Cygwin |
| 362 | ---------------------------- |
| 363 | |
| 364 | cd {build_directory} |
| 365 | CC=/usr/bin/i686-w64-mingw32-gcc CXX=/usr/bin/i686-w64-mingw32-g++ \ |
| 366 | RC=/usr/bin/i686-w64-mingw32-windres \ |
| 367 | cmake -G "Unix Makefiles" -DCMAKE_SYSTEM_NAME=Windows \ |
| 368 | -DDCMAKE_AR=/usr/bin/i686-w64-mingw32-ar \ |
| 369 | -DCMAKE_RANLIB=/usr/bin/i686-w64-mingw32-ranlib {source_directory} |
| 370 | make |
| 371 | |
| 372 | This produces a 32-bit build of TigerVNC that does not depend on cygwin1.dll or |
| 373 | other Cygwin DLL's. The mingw64-i686-gcc-core and mingw64-i686-gcc-g++ |
| 374 | packages (and their dependencies) must be installed. |
| 375 | |
| 376 | |
| 377 | MinGW-w64 Build on Windows |
| 378 | -------------------------- |
| 379 | |
| 380 | This produces a 64-bit build of TigerVNC using the "native" MinGW-w64 toolchain |
| 381 | (which is faster than the Cygwin version): |
| 382 | |
| 383 | cd {build_directory} |
| 384 | CC={mingw-w64_binary_path}/x86_64-w64-mingw32-gcc \ |
| 385 | CXX={mingw-w64_binary_path}/x86_64-w64-mingw32-g++ \ |
| 386 | RC={mingw-w64_binary_path}/x86_64-w64-mingw32-windres \ |
| 387 | cmake -G "MSYS Makefiles" \ |
| 388 | -DCMAKE_AR={mingw-w64_binary_path}/x86_64-w64-mingw32-ar \ |
| 389 | -DCMAKE_RANLIB={mingw-w64_binary_path}/x86_64-w64-mingw32-ranlib \ |
| 390 | {source_directory} |
| 391 | make |
| 392 | |
| 393 | |
| 394 | MinGW Build on Linux |
| 395 | -------------------- |
| 396 | |
| 397 | cd {build_directory} |
| 398 | CC={mingw_binary_path}/i386-mingw32-gcc \ |
| 399 | CXX={mingw_binary_path}/i386-mingw32-g++ \ |
| 400 | RC={mingw_binary_path}/i386-mingw32-windres \ |
| 401 | cmake -G "Unix Makefiles" -DCMAKE_SYSTEM_NAME=Windows \ |
| 402 | -DCMAKE_AR={mingw_binary_path}/i386-mingw32-ar \ |
| 403 | -DCMAKE_RANLIB={mingw_binary_path}/i386-mingw32-ranlib \ |
| 404 | {source_directory} |
| 405 | make |
| 406 | |
| 407 | |
| 408 | ******************************************************************************* |
DRC | 2c0ea90 | 2010-04-16 07:33:41 +0000 | [diff] [blame] | 409 | ** Creating Release Packages |
| 410 | ******************************************************************************* |
| 411 | |
| 412 | The following commands can be used to create various types of release packages: |
| 413 | |
DRC | 180c016 | 2010-10-27 07:20:27 +0000 | [diff] [blame^] | 414 | |
| 415 | Unix |
| 416 | ---- |
| 417 | |
DRC | 2c0ea90 | 2010-04-16 07:33:41 +0000 | [diff] [blame] | 418 | make dmg |
| 419 | |
| 420 | Create Macintosh package/disk image. This requires the PackageMaker |
| 421 | application, which must be installed in /Developer/Applications/Utilities. |
| 422 | |
| 423 | make udmg |
| 424 | |
DRC | 896a96c | 2010-07-08 07:12:09 +0000 | [diff] [blame] | 425 | On 64-bit OS X (10.5 "Leopard") and later, this creates a version of the |
DRC | 2c0ea90 | 2010-04-16 07:33:41 +0000 | [diff] [blame] | 426 | Macintosh package/disk image which contains universal i386/x86-64 binaries. |
| 427 | The 32-bit fork of these binaries is backward compatible with OS X 10.4 and |
DRC | 896a96c | 2010-07-08 07:12:09 +0000 | [diff] [blame] | 428 | later (OS X 10.4 compatibility SDK required.) If building on OS X 10.6 |
| 429 | ("Snow Leopard") or later, the 64-bit fork can be made backward compatible |
| 430 | with 10.5 by using the instructions in the "Build Recipes" section. |
DRC | 180c016 | 2010-10-27 07:20:27 +0000 | [diff] [blame^] | 431 | |
| 432 | |
| 433 | Windows |
| 434 | ------- |
| 435 | |
| 436 | If using NMake: |
| 437 | |
| 438 | cd {build_directory} |
| 439 | nmake installer |
| 440 | |
| 441 | If using MinGW: |
| 442 | |
| 443 | cd {build_directory} |
| 444 | make installer |
| 445 | |
| 446 | If using the Visual Studio IDE, build the "installer" project. |
| 447 | |
| 448 | The installer package (TigerVNC[64].exe) will be located under |
| 449 | {build_directory}. If building using the Visual Studio IDE, then the installer |
| 450 | package will be located in a subdirectory with the same name as the |
| 451 | configuration you built (such as {build_directory}\Debug\ or |
| 452 | {build_directory}\Release\). |