Try to build from source code,meet errors.
- graphviz-2.48.0.gz
- ubuntu 16.04.1
- cross-compile 4 arm64 platforms.
- arm-linux-gnu-gcc (sorry, it can not share)
""""my script.sh """
cd ${BUILD_PATH}
if [ ! -f "${ROOT_PATH}/graphviz/lib/*.so" ]; then
rm -rf graphviz
mkdir -p ${BUILD_PATH}/graphviz/build
cd graphviz
tar -zxvf ${SRC_PATH}/graphviz-2.48.0.tar.gz
cd graphviz-*
export CFLAGS="-fstack-protector-all"
export CXXFLAGS="-fstack-protector-all"
export LDFLAGS="-Wl,-z,relro,-z,now,-z,noexecstack"
./autogen.sh
./configure \
--datadir="/usr/bin/automake" \
--prefix=${BUILD_PATH}/graphviz/build \
--host=arm \
CC=${CROSS_COMPILE}-gcc \
CXX=${CROSS_COMPILE}-g++ \
CPP=${CROSS_COMPILE}-cpp \
--enable-shared=yes \
--enable-perl=yes \
--enable-static=no \
--disable-php \
--enable-option-checking=yes
make -j8 && make install
export LDFLAGS=""
export CFLAGS=""
export CXXFLAGS=""
rm -rf ${ROOT_PATH}/graphviz
mkdir -p ${ROOT_PATH}/graphviz/include
mkdir -p ${ROOT_PATH}/graphviz/lib
cp -rf ${BUILD_PATH}/graphviz/build/include/* ${ROOT_PATH}/graphviz/include
cp -rf ${BUILD_PATH}/graphviz/build/lib/lib* ${ROOT_PATH}/graphviz/lib/
fi
- try to build from source code 4 arm64 paltforms, but meet errors. can U help me?
Errors:
make[3]: Leaving directory '/home/abc/tmpbuild/graphviz/graphviz-2.48.0/lib/osage'
Making all in gvpr
make[3]: Entering directory '/home/abc/tmpbuild/graphviz/graphviz-2.48.0/lib/gvpr'
/opt/hisi-linux/x86-arm/arm-himix200-linux/host_bin/arm-linux-gnu-gcc ./mkdefs.c -o mkdefs
./mkdefs gdefs.h < ../../lib/gvpr/gprdata
/lib/ld-linux.so.3: No such file or directory
Makefile:1082: recipe for target 'gdefs.h' failed
make[3]: *** [gdefs.h] Error 255
make[3]: Leaving directory '/home/abc/tmpbuild/graphviz/graphviz-2.48.0/lib/gvpr'
Makefile:589: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/abc/tmpbuild/graphviz/graphviz-2.48.0/lib'
Makefile:832: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/abc/tmpbuild/graphviz/graphviz-2.48.0'
Makefile:640: recipe for target 'all' failed
make: *** [all] Error 2
Edited by yahuuu