您当前的位置: 首页 > 

柳鲲鹏

暂无认证

  • 0浏览

    0关注

    4642博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

编译OpenJDK8:configure: Could not compile and link with freetype. This might be a 32/64-bit mismatch.

柳鲲鹏 发布时间:2020-11-06 14:03:43 ,浏览量:0

  具体错误:

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.

  之前遇到同类问题:

https://blog.csdn.net/weixin_45021036/article/details/102691495

  检查了一下,确认库是64位的,怎么又出现了?于是检查了报错位置:

    # Try to compile it
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can compile and link with freetype" >&5
$as_echo_n "checking if we can compile and link with freetype... " >&6; }

          #include
          #include FT_FREETYPE_H
          int main () {
            FT_Init_FreeType(NULL);
            return 0;
          }

          { $as_echo "$as_me:${as_lineno-$LINENO}: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&5
$as_echo "$as_me: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&6;}

  这里意思是检查一下库是否正常。库肯定正常,那就是头文件有问题?这个头文件为了在MAC上编译,加了几个包含。于是进行了反复测试,原来是包含的unistd.h导致。

#include 
#include 
#include 

#include 
/* #include  */

#include 

 

关注
打赏
1665724893
查看更多评论
立即登录/注册

微信扫码登录

0.0522s