Transplantation of some common libraries in ARM-LINUX
10:51:47 | category: Arm-Linux | report | font size subscription
Some libraries are often reused in various projects. such as JPEG, FreeType, and iconv. each large project will be reused repeatedly. therefore, according to the original project specifications, it is generally placed under the project libs directory, but later found that each project has repeated operations. it is completely unnecessary. because it is now classified into a comm_lib public information.
The following is a typical arm-Linux transplant library, which is stored in the/home/hxy/common_lib directory. according to the porting specifications, output is in output/ARM-Linux, and the library itself is in libs.
The following is the migration of common databases for teaching and backup purposes.
Generic
1. zlib library porting
Download
Unzip tar xvzf zlib-1.2.3.tar.gz
CD zlib-1.2.3
Generate makefile (note that zlib can only be static and dynamically compiled separately. Therefore, two makefiles and two compilations and installations must be generated)
Generate static library cc = arm-Linux-gcc cpp = "arm-Linux-gcc-e" Ar = "arm-Linux-ar RC" ranlib = arm-Linux-ranlib. /configure -- prefix = $ PWD /.. /.. /output/ARM-Linux
Generate a dynamic library cc = arm-Linux-gcc cpp = "arm-Linux-gcc-e" Ar = "arm-Linux-ar RC" ranlib = arm-Linux-ranlib. /configure -- shared -- prefix = $ PWD /.. /.. /output/ARM-Linux
Compile make
Install make install
Image
1.jpeg library for JPEG Image Processing
2. PNG for PNG Image Display
Home http://www.libpng.org/
Download http://prdownloads.sourceforge.net/libpng/libpng-1.4.1.tar.gz? Download
Unzip tar xvjf libpng-1.2.19.tar.bz2
CD libpng-1.2.19
Generate makefile
Compile make
Install make install
3. Tiff Library (displayed in TIFF Format)
Official http://www.libtiff.org
Download http://dl.maptools.org/dl/libtiff/tiff-3.8.2.tar.gz
Unzip tar xvzf tiff-3.8.2.tar.gz
CD Tiff-3.8.2
Generate makefile
. /Configure -- Host = arm-Linux -- enable-shared -- enable-static -- enable-JPEG -- enable-zlib -- prefix = $ PWD /.. /.. /output/ARM-Linux
Compile make
Install make install
Audio
2. Mad
Official http://www.underbit.com/products/mad/
Unzip tar xvzf libmad-0.15.1b.tar.gz
CD libmad-0.15.1b
Generate makefile (standard)
Remove-Fforce-MEM from makefile
Compile make
Install make install
3. id3tag: Read MP3 Information
Official http://www.underbit.com/products/mad/
Unzip tar xvzf libid3tag-0.15.1b.tar.gz
CD libid3tag-0.15.1b
Generate makefile (standard)
4. Ogg audio decoding format
Text Encoding
1. iconv library for text encoding conversion
Home: http://www.gnu.org/software/libiconv
Download: http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.13.1.tar.gz
Unzip tar xvzf libiconv-1.13.1.tar.gz
CD libiconv-1.13.1
Generate makefile (standard)
Compile make
Install make install
2. FreeType: open-source high-quality font display function library
Home: http://www.freetype.org/
Download: http://ftp.twaren.net/Unix/NonGNU/freetype/freetype-2.3.11.tar.gz
Unzip tar xvzf freetype-2.3.11.tar.gz
CD freetype-2.3.11
Generate makefile (standard)
Compile make
Install make install
3.
Embedded common libraries