Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

llama_cpp_plugin: fix "Unknown CMake command "FetchContent_Declare" while building for Android #899

Merged
merged 2 commits into from
Apr 2, 2024

Conversation

keyur2maru
Copy link
Contributor

Android build throws the following error -

keyurmaru@fatman:~/openvino_all$ ${CMAKE_DIR}/bin/cmake   -DCMAKE_BUILD_TYPE=Release   -DANDROID_ABI=x86_64   -DANDROID_PLATFORM=26   -DCMAKE_TOOLCHAIN_FILE=${NDK_DIR}/build/cmake/android.toolchain.cmake   -DCMAKE_MAKE_PROGRAM=${CMAKE_DIR}/bin/ninja   -DANDROID_USE_LEGACY_TOOLCHAIN_FILE=OFF   -DENABLE_CLDNN=OFF   -DENABLE_OPENCV=OFF   -DENABLE_TEMPLATE=OFF   -DENABLE_SAMPLES=OFF   -DENABLE_PLUGINS_XML=ON   -DTHREADING=TBB   -DTBB_DIR=$(realpath oneTBB_install_x86/lib/cmake/TBB)   -DBUILD_nvidia_plugin=OFF   -DBUILD_custom_operations=OFF   -DIE_EXTRA_MODULES=$(realpath openvino_contrib/modules)   -GNinja   -S openvino -B openvino_build_x86
.
.
.
-- Register llama_cpp_plugin to be built in build-modules/llama_cpp_plugin
CMake Error at /home/keyurmaru/openvino_all/openvino_contrib/modules/llama_cpp_plugin/CMakeLists.txt:14 (FetchContent_Declare):
  Unknown CMake command "FetchContent_Declare".

Addition of include(FetchContent) seemed to resolve the issue

…hile building for Android

Build throws the following error -
keyurmaru@fatman:~/openvino_all$ ${CMAKE_DIR}/bin/cmake   -DCMAKE_BUILD_TYPE=Release   -DANDROID_ABI=x86_64   -DANDROID_PLATFORM=26   -DCMAKE_TOOLCHAIN_FILE=${NDK_DIR}/build/cmake/android.toolchain.cmake   -DCMAKE_MAKE_PROGRAM=${CMAKE_DIR}/bin/ninja   -DANDROID_USE_LEGACY_TOOLCHAIN_FILE=OFF   -DENABLE_CLDNN=OFF   -DENABLE_OPENCV=OFF   -DENABLE_TEMPLATE=OFF   -DENABLE_SAMPLES=OFF   -DENABLE_PLUGINS_XML=ON   -DTHREADING=TBB   -DTBB_DIR=$(realpath oneTBB_install_x86/lib/cmake/TBB)   -DBUILD_nvidia_plugin=OFF   -DBUILD_custom_operations=OFF   -DIE_EXTRA_MODULES=$(realpath openvino_contrib/modules)   -GNinja   -S openvino -B openvino_build_x86
.
.
.
-- Register llama_cpp_plugin to be built in build-modules/llama_cpp_plugin
CMake Error at /home/keyurmaru/openvino_all/openvino_contrib/modules/llama_cpp_plugin/CMakeLists.txt:14 (FetchContent_Declare):
  Unknown CMake command "FetchContent_Declare".

Addition of `include(FetchContent)` seemed to resolve the issue

Signed-off-by: keyur2maru <kd2maru@gmail.com>
@keyur2maru keyur2maru requested a review from a team as a code owner March 31, 2024 08:31
@github-actions github-actions bot added the category: build OpenVINO cmake script / infra label Mar 31, 2024
@vshampor
Copy link
Contributor

vshampor commented Apr 1, 2024

LGTM

@ilya-lavrenov
Copy link
Contributor

build_jenkins

@ilya-lavrenov
Copy link
Contributor

build_jenkins

@ilya-lavrenov ilya-lavrenov merged commit 8a7bf32 into openvinotoolkit:master Apr 2, 2024
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: build OpenVINO cmake script / infra
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants