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

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

具体错误:


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<ft2build.h>
          #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 <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <math.h>
/* #include <unistd.h> */
#include <freetype/config/ftheader.h>
目录
相关文章
|
7月前
MTK在编译10A的target时报错:make: *** [mmi_feature_check]
MTK在编译10A的target时报错:make: *** [mmi_feature_check]
32 0
编译OpenJDK11:configure: error: Target CPU mismatch. We are building for x86_64 but CL is for “版“; exp
编译OpenJDK11:configure: error: Target CPU mismatch. We are building for x86_64 but CL is for “版“; exp
174 0
|
C++
编译OpenJDK11:fixpath Unknown argument: -nologo
编译OpenJDK11:fixpath Unknown argument: -nologo
128 0
MAC编译lame ld: symbol(s) not found for architecture x86_64/_lame_init_old“, referenced from
MAC编译lame ld: symbol(s) not found for architecture x86_64/_lame_init_old“, referenced from
267 0
|
开发工具 git
编译pluma:configure.ac:229: error: required file ‘pluma/mate-submodules/Makefile.in‘ not found
编译pluma:configure.ac:229: error: required file ‘pluma/mate-submodules/Makefile.in‘ not found
130 0
|
Shell
编译OpenJDK8:Could not find freetype! You need to build a 64-bit version of freetype
编译OpenJDK8:Could not find freetype! You need to build a 64-bit version of freetype
87 0
编译OpenJDK8:configure: could not find or use freetype at location
编译OpenJDK8:configure: could not find or use freetype at location
165 0
|
编译器 C语言
CodeBlocks出现Can‘t find compiler executable in your search path for GNU GCC Compier错误
CodeBlocks出现Can‘t find compiler executable in your search path for GNU GCC Compier错误
483 0
CodeBlocks出现Can‘t find compiler executable in your search path for GNU GCC Compier错误
编译OpenJDK12:valid values for --with-freetype are system and bundled
编译OpenJDK12:valid values for --with-freetype are system and bundled
81 0
编译OpenJDK12:Target CPU mismatch. We are building for x86_64 but CL is for ""; expected "x64"
编译OpenJDK12:Target CPU mismatch. We are building for x86_64 but CL is for ""; expected "x64"
122 0