[已解决](有点:):我可以使用相同的系统构建2.4.10版本的无问题 . 我将使用这个旧版本 . 它似乎缺乏'harfbuzz'但我想要一个最小的系统,所以它没关系 . [已解决]
我的构建系统是Msys2 / mingw64 . 我最近从Msys2 WEB站点安装了它 . 它在Windows 7 Ultimate 64位下运行 . 我试图构建Freetype2库(版本2.9.1) . 我先运行以下命令:
./configure --host=x86_64-w64-mingw32 --with-zlib=no --with-bzip2=no
--with-png=no --with-harfbuzz=no --with-old-mac-fonts=no
Yaakov在Stackoverflow中提出了'./configure --host = x86_64-w64-mingw32'部分:
Compile freetype-2.4.9 with MinGW-w64/Cygwin
他声称它没有问题 . 其他选项是我的补充(我想要一个没有外部依赖的最小库) .
结果如下:
config.status: creating ftoption.h
config.status: creating unix-cc.mk
config.status: creating unix-def.mk
config.status: creating ftconfig.h
config.status: executing libtool commands
configure:
Library configuration:
external zlib: no
bzip2: no
libpng: no
harfbuzz: no
make: Nothing to be done for 'unix'.
然后我尝试运行'make'并得到以下错误:
$ make
builds/toplevel.mk:169: /home/xxxx/freetype-2.9.1/builds/modules.mk: No
such file or directory
make: *** No rule to make target '/home/xxxx/freetype-2.9.1/builds
modules.mk'. Stop.
所以在Makefile中没有正确设置顶级目录(配置错误?) . 在Makefile TOP_DIR中设置为'd:/Msys2/home/xxxx/freetype-2.9.1'后,我收到以下错误:
d:/Msys2/home/xxxx/freetype-2.9.1/builds/toplevel.mk:169: /home/xxxx
/freetype-2.9.1/builds/modules.mk: No such file or directory
make: *** No rule to make target '/home/xxxx/freetype-2.9.1/builds
/modules.mk'. Stop.
因此,似乎变量'TOP_DIR'现在在Makefile中是正确的,但它不会传递给包含的'toplevel.mk' . 我甚至尝试在'toplevel.mk'本身初始化TOP_DIR,但它不起作用,我得到了同样的错误 .
如果有人能告诉我如何消除这个错误并构建lib,我将不胜感激 . 谢谢!