我在Mac上安装了Clang。而且我想在Mac上安装tesseract培训工具。我在安装tesseract培训工具时遇到的错误如下。
ajinkyas-MacBook-Pro:tesseract ajinkyabobade$ ./configure CC=gcc-8 CXX=g++-8 CPPFLAGS=-I/usr/local/opt/icu4c/include LDFLAGS=-L/usr/local/opt/icu4c/lib
checking whether the C++ compiler works... no
configure: error: in `/Users/ajinkyabobade/tesseract':
configure: error: C++ compiler cannot create executables
See `config.log' for more details
我遵循的步骤已记录在here
中从我的研究中,我发现我正在使用的Mac(v 10.14.5)不再支持g ++。 每当我输入
ajinkyas-MacBook-Pro:tesseract ajinkyabobade$ g++ -v
我明白了
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/c++/4.2.1
Apple LLVM version 10.0.1 (clang-1001.0.46.4)
Target: x86_64-apple-darwin18.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
该Clang与g ++链接。但是我想使用tesseract的核心功能,为此我需要g ++。我该怎么办?