开发者社区> 问答> 正文

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

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

./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文件放了进去。但是还是有这个问题,大神支招

展开
收起
爱吃鱼的程序员 2020-06-05 14:11:16 1223 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB
                        <p>把源码中的<span>ft2build.h也放到include目录</span></p> 
    

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

                            回复 <a class="referer" target="_blank">@Kit_lee</a>  : 已经处理好了,是因为我原来装中文版的vs2010不行,换成英文版的vs2010后问题解决。
                        
    
                            回复 <a class="referer" target="_blank">@Kit_lee</a>  : 好嘞,我再试试,我看也有说,我编译出的lib有问题的,我用的是中文本的vs2010,我先试试你的方法,如果不行我就搞个英文版的试试。
                        
    
                            回复 <a class="referer" target="_blank">@一叶知秋23</a>  : 那你再试试改--with-freetype参数,不要用相对路径,用cygwin的映射路径。例如 --with-freetype=/cygdrive/d/Nemo/software/freetype-2.7
                        
    
                            :grimacing:我检查了一下,没有什么问题
    
    2020-06-05 14:11:32
    赞同 展开评论 打赏
问答分类:
问答地址:
相关产品:
问答排行榜
最热
最新

相关电子书

更多
CentOS Nginx PHP JAVA多语言镜像使用手册 立即下载
CentOS Nginx PHP JAVA 多语言镜像使用手 立即下载
低代码开发师(初级)实战教程 立即下载