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 s/"ceill"/"ceil"/ {} \;

./configure --prefix=/ffp --with-libiconv-prefix=/ffp --with-zlib=/ffp --with-png=/ffp --with-freetype=/ffp --with-fontconfig=/ffp --with-jpeg=/ffp --with-tiff=/ffp
~/x.sh ffpg
nohup /ffp/bin/make -C ~/compile/libgd-2.1.0 &

#~/x.sh ffpg
find . -type f ! -name "*.txt" \( \
        -exec sed -i s/"\/bin\/arch"/"\/ffp\/bin\/arch"/g {} \; , \
        -exec sed -i s/"\/bin\/bash"/"\/ffp\/bin\/bash"/g {} \; , \
        -exec sed -i s/"\/bin\/cc"/"\/ffp\/bin\/cc"/g {} \; , \
        -exec sed -i s/"\/bin\/chmod"/"\/ffp\/bin\/chmod"/g {} \; , \
        -exec sed -i s/"\/bin\/date"/"\/ffp\/bin\/date"/g {} \; , \
        -exec sed -i s/"\/bin\/echo"/"\/ffp\/bin\/echo"/g {} \; , \
        -exec sed -i s/"\/bin\/env"/"\/ffp\/bin\/env"/g {} \; , \
        -exec sed -i s/"\/bin\/file"/"\/ffp\/bin\/file"/g {} \; , \
        -exec sed -i s/"\/bin\/install"/"\/ffp\/bin\/install"/g {} \; , \
        -exec sed -i s/"\/bin\/ln"/"\/ffp\/bin\/ln"/g {} \; , \
        -exec sed -i s/"\/bin\/ls"/"\/ffp\/bin\/ls"/g {} \; , \
        -exec sed -i s/"\/bin\/pwd"/"\/ffp\/bin\/pwd"/g {} \; , \
        -exec sed -i s/"\/bin\/sed"/"\/ffp\/bin\/sed"/g {} \; , \
        -exec sed -i s/"\/bin\/sh"/"\/ffp\/bin\/sh"/g {} \; , \
        -exec sed -i s/"\/bin\/tr"/"\/ffp\/bin\/tr"/g {} \; , \
        -exec sed -i s/"\/bin\/uname"/"\/ffp\/bin\/uname"/g {} \; , \
        -exec sed -i s/"\/sbin\/install"/"\/ffp\/bin\/install"/g {} \; , \
        -exec sed -i s/"\/sbin\/ldconfig"/"\/ffp\/sbin\/ldconfig"/g {} \; , \
        -exec sed -i s/"\/sbin\/sysctl"/"\/ffp\/sbin\/sysctl"/g {} \; , \
        -exec sed -i s/"\/sbin\/\$sysctl"/"\/ffp\/sbin\/\$sysctl"/g {} \; , \
        -exec sed -i s/"\/usr\/bin"/"\/ffp\/bin"/g {} \; , \
        -exec sed -i s/"\/usr\/include"/"\/ffp\/include"/g {} \; , \
        -exec sed -i s/"\/usr\/lib"/"\/ffp\/lib"/g {} \; , \
        -exec sed -i s/"\/usr\/local"/"\/ffp"/g {} \; , \
        -exec sed -i s/"\/usr\/make"/"\/ffp\/bin\/make"/g {} \; , \
        -exec sed -i s/"\/usr\/sbin\/install"/"\/ffp\/bin\/install"/g {} \; , \
        -exec sed -i s/"\/usr\/sbin\/lsattr"/"\/ffp\/bin\/lsattr"/g {} \; , \
        -exec sed -i s/"\/usr\/sbin\/lsdev"/"\/ffp\/bin\/lsdev"/g {} \; , \
        -exec sed -i s/"\/usr\/sbin\/sysctl"/"\/ffp\/sbin\/sysctl"/g {} \; , \
        -exec sed -i s/"\/usr\/sbin\/\$sysctl"/"\/ffp\/sbin\/\$sysctl"/g {} \; , \
        -exec sed -i s/"\/usr\/ffp"/"\/ffp"/g {} \; , \
        -exec sed -i s/"\/ffp\/ffp"/"\/ffp"/g {} \; \
    \)

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.