15 *.in文件怎么预编译?

【第4篇】嵌入式Linux应用开发基础知识/【第六章】文字显示及图像显示/04_交叉编译程序的万能命令_以freetype为例

我将https://download.savannah.gnu.org/releases/freetype/freetype-2.10.2.tar.xz下载并解压。执行:

./configure --host=arm-buildroot-linux-gnueabihf --prefix=$PWD/tmp

然后make编译,报错:

libtool: warning: library '/home/book/100ask_stm32mp157_pro-sdk/ToolChain/arm-buildroot-linux-gnueabihf_sdk-buildroot/bin/../arm-buildroot-linux-gnueabi
hf/sysroot/usr/lib/libpng16.la' was moved.

libtool: warning: library '/home/book/100ask_stm32mp157_pro-sdk/ToolChain/arm-buildroot-linux-gnueabihf_sdk-buildroot/bin/../arm-buildroot-linux-gnueabi
hf/sysroot/usr/lib/libharfbuzz.la' was moved.

/bin/grep: /home/book/stm32mp157/ST-Buildroot/output/host/bin/../arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libfreetype.la: No such file or directory
/bin/sed: can't read /home/book/stm32mp157/ST-Buildroot/output/host/bin/../arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libfreetype.la: No such file or
 directory
libtool:   error: '/home/book/stm32mp157/ST-Buildroot/output/host/bin/../arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libfreetype.la' is not a valid li
btool archive
config.mk:55: recipe for target '/home/book/app/freetype-2.10.2/objs/libfreetype.la' failed
make: *** [/home/book/app/freetype-2.10.2/objs/libfreetype.la] Error 1
ST-Buildroot这个文件夹我从来都没有建立过,应该是脚本自动生成的。于是,我就查了查libfreetype.la,结果如下:
book@100ask:~/app/freetype-2.10.2$ grep -nr "libfreetype.la"
builds/unix/freetype-config.in:208:  echo ${SYSROOT}$libdir/libfreetype.la
ChangeLog.23:4517:      it because libfreetype.la is built with -no-undefined.  This fixes a
不知是哪里出错了

请先 登录 后评论

3 个回答

百问网-黄老师
擅长:嵌入式开发

如果你按教程操作,先安装libpng,再安装freetype就不该出现报错。

attachments-2021-02-jelaYpEA60176088d2958.png


attachments-2021-02-eyXiPncv601760bd44a3f.png

请先 登录 后评论
可樂泡冰

(接上)

attachments-2021-02-ewT93tJz601769cb759a7.png

请先 登录 后评论
百问网-张老师
擅长:嵌入式开发

你看看这个帖子,一样的问题,已解决。

http://bbs.100ask.net/question/15299

请先 登录 后评论