Debian Codegraph @

INSTALL

raw
1 Building on UNIX
2 ================
3
4 The following build instructions are for the Linux/UNIX/Mac OS X
5 operating systems as well as for Cygwin and MinGW on Windows.
6
7 The standard autotools-based build system is used on these platforms. After
8 unpacking the source code archive, change to the libcutl package directory
9 (referred to as libcutl/ from now on) and run the configure script:
10
11 ./configure
12
13 To see the available configuration options run configure with --help:
14
15 ./configure --help
16
17 As an example, the following configure command only builds shared libraries,
18 uses the specified C and C++ compilers, and compiles with optimization and
19 without debug information:
20
21 ./configure --disable-static CC=gcc-4.5 CXX=g++-4.5 CFLAGS=-O3 CXXFLAGS=-O3
22
23 Once configuration is complete, run make to build libcutl:
24
25 make
26
27 Once the build is completed successfully, you can install the libcutl headers
28 and libraries using the install target (you may need to do this step as root
29 depending on the installation directory):
30
31 make install
32
33
34 Building on Windows
35 ===================
36
37 The following build instructions are for Windows using Microsoft Visual
38 Studio. If you would like to build libcutl with GCC either using Cygwin
39 or MinGW, refer to the "Building on UNIX" section above.
40
41 The standard Visual Studio project and solution files are used on this
42 platform. To build libcutl, unpack the source code archive and open the
43 libcutl-vc<N>.sln file located in the libcutl package directory (referred
44 to as libcutl\ from now on). Here <N> is the version of Visual Studio that
45 you are using. Once the solution is open, select the desired build
46 configuration (Debug or Release) and platform (Win32 or x64) and build
47 the solution.
48
49 The resulting 32-bit DLLs and import libraries are placed into the
50 libcutl\bin\ and libcutl\lib\ directories, respectively. Similarly, the
51 64-bit DLLs and import libraries are placed into libcutl\bin64\ and
52 libcutl\lib64\. The Release versions of the import libraries are named
53 cutl.lib and the Debug versions are named cutl-d.lib.
54
55 To configure Visual Studio to automatically locate the libcutl headers,
56 DLLs, and import libraries, add the following paths to your VC++
57 Directories:
58
59 Win32:
60
61 Include: ...\libcutl
62 Library: ...\libcutl\lib
63 Executable: ...\libcutl\bin
64
65 x64:
66
67 Include: ...\libcutl
68 Library: ...\libcutl\lib64
69 Executable: ...\libcutl\bin64