Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The use of cross-compilation of embedded Linux FreeType

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article introduces the relevant knowledge of "the use of embedded Linux FreeType cross-compilation". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Cross-compiled universal command

The premise of using this universal command is that the source code of open source software: configure file, confiuer support-- host,--prefiex parameter. After the compilation and installation is complete, the corresponding libraries and header files will be installed in the tmp directory of the current directory

. / configure-- host=arm-hisiv400-linux-- prefix=$PWD/tmpmakemake installfreetype cross compilation

Freetype version: freetype-2.10.2.tar.xz directly uses the above cross-compile universal command

Error during compilation: ftgzip.c:46:18: fatal error: zlib.h: there is no such file or directory

Missing zlib library, cross-compile zlib library: zlib library version: zlib-1.2.11.tar.gz

. / configure-- prefix=$PWD/tmp-eprefix=$PWD/tmp-- libdir=$PWD/tmp/lib## replace all the gcc in the modified Makefile with: arm-hisiv400-linux-gccmake make install# installation zlib library cp-drf. / tmp/lib/* / opt/hisi-linux/x86-arm/arm-hisiv400-linux/target/usr/lib# installation header file cp. / tmp/include/* / opt/hisi-linux/x86-arm/arm-hisiv400-linux/target/usr/includearm-hisiv400-linux-gnueabi/bin/ld: cannot find-lpng16

Lack of libpng library, use universal command to cross-compile libpng library: libpng library version: libpng-1.6.37.tar.xz

. / configure-- host=arm-hisiv400-linux-- prefix=$PWD/tmpmakemake install# install the lib library cp-drf. / tmp/lib/* / opt/hisi-linux/x86-arm/arm-hisiv400-linux/target/usr/lib# installation header file cp. / tmp/include/* / opt/hisi-linux/x86-arm/arm-hisiv400-linux/target/usr/includearm-hisiv400-linux-gnueabi/bin/ld: cannot find-lharfbuzz

The function of harfbuzz is a hint to improve OpenType fonts, which is manually turned off and no longer used. That is, reconfigure freetype

Make distclean./configure-host=arm-hisiv400-linux-prefix=$PWD/tmp-with-harfbuzz=no

Suggestion: if necessary, please read freetype's configure-help help manual in detail. To determine whether the relevant sub-functional modules need to be turned on during the compilation of freetype. Freetype downloads libpng official website zlib official website

This is the end of the content of "the use of embedded Linux FreeType cross-compilation". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report