wslua now builds, links and installs.
[metze/wireshark/wip.git] / README.cmake
1           Explain the cmake build system for wireshark
2
3    $Id$
4
5                            Notice 
6
7    To find out the current state of the cmake implementaion for
8    Wireshark, please take a look at "What needs to be done?" below.
9    Basically this is an experiment and if we find out that it works
10    and we like cmake more than autofoo we might switch one day.
11
12 Table of contents
13 =================
14
15 How to get started with cmake?
16 Why cmake?
17 Why not cmake?
18 What needs to be done?
19 Links regarding cmake
20
21 How to get started with cmake?
22 ==============================
23
24 You can find documentation on cmake at: http://www.cmake.org/
25
26 cmake is designed to support out of tree builds. So much so, that
27 in tree builds do not work properly in all cases.
28
29 How to do out of tree build (Unix/Linux):
30 1) Install cmake.
31 2) Assuming, you are in the top directory of the wireshark source
32    cd ..
33 3) mkdir build
34 4) cd build
35 5) cmake ../<Name_of_WS_source_dir>
36 6) make
37
38 Note 1:
39 in step 5), you may override the defaults for features:
40  cmake -DENABLE_CAP=OFF ../<Name_of_WS_source_dir>
41  will disable the capabilities check.
42
43 Note 2:
44  On OS X, you may want to run cmake like this:
45  cmake -DENABLE_CAP=OFF -G "Unix Makefiles"
46
47 Why cmake?
48 ==========
49 - Can create project files for some MS and Apple IDEs.
50 - Fast
51 - Easier to understand/learn
52 - Doesn't create any files in the source tree in case
53   of out of tree builds
54 - One build infrastructure even including Windows
55 ...
56
57 Why not cmake?
58 ==============
59 - Lots of work to do
60 - Everyone who wants to build from source needs cmake
61 - Current state of documentation isn't really better than
62   autofoo documentation, in some respect it's even worse
63   (you need to buy a book to get an explanation as to how
64   cmake really works).
65 ...
66
67 What works?
68 ===========
69
70 All the executables now build on my system (32bit openSUSE 11.1) from
71 clean source.
72
73 What needs to be done?
74 ======================
75
76 - Redo glib2 and gtk2 find modules.
77 - Add back platform specific objects.
78 - Fix places in the cmake files marked as todo.
79 - Add back (working) install target.
80   Currently, directories are created with user umask
81 - Build source package (using CPack).
82 - Build rpm package (using CPack).
83 - Add back checkAPI target.
84 - Test and add support for other platforms (BSDs, OSX,
85   Solaris, Win32, Win64, ...)
86 ...
87 Couldn't load module /opt/test/lib/wireshark/plugins/1.3.0/libasn1.so: /opt/test/lib/wireshark/plugins/1.3.0/libasn1.so: undefined symbol: asn1_bool_decode
88 Couldn't load module /opt/test/lib/wireshark/plugins/1.3.0/libmate.so: /opt/test/lib/wireshark/plugins/1.3.0/libmate.so: undefined symbol: mate_load_config
89
90 Links regarding cmake
91 =====================
92 The home page of the cmake project
93         http://www.cmake.org/
94
95 The home page of the cmake project documentation
96         http://www.cmake.org/Wiki/CMake
97
98 About cmake in general and why KDE4 uses it
99         http://lwn.net/Articles/188693/
100
101 Introductory/tutorial presentation
102         http://ait.web.psi.ch/services/linux/hpc/hpc_user_cookbook/tools/cmake/docs/Cmake_VM_2007.pdf
103
104 Introductory arcticle in Linux Journal
105         http://www.linuxjournal.com/node/6700/print
106
107 Useful variables
108         http://www.cmake.org/Wiki/CMake_Useful_Variables
109
110 cmake FAQ
111         http://www.cmake.org/Wiki/CMake_FAQ
112
113 Additional cmake modules
114         http://code.google.com/p/cmake-modules/