我正试图从源代码构建openvino,但我收到了一个非常奇怪的错误,抱怨
在/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.7/include/Python3.7m/Python.h:139:/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.7/include/Python3.7m/pythonrun.h:142:5:错误:未定义"TAPI",计算结果为0[-Werror,-Wundef]#如果TAPI
这就是我配置cmake 的方式
cmake .. -DCMAKE_BUILD_TYPE=Release
-DENABLE_PYTHON=ON
-DPYTHON_EXECUTABLE=/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.7/bin/python3.7
-DPYTHON_LIBRARY=/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.7/lib/libpython3.7m.dylib
-DPYTHON_INCLUDE_DIR=/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.7/include/python3.7m
-DENABLE_CLDNN=OFF
我正在使用MacOS Catalina 10.15.6和python3.7。
我在网上搜索过,但找不到任何相关的资源。
使用以下选项指定精确的Python版本:
-DPYTHON_EXECUTABLE=/Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7
-DYTHON_IBRARY=/Librare/Frameworks/Python.framework/Versions3.7/lib/libpython3.7m.dylib
/DYTHON_INCLUDE_DIR=/Library/Frameworks/Python.framework/Versions/3.7/INCLUDE/python3.7m
更多信息请访问以下链接:https://github.com/openvinotoolkit/openvino/blob/master/build-instruction.md#additional-构建选项-3