pytorch / executorch

On-device AI across mobile, embedded and edge for PyTorch
https://pytorch.org/executorch/
Other
1.96k stars 324 forks source link

Unable to compile android runtime executable file #6086

Open YZJ0716 opened 1 week ago

YZJ0716 commented 1 week ago

🐛 Describe the bug

CMake Error at CMakeLists.txt:273 (add_subdirectory): The source directory

D:/xxxxxx/executorch/backends/xnnpack/third-party/cpuinfo

does not contain a CMakeLists.txt file.

CMake Error at CMakeLists.txt:308 (add_subdirectory): The source directory

D:/xxxxxx/executorch/backends/xnnpack/third-party/pthreadpool

does not contain a CMakeLists.txt file.

Using python executable 'python3' CMake Warning at build/Utils.cmake:264 (message): Failed to resolve buck2. Call Stack (most recent call first): CMakeLists.txt:331 (resolve_buck2)

CMake Warning at build/Utils.cmake:265 (message): Call Stack (most recent call first): CMakeLists.txt:331 (resolve_buck2)

Killing buck2 daemon executorch: Generating source lists executorch: Generating source file list D:/xxxxxx/executorch_srcs.cmake Error while generating D:/xxxxxx/executorch_srcs.cmake. Exit code: 9009 Output:

Error:

CMake Error at build/Utils.cmake:216 (message): executorch: source list generation failed Call Stack (most recent call first): CMakeLists.txt:340 (extract_sources)

Configuring incomplete, errors occurred!

Versions

executorch : 0.4.0 CMake : 3.30.4 System : window 11

larryliu0820 commented 1 week ago

Can you try:

bash install_requirements.sh --clean

under executorch/ directory, and then run the android build command

larryliu0820 commented 1 week ago

Also it is good practice to run

git submodule update --init