-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Description
🐛 Bug
according to the doc https://llm.mlc.ai/docs/deploy/android.html to create android project.
the first steps all success and have Compilied Android-capable models, but when I exec the ./prepare_libs.sh show below error:
$ ./prepare_libs.sh
-
rustup target add aarch64-linux-android
info: component 'rust-std' for target 'aarch64-linux-android' is up to date -
mkdir -p build/model_lib
-
python prepare_model_lib.py
Creating lib from ['D:\project\ai\llm\MLC-LLM\download\mlc-llm\dist\Llama-2-7b-chat-hf-q4f16_1\Llama-2-7b-chat-hf-q4f16_1-android.tar'].. -
cd build
-
touch config.cmake
-
echo 'D:\project\ai\llm\MLC-LLM\download\mlc-llm\3rdparty\tvm'
D:\project\ai\llm\MLC-LLM\download\mlc-llm\3rdparty\tvm -
'[' 'D:\project\ai\llm\MLC-LLM\download\mlc-llm\3rdparty\tvm' -ne 0 ']'
./prepare_libs.sh: line 13: [: D:\project\ai\llm\MLC-LLM\download\mlc-llm\3rdparty\tvm: integer expression expected -
cmake .. -DCMAKE_BUILD_TYPE=Release '-DCMAKE_TOOLCHAIN_FILE=D:\android-sdk\ndk\26.1.10909125/build/cmake/android.toolchain.cmake' -DCMAKE_INSTALL_PREFIX=. -DCMAKE_CXX_FLAGS=-O3 -DANDROID_ABI=arm64-v8a -DANDROID_NATIVE_API_LEVEL=android-24 -DANDROID
_PLATFORM=android-24 -DCMAKE_FIND_ROOT_PATH_MODE_PACKAGE=ON -DANDROID_STL=c++_static -DUSE_HEXAGON_SDK=OFF -DMLC_LLM_INSTALL_STATIC_LIB=ON -DCMAKE_SKIP_INSTALL_ALL_DEPENDENCY=ON -DUSE_OPENCL=ON -DUSE_CUSTOM_LOGGING=ON
-- Building for: Visual Studio 17 2022
CMake Error at CMakeLists.txt:3 (project):
Failed to run MSBuild command:D:/Program Files/VisualStudio/install/MSBuild/Current/Bin/amd64/MSBuild.exe
to get the value of VCTargetsPath:
MSBuild version 17.8.3+195e7f5a3 for .NET Framework
Build started 11/27/2023 7:02:14 PM.Project "D:\project\ai\llm\MLC-LLM\download\mlc-llm\android\build\CMakeFiles\3.22.1-g37088a8-dirty\VCTargetsPath.vcxproj" on node 1 (default targets).
D:\Program Files\VisualStudio\install\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(832,5): error : The BaseOutputPath/OutputPath property is not set for project 'VCTargetsPath.vcxproj'. Please check to make sure that you hav
e specified a valid combination of Configuration and Platform for this project. Configuration='Debug' Platform='x64'. You may be seeing this message because you are trying to build a project without a solution file, and have specified a non-defaul
t Configuration or Platform that doesn't exist for this project. [D:\project\ai\llm\MLC-LLM\download\mlc-llm\android\build\CMakeFiles\3.22.1-g37088a8-dirty\VCTargetsPath.vcxproj]
Done Building Project "D:\project\ai\llm\MLC-LLM\download\mlc-llm\android\build\CMakeFiles\3.22.1-g37088a8-dirty\VCTargetsPath.vcxproj" (default targets) -- FAILED.Build FAILED.
"D:\project\ai\llm\MLC-LLM\download\mlc-llm\android\build\CMakeFiles\3.22.1-g37088a8-dirty\VCTargetsPath.vcxproj" (default target) (1) ->
(_CheckForInvalidConfigurationAndPlatform target) ->
D:\Program Files\VisualStudio\install\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(832,5): error : The BaseOutputPath/OutputPath property is not set for project 'VCTargetsPath.vcxproj'. Please check to make sure that you h
ave specified a valid combination of Configuration and Platform for this project. Configuration='Debug' Platform='x64'. You may be seeing this message because you are trying to build a project without a solution file, and have specified a non-defa
ult Configuration or Platform that doesn't exist for this project. [D:\project\ai\llm\MLC-LLM\download\mlc-llm\android\build\CMakeFiles\3.22.1-g37088a8-dirty\VCTargetsPath.vcxproj]0 Warning(s) 1 Error(s)Time Elapsed 00:00:04.69
Exit code: 1
-- Configuring incomplete, errors occurred!