alicevision / AliceVision

Photogrammetric Computer Vision Framework
http://alicevision.org
Other
2.89k stars 806 forks source link

submodule(s) are missing, please update your repository #1675

Open pancrazioxiaohan opened 3 months ago

pancrazioxiaohan commented 3 months ago

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 commented 3 months ago

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

cbentejac commented 3 months ago

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?

OmieSawie commented 2 hours ago

All I did was git submodule update --init

The issue was fixed