Hello!

I attempted to cross-compile DepthAI-Core using x86_64-linux-gnu-gcc-8 for aarch64, but it was unsuccessful.

Is there a known solution to this issue, or perhaps a precompiled version available for aarch64?

Best regards,

Paul

    (Sorry I failed to post the screenshot)

    The issue is related to the hunter packages:
    (

      Okay, here are the errors that occur when I attempt to run CMake:

      ccs@ccs-VirtualBox:~/depthai-core/build$ cmake ..
      -- Using existing generated toolchain
      -- Using toolchain file: /home/ccs/depthai-core/build/generated/toolchain.cmake
      -- [hunter] Calculating Toolchain-SHA1
      CMake Error at /home/ccs/.hunter/_Base/Download/Hunter/0.23.322/cb0ea1f/Unpacked/cmake/modules/hunter_calculate_toolchain_sha1.cmake:52 (configure_file):
        Operation not permitted
      Call Stack (most recent call first):
        /home/ccs/.hunter/_Base/Download/Hunter/0.23.322/cb0ea1f/Unpacked/cmake/modules/hunter_apply_gate_settings.cmake:138 (hunter_calculate_toolchain_sha1)
        /home/ccs/.hunter/_Base/Download/Hunter/0.23.322/cb0ea1f/Unpacked/cmake/modules/hunter_finalize.cmake:73 (hunter_apply_gate_settings)
        /home/ccs/.hunter/_Base/Download/Hunter/0.23.322/cb0ea1f/Unpacked/cmake/modules/hunter_add_package.cmake:23 (hunter_finalize)
        cmake/depthaiDependencies.cmake:12 (hunter_add_package)
        CMakeLists.txt:173 (include)
      
      
      
      [hunter ** INTERNAL **] Unexpected empty string
      [hunter ** INTERNAL **] [Directory:/home/ccs/depthai-core/cmake]
      
      ------------------------------ ERROR -----------------------------
          https://hunter.readthedocs.io/en/latest/reference/errors/error.internal.html
      ------------------------------------------------------------------
      
      CMake Error at /home/ccs/.hunter/_Base/Download/Hunter/0.23.322/cb0ea1f/Unpacked/cmake/modules/hunter_error_page.cmake:12 (message):
      Call Stack (most recent call first):
        /home/ccs/.hunter/_Base/Download/Hunter/0.23.322/cb0ea1f/Unpacked/cmake/modules/hunter_internal_error.cmake:13 (hunter_error_page)
        /home/ccs/.hunter/_Base/Download/Hunter/0.23.322/cb0ea1f/Unpacked/cmake/modules/hunter_assert_not_empty_string.cmake:9 (hunter_internal_error)
        /home/ccs/.hunter/_Base/Download/Hunter/0.23.322/cb0ea1f/Unpacked/cmake/modules/hunter_make_directory.cmake:12 (hunter_assert_not_empty_string)
        /home/ccs/.hunter/_Base/Download/Hunter/0.23.322/cb0ea1f/Unpacked/cmake/modules/hunter_apply_gate_settings.cmake:142 (hunter_make_directory)
        /home/ccs/.hunter/_Base/Download/Hunter/0.23.322/cb0ea1f/Unpacked/cmake/modules/hunter_finalize.cmake:73 (hunter_apply_gate_settings)
        /home/ccs/.hunter/_Base/Download/Hunter/0.23.322/cb0ea1f/Unpacked/cmake/modules/hunter_add_package.cmake:23 (hunter_finalize)
        cmake/depthaiDependencies.cmake:12 (hunter_add_package)
        CMakeLists.txt:173 (include)

      Hi @neumpau

      CMake Error at /home/ccs/.hunter/_Base/Download/Hunter/0.23.322/cb0ea1f/Unpacked/cmake/modules/hunter_calculate_toolchain_sha1.cmake:52 (configure_file):
        Operation not permitted

      is likely the root cause. Can't say for sure what causes it; Depthai should be cross-compileable. I suggest pasting the logs to https://chatgpt.com/ until it is resolved.

      Thanks,
      Jaka

      Perhaps the user doesn't have write permissions to the /home/css/.hunter/ folder?

      You can try changing hunter root with -DHUNTER_ROOT=build/.hunter