AliceVision icon indicating copy to clipboard operation
AliceVision copied to clipboard

submodule(s) are missing, please update your repository

Open pancrazioxiaohan opened this issue 1 year ago • 3 comments

use cmd to build

cmake .. -DCMAKE_TOOLCHAIN_FILE=D:\vcpkg-master\scripts\buildsystems\vcpkg.cmake -S=D:\AliceVision-develop  -DVCPKG_TARGET_TRIPLET=x64-windows -G "Visual Studio 16 2019" -A x64 -T v142,host=x64

CMake Error at src/CMakeLists.txt:181 (message):
   submodule(s) are missing, please update your repository:
    > git submodule update -i
-- Configuring incomplete, errors occurred!

code in CMakeLists.txt

# ==============================================================================
# Check that submodule have been initialized and updated
# ==============================================================================
if(NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/dependencies/MeshSDFilter/external)
  message(FATAL_ERROR
    "\n submodule(s) are missing, please update your repository:\n"
    "  > git submodule update -i\n")
endif()

but in browser dependencies/MeshSDFilter/external not exist i try git submodule update nothing change

pancrazioxiaohan avatar Mar 09 '24 06:03 pancrazioxiaohan

i find in github explor MeshSDFilter is a project ,so i try to download and build again.

pancrazioxiaohan avatar Mar 09 '24 06:03 pancrazioxiaohan

Hi @pancrazioxiaohan,

Did you clone the projet with the --recursive option as indicated in https://github.com/alicevision/AliceVision/blob/develop/INSTALL.md#compile-the-project?

cbentejac avatar Mar 20 '24 15:03 cbentejac

All I did was git submodule update --init

The issue was fixed

OmieSawie avatar Jul 03 '24 10:07 OmieSawie