交叉编译freetype问题?

我在交叉编译后有些文件中的函数 前面是
FT_EXPORT_DEF( void )
FT_List_Finalize( FT_List list,
FT_List_Destructor destroy,
FT_Memory memory,
void* user )

导致在调用此函数时提示找不到这个文件:
图片说明

是编译条件不对吗,如何解决?

我的编译过程:
./configure CC=/opt/hisi-linux/x86-arm/aarch64-himix100-linux/bin/aarch64-himix100-linux-gcc --host=aarch64-himix100-linux --prefix=/homefont/test/freetype --enable-shared=no --enable-static=yes

make && make install

不知道你的问题是编译freetype出错,还是编译你的应用程序出错了!

前者可以尝试裁剪下
修改modules.cfg,去掉不需要的功能,最后保留如下选项:
FONT_MODULES += truetype
FONT_MODULES += sfnt
RASTER_MODULES += raster
AUX_MODULES += gzip
AUX_MODULES += psnames
BASE_EXTENSIONS += ftbitmap.c
BASE_EXTENSIONS += ftglyph.c
BASE_EXTENSIONS += ftstroke.c
随后
./configure
make
make install

后者可能是你的编译应用程序时没指定头文件+库

https://blog.csdn.net/oYangShanJin/article/details/48710405?utm_source=blogxgwz1