uniapp开发app框架在提升开发效率中的独特优势与应用探索
1467
2022-09-24
Mingw编译安装FreeType2.4.6
FreeType2.4.6-:
加压后放到:msys\1.0\home\Administrator\freetype-2.4.6
命令:
./configure --prefix=/mingw
此处一般不会出现问题,除非搭建的WinGW环境有问题。
$ ./configure FreeType build system -- automatic system detection The following settings are used: platform unix compiler cc configuration directory ./builds/unix configuration rules ./builds/unix/unix.mk If this does not correspond to your system or settings please remove the file `config.mk' from this directory then read the INSTALL file for help. Otherwise, simply type `C:/MinGW/bin/make' again to build the library, or `C:/MinGW/bin/make refdoc' to build the API reference (the latter needs python). Generating modules list in ./objs/ftmodule.h... * module: truetype (Windows/Mac font files with extension *.ttf or *.ttc) * module: type1 (Postscript font files with extension *.pfa or *.pfb) * module: cff (OpenType fonts with extension *.otf)
make
此处出错,说在此处创建ftsystem文件失败 freetype-2.4.6/objs/.libs/ftsystem.o,原来在freetype-2.4.6/objs/下没有.libs文件夹。
在freetype-2.4.6/objs/下执行
mkdir .libs
重新make,OK.
$ make ./builds/unix/libtool --mode=compile gcc -pedantic -ansi -IC:/msys/1.0/home/Administrator/freetype-2.4.6/o bjs -I./builds/unix -IC:/msys/1.0/home/Administrator/freetype-2.4.6/include -c -Wall -g -O2 -DFT_CONFIG_CON FIG_H="
make install
出错,原因是找不到install指令。解决方法:在freetype-2.4.6\builds\unix找到unix-def.mk
把
INSTALL := /bin/install -c
改成
INSTALL := c:/msys/1.0/bin/install -c
prefix := C:\msys\1.0\mingw
改成
prefix := /mingw
重新执行make install OK。
for P in C:/msys/1.0/home/Administrator/freetype-2.4.6/include/freetype/config/ftconfig.h C:/msys/1.0/home/ Administrator/freetype-2.4.6/include/freetype/config/ftheader.h C:/msys/1.0/home/Administrator/freetype-2.4 .6/include/freetype/config/ftmodule.h C:/msys/1.0/home/Administrator/freetype-2.4.6/include/freetype/config /ftoption.h C:/msys/1.0/home/Administrator/freetype-2.4.6/include/freetype/config/ftstdlib.h C:/msys/1.0/h ome/Administrator/freetype-2.4.6/objs/ftmodule.h ; do \ /bin/install -c -m 644 \ $P /usr/local/include/freetype2/freetype/config ; \ done rm -f /usr/local/include/freetype2/freetype/cache/* rmdir /usr/local/include/freetype2/freetype/cache rm -f /usr/local/include/freetype2/freetype/internal/* rmdir /usr/local/include/freetype2/freetype/internal rmdir: `/usr/local/include/freetype2/freetype/internal': No such file or directory make: [install] Error 1 (ignored) /bin/install -c -m 644 ./builds/unix/ft2unix.h \ /usr/local/include/ft2build.h process_begin: CreateProcess(NULL, /bin/install -c -m 644 ./builds/unix/ft2unix.h /usr/local/include/ft2bui ld.h, ...) failed. make (e=3): 系统找不到指定的路径。 make: *** [install] Error 3
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~