win10下编译OpenJDK,提示找不到freetype.lib

一叶知秋23 发布于 03/27 12:29
阅读 70
收藏 0

执行下面这句命令时,最后报错

./configure --with-freetype=./freetype-2.7/ --with-target-bits=64 --enable-debu

下面是报错信息:

configure: Found freetype include files at ./freetype-2.7//include using --with-freetype
./freetype-2.7//include"ENTIAL_FREETYPE_INCLUDE_PATH to "/cygdrive/d/Nemo/software/cygwin
./freetype-2.7//lib" POTENTIAL_FREETYPE_LIB_PATH to "/cygdrive/d/Nemo/software/cygwin
./freetype-2.7//includencludes... /cygdrive/d/Nemo/software/cygwin
./freetype-2.7//libpe libraries... /cygdrive/d/Nemo/software/cygwin
configure: Rewriting FREETYPE_INCLUDE_PATH to "/cygdrive/d/nemo/software/cygwin"
configure: Rewriting FREETYPE_LIB_PATH to "/cygdrive/d/nemo/software/cygwin"
checking if we can compile and link with freetype... no
configure: Could not compile and link with freetype. This might be a 32/64-bit mismatch.
configure: Using FREETYPE_CFLAGS=-I/cygdrive/d/nemo/software/cygwin and FREETYPE_LIBS=/cygdrive/d/nemo/software/cygwin/freetype.lib
configure: error: Can not continue without freetype. You need to build a 64-bit version of freetype.
This is not readily available.
You can find source code and build instructions on
http://www.freetype.org/
If you put the resulting build in "C:\Program Files\GnuWin32", it will be found automatically.
configure exiting with result code 1


大题意思是,我编译的freetype.lib 不是64位的,我需要编译一个64位的freetype.lib,但是我已经用vs2010编译出了64位的freetype.lib和freetype.dll,并且在freetype-2.7下也建立了lib文件夹,并且已经将编译好的lib、dll文件放了进去。但是还是有这个问题,大神支招

加载中
0
Kit_lee
Kit_lee

把源码中的ft2build.h也放到include目录

FREETYPE_CFLAGS和FREETYPE_LIBS两个环境变量检查一下

一叶知秋23
一叶知秋23
回复 @Kit_lee : 已经处理好了,是因为我原来装中文版的vs2010不行,换成英文版的vs2010后问题解决。
一叶知秋23
一叶知秋23
回复 @Kit_lee : 好嘞,我再试试,我看也有说,我编译出的lib有问题的,我用的是中文本的vs2010,我先试试你的方法,如果不行我就搞个英文版的试试。
Kit_lee
Kit_lee
回复 @一叶知秋23 : 那你再试试改--with-freetype参数,不要用相对路径,用cygwin的映射路径。例如 --with-freetype=/cygdrive/d/Nemo/software/freetype-2.7
一叶知秋23
一叶知秋23
:grimacing:我检查了一下,没有什么问题
返回顶部
顶部