From 11e79831fc3005af508a0b3b35ebc81a451de586 Mon Sep 17 00:00:00 2001 From: ubbo Date: Sun, 13 Sep 2009 02:13:22 +0000 Subject: add scripts, structure and readme for crosscompiling for win & lin32, partially taken from unetbootin git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@211 34ebc366-c3a9-4b3c-9f84-69acf7962910 --- README.build | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 README.build (limited to 'README.build') diff --git a/README.build b/README.build new file mode 100644 index 0000000..b6e86b5 --- /dev/null +++ b/README.build @@ -0,0 +1,38 @@ +Compiler prerequisites: +----------------------- +on 64bit systems: +sudo apt-get install ia32-libs libc6-i386 libc6-dev-i386 lib32gcc1 lib32z1-dev g++-multilib + +for win-crosscompile: +sudo apt-get install mingw32 + +Libraries needed: +------------------------------ +Get static qt-builds for windows from unetbootin and extract to winbuild/qt4.5 +http://launchpad.net/unetbootin/trunk/trunk/+download/qt4.5-win.7z + +Download Qt-Sources, untar and build static(for 32bit) +http://get.qt.nokia.com/qt/source/qt-x11-opensource-src-4.5.2.tar.gz + +./configure -no-xrandr -no-xinerama -no-glib -no-sm -no-webkit -qt-zlib -qt-libpng -no-qt3support -no-phonon -no-phonon-backend -no-gtkstyle -static -nomake examples -nomake demos -nomake docs -opensource -prefix ~/qt-x11-opensource-src-4.5.2 -platform linux-g++-32 -no-exceptions -qt-libjpeg + +make && make install + +mv ~/qt-x11-opensource-src-4.5.2 linbuild/qt4.5 + + +Putting a symlink to libstdc++.a in linbuild/lib includes in build: +ln -s /usr/lib/gcc/x86_64-linux-gnu/4.4/32/libstdc++.a linbuild/lib/ + +Build: +------ +comment out libs-line in gpg4usb.pro +./qmake-windows.sh +./qmake-linux.sh + + +Useful Links: +--------------------- +http://sourceforge.net/apps/trac/unetbootin/wiki/compile +http://www.trilithium.com/johan/2005/06/static-libstdc/ + -- cgit v1.2.3