~ubuntu-branches/ubuntu/trusty/expat/trusty-proposed

« back to all changes in this revision

Viewing changes to CMake.README

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2012-03-20 22:37:22 UTC
  • mfrom: (1.1.4) (5.1.7 precise)
  • Revision ID: package-import@ubuntu.com-20120320223722-wq8sq4gykhlvc8j9
Tags: 2.1.0~beta3-1
* QA upload.
* Beta release 2.1.0 beta3. Closes: #663579.
  - CVE-2012-1147 - Resource leak in readfilemap.c.
  - CVE-2012-1148 - Memory leak in poolGrow.
  - CVE-2012-0876 - Hash DOS attack.
  - Remove patches applied upstream.
* Remove Daniel from uploaders (orphaned package).
* Update package format to 3.0.
* Enable hardened build. Closes: #653526.
* Add a symbols file.
* Install expat pkgconfig file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
== How to build expat with cmake (experimental) ==
 
2
 
 
3
The cmake based buildsystem for expat works on Windows (cygwin, mingw, Visual 
 
4
Studio) and should work on all other platform cmake supports.
 
5
 
 
6
Assuming ~/expat-2.1.0 is the source directory of expat, add a subdirectory
 
7
build and change into that directory:
 
8
~/expat-2.1.0$ mkdir build && cd build
 
9
~/expat-2.1.0/build$
 
10
 
 
11
From that directory, call cmake first, then call make, make test and 
 
12
make install in the usual way:
 
13
~/expat-2.1.0/build$ cmake ..
 
14
-- The C compiler identification is GNU
 
15
-- The CXX compiler identification is GNU
 
16
....
 
17
-- Configuring done
 
18
-- Generating done
 
19
-- Build files have been written to: /home/patrick/expat-2.1.0/build
 
20
 
 
21
If you want to specify the install location for your files, append 
 
22
-DCMAKE_INSTALL_PREFIX=/your/install/path to the cmake call.
 
23
 
 
24
~/expat-2.1.0/build$ make && make test && make install
 
25
Scanning dependencies of target expat
 
26
[  5%] Building C object CMakeFiles/expat.dir/lib/xmlparse.c.o
 
27
[ 11%] Building C object CMakeFiles/expat.dir/lib/xmlrole.c.o
 
28
....
 
29
-- Installing: /usr/local/lib/pkgconfig/expat.pc
 
30
-- Installing: /usr/local/bin/xmlwf
 
31
-- Installing: /usr/local/share/man/man1/xmlwf.1
 
32
 
 
33
For Windows builds, you must make sure to call cmake from an environment where 
 
34
your compiler is reachable, that means either you call it from the 
 
35
Visual Studio Command Prompt or when using mingw, you must open a cmd.exe and
 
36
make sure that gcc can be called. On Windows, you also might want to specify a 
 
37
special Generator for CMake:
 
38
for Visual Studio builds do: 
 
39
cmake .. -G "Visual Studio 10" && vcexpress expat.sln
 
40
for mingw builds do: 
 
41
cmake .. -G "MinGW Makefiles" -DCMAKE_INSTALL_PREFIX=D:\expat-install 
 
42
    && gmake && gmake install