luxonis / depthai-core

DepthAI C++ Library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Compilation Error] Got CMake Error at shared/depthai-bootloader-shared.cmake:33

shoufei403 opened this issue · comments

version: depthai-core-v2.15.4
error info:

CMake Error at shared/depthai-shared.cmake:39 (if):
  if given arguments:

    "STREQUAL" "-"

  Unknown arguments specified
CMake Error at shared/depthai-bootloader-shared.cmake:33 (if):
  if given arguments:

    "STREQUAL" "-"

  Unknown arguments specified

I comment where error happen, then compilation success.
The errors happen in shared/depthai-bootloader-shared.cmake and shared/depthai-shared.cmake.
Comment the content:

        #string(SUBSTRING ${statusCommit} 0 1 status)
        #if((${status}) STREQUAL "-")
        #    message(FATAL_ERROR "Submodule 'depthai-bootloader-shared' not initialized/updated. Run 'git submodule update --init --recursive' first")
        #endif()

Can you check this out?

@shoufei403 Run 'git submodule update --init --recursive' first if you cloned the repo with git

Thanks for your responding. Actually, I download from https://github.com/luxonis/depthai-core/releases/tag/v2.15.4.

@shoufei403
To download a specific version - download it under releases. It already includes packed shared submodules. See: https://github.com/luxonis/depthai-core/releases/download/v2.15.4/depthai-core-v2.15.4.tar.gz (under assets of 2.15.4 Releases)

Got it. Thanks for you guys help.