Hi, I am having some issues building the standalone examples and enabling the python binding following https://github.com/llvm/llvm-project/tree/main/mlir/examples/standalone
Command I use
-DCMAKE_BUILD_TYPE=Release \
-DLLVM_TARGETS_TO_BUILD=host \
-DLLVM_ENABLE_PROJECTS=mlir \
-DLLVM_EXTERNAL_PROJECTS=standalone-dialect -DLLVM_EXTERNAL_STANDALONE_DIALECT_SOURCE_DIR=../ -DMLIR_ENABLE_BINDINGS_PYTHON=ON
But I am getting some errors like
CMake Error at /Users/xingyuzhou/Downloads/mlir/llvm-project/mlir/cmake/modules/AddMLIRPython.cmake:560 (file):
file failed to create directory:
/python_packages/standalone/mlir_standalone/dialects
because: No such file or directory
Call Stack (most recent call first):
/Users/xingyuzhou/Downloads/mlir/llvm-project/mlir/cmake/modules/AddMLIRPython.cmake:215 (add_mlir_python_sources_target)
/Users/xingyuzhou/Downloads/mlir/llvm-project/mlir/cmake/modules/AddMLIRPython.cmake:247 (_process_target)
/Users/xingyuzhou/Downloads/mlir/llvm-project/mlir/examples/standalone/python/CMakeLists.txt:53 (add_mlir_python_modules)
CMake Error at /Users/xingyuzhou/Downloads/mlir/llvm-project/mlir/cmake/modules/AddMLIRPython.cmake:560 (file):
file failed to create directory:
/python_packages/standalone/mlir_standalone/dialects
because: No such file or directory
Call Stack (most recent call first):
/Users/xingyuzhou/Downloads/mlir/llvm-project/mlir/cmake/modules/AddMLIRPython.cmake:215 (add_mlir_python_sources_target)
/Users/xingyuzhou/Downloads/mlir/llvm-project/mlir/cmake/modules/AddMLIRPython.cmake:247 (_process_target)
/Users/xingyuzhou/Downloads/mlir/llvm-project/mlir/examples/standalone/python/CMakeLists.txt:53 (add_mlir_python_modules)
I am wondering how to fix this and build this example, Thanks!