Pages

Friday, October 10, 2014

Building Flamerobin for static release

To build flamerobin for static release we use wxWidgets 3.0.2 like in previous post but with the following configure option for wxWidgets
./configure --prefix=/opt/wxwidgets --disable-debug --disable-shared --enable-unicode \
--with-libjpeg=builtin --with-libtiff=builtin --with-expat=builtin \
--with-libpng=builtin --with-zlib=builtin
We build with buildin libraries for jpeg,png,tiff,zlib,expat
make -j4
make install
Download boost
http://downloads.sourceforge.net/boost/boost_1_55_0.tar.bz2
Install Boost by running the following commands:
./bootstrap.sh --prefix=/opt/boost &&
./b2 stage threading=multi link=static
Now, as the root user:
./b2 install threading=multi link=static
after that we build the flamerobin from git with debug enabled
mkdir debug
cd debug
../configure --with-wx-config=/opt/wxwidgets/bin/wx-config --with-boost=/opt/boost --enable-debug
and the following commands for a build in release configuration
mkdir release
cd release
../configure --with-wx-config=/opt/wxwidgets/bin/wx-config --with-boost=/opt/boost --disable-debug
I have used the --prefix=/opt/flamerobin and then created the tar.xz
cd /
strip /opt/flamerobin/bin/flamerobin
tar -cJvf ~/Desktop/flamerobin-0.9.3-ff8df8e-x86_64.tar.xz ./opt/flamerobin

No comments:

Post a Comment