diff options
author | ubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2009-09-13 02:13:22 +0000 |
---|---|---|
committer | ubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2009-09-13 02:13:22 +0000 |
commit | 11e79831fc3005af508a0b3b35ebc81a451de586 (patch) | |
tree | 39b6d2d9a56366dbb540349a7ec1ed6452c17b9e /README.build | |
parent | update roadmap (diff) | |
download | gpg4usb-11e79831fc3005af508a0b3b35ebc81a451de586.tar.gz gpg4usb-11e79831fc3005af508a0b3b35ebc81a451de586.zip |
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
Diffstat (limited to 'README.build')
-rw-r--r-- | README.build | 38 |
1 files changed, 38 insertions, 0 deletions
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/ + |