Add accessor to check if a filter accepts a given BufferId
[quassel.git] / dev-notes / build-static-quassel.txt
1 These notes should help you to build a quasselcore statically linked to Qt
2 and OpenSSL. Note that these are just hints that work for me; ymmv.
3
4 1.) Get a statically linked Qt
5     As of Qt 4.4, this configure line for building should probably work if
6     you only want to build a static core (since we disable most GUI
7     components here; you'd need to adjust that line for a full Qt!)
8
9     ./configure -static -no-accessibility -qt-sql-sqlite -qt-zlib -no-qt3support \
10     -no-gif -no-libtiff -no-libpng -no-libmng -no-libjpeg -nomake demos -nomake examples \
11     -nomake gui -nomake uic -nomake opengl -nomake tools -no-opengl -no-sm -no-xshape \
12     -no-xinerama -no-xcursor -no-xfixes -no-xrandr -no-xrender -no-fontconfig -no-tablet \
13     -no-xkb -no-glib -no-svg -openssl-linked -no-phonon -no-webkit -no-dbus -no-xmlpatterns \
14     -prefix /usr/local/Trolltech/qt-4.4-static
15
16     To only build non-X dependent parts of Qt:
17
18     for i in `cat /path/to/quassel/dev-notes/QT4_TARGET_DIRECTORIES`; do make -C $i; done
19
20     NOTE: This has not really been tested and may or may not be working for
21           you. If in doubt, follow the official route and just do make
22           and make install.
23
24 2.) Link some system libs into /path/to/quassel/build/contrib/libs:
25     (we need this, because otherwise your quasselcore wouldn't be
26     portable)
27
28     On my system, I have this in build/contrib/libs:
29       libcrypto.a -> /usr/lib/libcrypto.a
30       libssl.a -> /usr/lib/libssl.a
31       libstdc++.a -> /usr/lib/gcc/i686-pc-linux-gnu/4.2.3/libstdc++.a
32
33     YMMV depending on the exact versions installed on your system, of course.
34
35 3.) Build Quassel Core:
36     
37     cd /path/to/quassel
38     /path/to/static/qt/bin/qmake -config static BUILD=core
39     make
40
41 4.) Enjoy.