Common steps/commands when building/compiling

These settings are (make sense) for NSA310 storage box with Fonz Fun Plug (FFP). # see also https://adrhc.go.ro/wordpress/configure-command-for-building-various-software/ export CFLAGS=”-march=armv5te -mfloat-abi=soft -mabi=aapcs-linux -fno-stack-protector -pthread -O2 -Wall -Wno-error” export BUILD_FLAGS=”$CFLAGS -I/ffp/include” unset LIBS export LDFLAGS=”-L/ffp/lib” export CPPFLAGS=”$BUILD_FLAGS” export CXXFLAGS=”$BUILD_FLAGS” NEW_BUILD_NAME=mpc […]

Configure command for building various software

#See https://adrhc.go.ro/wordpress/common-commands-when-building/ for building environment, x.sh script and other things not defined here. #Before compiling do declare the environment variables specified to the link above and prepare sources with ~/x.sh ffpg (or ~/x.sh ffpg-all if compilation fails). #urbackup-server-1.4.9 NEW_BUILD_NAME=urbackup-server NEW_BUILD_VER=1.4.9 […]

Compiling Perl 5.20.1

#See https://adrhc.go.ro/wordpress/common-commands-when-building/ for building environment, x.sh script and other things not defined here. #Before starting do declare the environment variables specified to the link above. #search http://search.cpan.org/ for modules #see http://www.thegeekstuff.com/2008/09/how-to-install-perl-modules-manually-and-using-cpan-command/ #Installing Perl modules from CPAN (didn’t work): http://perl.about.com/od/packagesmodules/qt/perlcpan.htm #environment […]

Compiling texinfo

NEW_BUILD_NAME=texinfo NEW_BUILD_VER=5.2 NEW_BUILD_NAME_AND_VER=$NEW_BUILD_NAME-$NEW_BUILD_VER ls -l /tmp/$NEW_BUILD_NAME- ls -l ~/ffp_0.7_armv5/packages/$NEW_BUILD_NAME- NEW_BUILD_NR=0 cd ~/compile wget https://ftp.gnu.org/gnu/texinfo/texinfo-5.2.tar.xz tar xpvf $NEW_BUILD_NAME_AND_VER.tar.xz cd ~/compile/$NEW_BUILD_NAME_AND_VER/ find . -type f ( -exec sed -i s/”\/usr\/bin\/perl”/”\/ffp\/bin\/perl”/ {} \; , -exec sed -i s/”\/usr\/bin\/python”/”\/ffp\/bin\/python”/ {} \; , -exec sed […]

Compiling nettle

#search for 2.7-fixes at https://www.mail-archive.com/nettle-bugs@lists.lysator.liu.se/msg00683.html NEW_BUILD_NAME=nettle NEW_BUILD_VER=2.7-fixes NEW_BUILD_NAME_AND_VER=$NEW_BUILD_NAME-$NEW_BUILD_VER ls -l /tmp/$NEW_BUILD_NAME- ls -l ~/ffp_0.7_armv5/packages/$NEW_BUILD_NAME- NEW_BUILD_NR=0 cd ~/compile wget -O nettle-2.7-fixes.zip https://git.lysator.liu.se/nettle/nettle/repository/archive.zip?ref=nettle-2.7-fixes unzip $NEW_BUILD_NAME_AND_VER.zip cd ~/compile/$NEW_BUILD_NAME_AND_VER/ find . -type f ( -exec sed -i s/”\/usr\/bin\/perl”/”\/ffp\/bin\/perl”/ {} \; , -exec sed -i […]

Compiling leptonica 1.69

#configuration for new package: NEW_BUILD_NAME=leptonica NEW_BUILD_VER=1.69 NEW_BUILD_NAME_AND_VER=$NEW_BUILD_NAME-$NEW_BUILD_VER ls -l /tmp/$NEW_BUILD_NAME- ls -l ~/ffp_0.7_armv5/packages/$NEW_BUILD_NAME- NEW_BUILD_NR=0 cd ~/compile/ wget https://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.02.tar.gz tar xvzf $NEW_BUILD_NAME_AND_VER.tar.gz cd ~/compile/$NEW_BUILD_NAME_AND_VER/ find . -type f ( -exec sed -i s/”\/usr\/bin\/perl”/”\/ffp\/bin\/perl”/ {} \; , -exec sed -i s/”\/usr\/bin\/python”/”\/ffp\/bin\/python”/ {} […]

Compiling tesseract-ocr 3.02.02

#configuration for new package: NEW_BUILD_NAME=tesseract-ocr NEW_BUILD_VER=3.02.02 NEW_BUILD_NAME_AND_VER=$NEW_BUILD_NAME-$NEW_BUILD_VER ls -l /tmp/$NEW_BUILD_NAME- ls -l ~/ffp_0.7_armv5/packages/$NEW_BUILD_NAME- NEW_BUILD_NR=0 cd ~/compile/ wget https://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.02.tar.gz tar xvzf $NEW_BUILD_NAME_AND_VER.tar.gz cd ~/compile/$NEW_BUILD_NAME_AND_VER/ find . -type f ( -exec sed -i s/”\/usr\/bin\/perl”/”\/ffp\/bin\/perl”/ {} \; , -exec sed -i s/”\/usr\/bin\/python”/”\/ffp\/bin\/python”/ {} […]

Compiling libev-4.19

#configuration for new package: NEW_BUILD_NAME=libev NEW_BUILD_VER=4.19 NEW_BUILD_NAME_AND_VER=$NEW_BUILD_NAME-$NEW_BUILD_VER ls -l /tmp/$NEW_BUILD_NAME- ls -l ~/ffp_0.7_armv5/packages/$NEW_BUILD_NAME- NEW_BUILD_NR=0 cd ~/compile/ wget http://dist.schmorp.de/libev/libev-4.19.tar.gz tar xvzf $NEW_BUILD_NAME_AND_VER.tar.gz cd ~/compile/$NEW_BUILD_NAME_AND_VER/ find . -type f ( -exec sed -i s/”\/usr\/bin\/perl”/”\/ffp\/bin\/perl”/ {} \; , -exec sed -i s/”\/usr\/bin\/python”/”\/ffp\/bin\/python”/ {} […]

Compiling nspr-4.10.7

cd ~/compile/ wget http://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v4.10.7/src/nspr-4.10.7.tar.gz tar xvzf nspr-4.10.7.tar.gz cd ~/compile/nspr-4.10.7/nspr find . -type f ( -exec sed -i s/”\/usr\/bin\/perl”/”\/ffp\/bin\/perl”/ {} \; , -exec sed -i s/”\/usr\/bin\/python”/”\/ffp\/bin\/python”/ {} \; , -exec sed -i s/”\/usr\/bin\/bash”/”\/ffp\/bin\/bash”/ {} \; , -exec sed -i s/”\/usr\/bin\/sh”/”\/ffp\/bin\/sh”/ {} […]

Python 2.7.9 and pip commands

#See https://adrhc.go.ro/wordpress/common-commands-when-building/ for building environment, x.sh script and other things not defined here. #Before starting do declare the environment variables specified to the link above. #Compiling python-2.7.9 NEW_BUILD_NAME=python NEW_BUILD_VER=2.7.9 NEW_BUILD_NAME_AND_VER=$NEW_BUILD_NAME-$NEW_BUILD_VER ls -l /tmp/$NEW_BUILD_NAME- ls -l ~/ffp_0.7_armv5/packages/$NEW_BUILD_NAME- NEW_BUILD_NR=0 #ERROR Failed to […]

Compiling xorg util-macros-1.19.0

cd ~/compile/ rm -r ~/compile/util-macros-1.19.0 mkdir util-macros-1.19.0 cd ~/compile/util-macros-1.19.0 git clone -q -b util-macros-1.19.0 git://anongit.freedesktop.org/xorg/util/macros mv -v macros/* . rm -r macros find . -type f ( -exec sed -i s/”\/usr\/bin\/perl”/”\/ffp\/bin\/perl”/ {} \; , -exec sed -i s/”\/usr\/bin\/python”/”\/ffp\/bin\/python”/ {} \; […]

Compiling m4-1.4.17

cd ~/compile/ wget http://ftp.gnu.org/gnu/m4/m4-1.4.17.tar.gz tar xvzf m4-1.4.17.tar.gz cd ~/compile/m4-1.4.17 export BUILD_FLAGS=”-march=armv5te -mfloat-abi=soft -mabi=aapcs-linux -fno-stack-protector -pthread -O2 -Wall -I/ffp/include -I/ffp/opt/apache-2.2.29-worker/include” export LDFLAGS=”-L/ffp/lib” export LDFLAGS=”-L/ffp/lib -lintl -lpthread” export CPPFLAGS=”$BUILD_FLAGS” export CXXFLAGS=”$BUILD_FLAGS” export CFLAGS=”$BUILD_FLAGS” export LC_ALL=POSIX ./configure –prefix=/ffp –enable-dependency-tracking –enable-threads=posix –with-libsigsegv-prefix=/ffp –disable-assert –enable-c++ […]

Compiling libgd 2.1.0

export BUILD_FLAGS=”-march=armv5te -pthread -O2 -lintl -Wall -DNDEBUG -DLINUX -I/ffp/include” export LDFLAGS=”-L/ffp/lib -lintl” export CPPFLAGS=”$BUILD_FLAGS” export CXXFLAGS=”$BUILD_FLAGS” export CFLAGS=”$BUILD_FLAGS” export LC_ALL=POSIX cd ~/compile/libgd-2.1.0 ERROR1: ceva cu ceill (atentie, sunt 2x l la final) SOLUTION: find . -name gd_bmp.c -exec sed -i […]

Compiling MySql 5.6.21

#See https://adrhc.go.ro/wordpress/common-commands-when-building/ for building environment, x.sh script and other things not defined here. #Before starting do declare the environment variables specified to the link above. cd $HOME/compile rm -r $HOME/compile/mysql-5.6.21 tar -xzvf mysql-5.6.21.tar.gz cd $HOME/compile/mysql-5.6.21 ~/x.sh ffpg NEW_BUILD_NAME=mysql NEW_BUILD_VER=5.6.21 NEW_BUILD_NAME_AND_VER=$NEW_BUILD_NAME-$NEW_BUILD_VER […]

Compiling libmemcached

cd $HOME/compile wget https://launchpad.net/libmemcached/1.0/1.0.18/+download/libmemcached-1.0.18.tar.gz tar -xzf libmemcached-1.0.18.tar.gz cd $HOME/compile/libmemcached-1.0.18 export LDFLAGS=”-L/ffp/lib -lintl” export CPPFLAGS=”-I/ffp/include -I/ffp/include/readline -DLINUX” export CXXFLAGS=”-I/ffp/include -I/ffp/include/readline” export CFLAGS=”-march=armv5te -mtune=xscale -mfloat-abi=soft -mabi=aapcs-linux -pthread -O2 -lintl -Wall” export LC_ALL=POSIX export PKG_CONFIG=/ffp/bin/pkg-config ./configure –help > configure.help.txt #ERROR1: ./libtest/cmdline.h:39:19: fatal error: […]