openabe
openabe copied to clipboard
Mac make
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cstddef:37: ../version:1:1: error: expected unqualified-id 1.0.0
The reason for this problem is probably as follows:
- the current directory (openabe/) is added to the library include path;
- the openabe project has itself a 'VERSION' file;
- the filename on macOS is case insensitive.
Thus, to address this problem, you can either rename the 'VERSION' file (in the openabe project) or just delete it.
If the project still cannot make successfully after applying the above solution, then you need to check whether there is a 'version' file under the '/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/' directory. If not, you can try either of the following ways:
- edit 'Makefile.common' and 'src/Makefile', and change 'gcc' to 'cc' or 'clang'
- update 'gcc', and make sure its '--with-gxx-include-dir' configuration is like '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++'
Good luck~