Cross-compiling libpng, libjpeg library


Cross-compiling libpng library


Prefix conditions
depend on the zlib library needs to advance cross-compiled zlib libraries, compilers method, see cross compiler zlib
Download:

https://nchc.dl.sourceforge.net/project/libpng/libpng16/1.6.37/libpng-1.6.37.tar.gz

Configuration:

./configure --prefix=/armlib/libpng  --host=arm-histbv310-linux \
CC=/home/czjia/work/sdk041/tools/linux/toolchains/arm-histbv310-linux/bin/arm-histbv310-linux-gcc \
CXX=/home/czjia/work/sdk041/tools/linux/toolchains/arm-histbv310-linux/bin/arm-histbv310-linux-g++ \
--with-zlib-prefix=/armlib/zlib \
CFLAGS=-I/armlib/zlib/include \
CPPFLAGS = -I/armlib/zlib/include \
LDFLAGS=-L/armlib/zlib/lib \
LIBS=-lz \

Note that if only specified CFLAGS, at the time still can not find the make zlib header files, you also need to specify link preprocessor.

Cross compiler libjpeg library

Download:
https://nchc.dl.sourceforge.net/project/libjpeg-turbo/2.0.4/libjpeg-turbo-2.0.4.tar.gz

Released nine original articles · won praise 0 · Views 1297

Guess you like

Origin blog.csdn.net/qq_21438461/article/details/104828182