Update docs for static building
[quassel.git] / doc / build-static-quassel
similarity index 74%
rename from dev-notes/build-static-quassel.txt
rename to doc/build-static-quassel
index bc9d4d3..1f36764 100644 (file)
@@ -15,17 +15,19 @@ and OpenSSL. Note that these are just hints that work for me; ymmv.
 
     To only build non-X dependent parts of Qt:
 
-    for i in `cat /path/to/quassel/dev-notes/QT4_TARGET_DIRECTORIES`; do make -C $i; done
+    $> export QT4_TARGET_DIRECTORIES="src/tools/moc src/tools/rcc src/tools/uic src/corelib src/xml \
+                                     src/network src/sql src/plugins/codecs src/script"
+    $> for i in $QT4_TARGET_DIRECTORIES; do make -C $i; done
 
     NOTE: This has not really been tested and may or may not be working for
           you. If in doubt, follow the official route and just do make
           and make install.
 
-2.) Link some system libs into /path/to/quassel/build/contrib/libs:
+2.) Link some system libs into /path/to/builddir/staticlibs
     (we need this, because otherwise your quasselcore wouldn't be
     portable)
 
-    On my system, I have this in build/contrib/libs:
+    On my system, I have this in staticlibs:
       libcrypto.a -> /usr/lib/libcrypto.a
       libssl.a -> /usr/lib/libssl.a
       libstdc++.a -> /usr/lib/gcc/i686-pc-linux-gnu/4.2.3/libstdc++.a
@@ -34,8 +36,8 @@ and OpenSSL. Note that these are just hints that work for me; ymmv.
 
 3.) Build Quassel Core:
     
-    cd /path/to/quassel
-    /path/to/static/qt/bin/qmake -config static BUILD=core
-    make
+    $> cd /path/to/builddir
+    $> cmake /path/to/source -DSTATIC=1 -DWANT_QTCLIENT=0 -DWANT_MONO=0 -DQT=/usr/local/Trolltech/qt-4.4-static
+    $> make
 
 4.) Enjoy.