Hi,
I am trying to cross compile the depthai-core library for a special remote linux device. It seems my toolchain file is getting ignored for some reason.
Command:
cmake .. \
-DCMAKE_TOOLCHAIN_FILE=../ifm_toolchain.cmake \
-D'BUILD_SHARED_LIBS=ON' \
-DHUNTER_ENABLED=OFF \
-DDEPTHAI_USE_VCPKG=OFF \
-DDEPTHAI_BUILD_EXAMPLES=OFF \
-DDEPTHAI_BUILD_TESTS=OFF \
-DDEPTHAI_TEST_EXAMPLES=OFF \
-DCMAKE_INSTALL_PREFIX=$(pwd)/../install
Output:
-- Including vcpkg.cmake
-- Found Git: /usr/bin/git (found version "2.39.5")
glibc 2.36
glibc 2.36
-- VCPKG from: /home/devel/Desktop/my-depthai-builds/CrossCompile/depthai-core/build
-- No VCPKG executable found; getting new version ready...
-- VCPKG bootstrap script not found; fetching...
Cloning into 'vcpkg'...
-- Using VCPKG Version: (latest)
HEAD is now at 120deac306 [eigen3] update to 3.4.1-250818 from 3.4.0 (#34542)
Downloading vcpkg-glibc...
vcpkg package management program version 2025-07-21-d4b65a2b83ae6c3526acd1c6f3b51aff2a884533
See LICENSE.txt for license information.
-- Built VCPKG!
-- VCPKG OK!
-- Install packages using VCPKG:
-- * from your CMakeLists.txt by calling vcpkg_add_package(<PKG_NAME>)
-- * by providing a 'vcpkg.json' in your project directory [https://devblogs.microsoft.com/cppblog/take-control-of-your-vcpkg-dependencies-with-versioning-support/]
-- VCPKG using:
-- vcpkg package management program version 2025-07-21-d4b65a2b83ae6c3526acd1c6f3b51aff2a884533
-- Generating new toolchain...
-- Using toolchain file: /home/devel/Desktop/my-depthai-builds/CrossCompile/depthai-core/build/generated/toolchain.cmake
-- Running vcpkg install
Can somebody help here?