Building Linux Static Installer and Static GrblController

Rough notes. See http://www.qtcentre.org/wiki/index.php?title=Building_static_Qt_on_Linux

See also https://www.madsoft.org/2011/10/16/building-qt-for-static-linking-on-linux/

which has

./configure -release -opensource -static -platform linux-g++ -no-fast -no-qt3support -no-phonon -no-phonon-backend -no-declarative-debug -no-ssse3 -no-sse4.1 -no-sse4.2 -no-avx -no-neon -qt-zlib -qt-gif -qt-libpng -no-libmng -qt-libjpeg -openssl-linked -nomake examples -nomake demos -nomake docs -no-nis -no-cups -dbus-linked -no-gtkstyle -no-nas-sound -no-opengl -no-openvg -no-glib

Start:

sudo apt-get install libudev-dev

If 12.04 LTS:

sudo apt-add-repository ppa:u-szeged/sedkit && sudo apt-get update && sudo apt-get install sedkit-env-qtwebkit

If newer than 12.04 LTS (pi): sudo apt-get install build-essential perl python git

(For ubuntu, see http://qt-project.org/wiki/Building_Qt_5_from_Git) (any way to embed into static build?):

sudo apt-get install "^libxcb.*" libx11-xcb-dev libglu1-mesa-dev libxrender-dev
mkdir gitorious
cd gitorious
git clone git://gitorious.org/qt/qt5.git qt5
cd qt5
git checkout stable
perl init-repository --no-webkit
./configure -opensource -release -static -accessibility -nomake tools -nomake examples
make
sudo make install
PATH=$PATH:/usr/local/Qt-5.3.1/bin
 (or /usr/local/Qt-5.3.1/bin/qmake, etc.)
(go back to gitorious folder)
git clone git://gitorious.org/installer-framework/installer-framework.git
cd installer-framework
qmake
make
cd linux-installer
../../../gitorious/installer-framework/bin/binarycreator -c config/config.xml -p packages GrblControllerLinuxInstallerx86

Important license info: static installer only allowed to be built for lgpl/gpl projects that are installed – not allowed for commercial projects

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>