-
Notifications
You must be signed in to change notification settings - Fork 175
Move from Hunter to VCPKG #1170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
137 commits
Select commit
Hold shift + click to select a range
d052f99
initial deps moved to vcpkg
Serafadam 757dfd5
optional features
Serafadam 00ed9ef
Merge branch 'v3_visualizer_support' into v3_deps_cleanup
Serafadam 62e9331
vcpkg ports for httplib xlink and zlib
Serafadam f81d04b
downloading deps from vcpkg
Serafadam b8524e5
httplib from main repo
Serafadam 4a12c6d
install build essential in ci
Serafadam 3808c2c
install make in ci
Serafadam 7de9ad6
switch to official lz4
Serafadam 47128fb
update workflow
Serafadam 4bd1e16
clean build from vcpkg
Serafadam 777ef54
custom port for rtabmap
Serafadam 633ce8e
remove hunter gate
Serafadam 4c265b4
fixing zlib linking and adding hunter private data method
Serafadam a5b46cd
lz4 from luxonis
Serafadam 79a3b50
xlink-usb
Serafadam d071de8
tbb port for basalt
Serafadam 416feae
try lz4 without w4 flag
Serafadam f41d1ea
cpp standard for lz4
Serafadam 4087afe
tbb port args
Serafadam 70c31d4
add mongoose port
Serafadam 1fb8a95
standard for xlink
Serafadam aad83a0
tbb overflow patch
Serafadam eaa211f
custom gklib port
Serafadam 52e4a4e
g2o port update
Serafadam e196c5f
enable devtoolset in manylinux x86_64
Serafadam 42c024b
enable toolset for arm
Serafadam 6b4e3e4
try vcpkg caching in ci
Serafadam 5e89bbb
typo fix
Serafadam 97c88d0
update basalt ports
Serafadam a665548
new manylinux, opencv and pcl from vcpkg
Serafadam e9eafdc
lz4 name change
Serafadam f9d94fc
disable features for opencv
Serafadam e76c50c
switch order
Serafadam 54967cd
pcl and oepncv from vcpkg in docstrings ci
Serafadam c9e6494
use mainstream lz4
Serafadam 474abb1
update g2o commit
Serafadam ab58a4b
comment out pcl library dirs for now
Serafadam 5535e74
pcl include dirs update
Serafadam e206d79
update workflow
Serafadam 128c878
Update vcpkg.json
Serafadam 43f1650
remove hunter install dependencies
Serafadam fce860c
Merge branch 'v3_deps_cleanup' of github.com:luxonis/depthai-core int…
Serafadam 67ea4dc
updates in xlink and cpr ports
Serafadam 999ae87
disable basalt on windows for now
Serafadam cd7cc4c
Merge branch 'v3_develop' into v3_deps_cleanup
Serafadam 339579b
update to latest v3_develop
Serafadam 73334ec
xlink hunter bump
Serafadam 84db9ff
typo
Serafadam 760f608
add eol
Serafadam 6c677f8
xlink to latest
Serafadam ba181c9
try config fixup
Serafadam 0ffa613
libarchive port, lz4 from vcpkg
Serafadam 42b7de6
xlink hunter bump
Serafadam 968090e
pybind11 update
Serafadam 2675f34
update pybind11, split manylinux jobs to fix space issues
Serafadam 402925d
Update python-main.yml
Serafadam cb1dfe3
move find pybind
Serafadam be78865
Merge branch 'v3_deps_cleanup' of github.com:luxonis/depthai-core int…
Serafadam 9663a67
try fixing python matrix
Serafadam 106cfd5
revert pybind, remove depthai-core install from manylinux
Serafadam 6c17ad4
move ssl options
Serafadam 91ac591
remove double include
Serafadam 355ce28
fp16 from mainstream
Serafadam 8d5a65c
Revert "fp16 from mainstream"
Serafadam 27d1b7f
libarchive update
Serafadam a7a1fe4
update foxglove module
Serafadam 20c504f
fmt 11, highgui opencv component
Serafadam fa6b3f0
xlink windows patch, revert spdlog
Serafadam ac585c6
fix lower fmt version
Serafadam 174db68
windows link patch for xlink
Serafadam 042107f
some debug prints
Serafadam 63f541f
try with timeouts
Serafadam a8c267f
comment out resource bindings for now
Serafadam 4153d0a
try adding conditions in resources
Serafadam 110fe3b
comment out resource preload in depthai initialization
Serafadam 02947c5
typo in manylinux arm
Serafadam 1e0cd98
try ci with pcl and rtabmap
Serafadam 8048456
basalt on windows
Serafadam 2dc9bad
remove suitsparse from g2o
Serafadam 19a5831
g2o opengl patch
Serafadam ed6448b
update g2o gl patch
Serafadam ff050fe
update components on arm ci
Serafadam 90eb95d
remove openmp dep
Serafadam dc029aa
disable rtabmap on windows and linux arm
Serafadam 21e060b
bindings gen fix
Serafadam ca17259
remove prints in stubs gen
Serafadam aa2ea6e
set jobs num to 2 for vcpkg
Serafadam 01831c0
disable basalt on windows ci
Serafadam bc08483
update rtabmap on windows
Serafadam aa53ffd
remove hunter references
Serafadam 89d3d1c
cache in tests
Serafadam 4dafa03
basalt conf fixup
Serafadam 4354101
Merge branch 'v3_develop' into v3_deps_cleanup
Serafadam 88b8e0b
opencv with png support for failing test
Serafadam 36789ce
remove gklib
Serafadam adf0f28
update xlink libusb
Serafadam ed61660
update opencv port
Serafadam e8a2630
revert back
Serafadam 08a4437
xlink libusb external, ffmpeg opencv
Serafadam 9bcaed6
add deps for build-docstrings
Serafadam 9c42154
ffmpeg in opencv
Serafadam a359c95
Merge branch 'v3_develop' into v3_deps_cleanup
Serafadam 93b5c62
update deps
Serafadam 9c387b1
remove sudo in testing
Serafadam ab4e8fa
try bumping python version
Serafadam b8781cc
typo
Serafadam 6f10725
try installing jinja2 from pip
Serafadam dea3c19
mp4v2 config fixup
Serafadam 44819ac
remove apt install from test workflow
Serafadam 874f103
update deps for manylinux
Serafadam ff5c0ed
fix typo
Serafadam 56c5cd4
remove pybin cmd
Serafadam c89e373
try jinja install separately
Serafadam b90bd3b
remove gstreamer, bump vcpkg baseline
Serafadam 11d172d
update python ci
Serafadam f4810d4
ci update
Serafadam d8639bd
pytest ci update
Serafadam 7aec666
add jinja to pyproject.toml
Serafadam 48465c7
extra deps for manylinux
Serafadam 50f6f73
install nasm on mac
Serafadam 5e1b15f
basalt post install fixes
Serafadam f7f3a89
rtabmap for arm
Serafadam 8f4c37c
remove osx triplet
Serafadam 9800dfd
pr updates
Serafadam 927a899
stock spdlog
Serafadam 2cc7076
fix linux wheels build, fp16 from stock, python bindings & tests opts
Serafadam 177327b
fix linux arm and linker errors on other systems
Serafadam 6c32c1e
fix arm
Serafadam 8777724
fixing ci on other platforms
Serafadam 57cf12e
try fixing basalt symbols on win
Serafadam 2cffe89
try to fix pytest
Serafadam 060cad1
fix basalt patch
Serafadam e6b6747
disable basalt for win for now
Serafadam 812ead9
Static linking by default on Windows
2c4436e
Try to override the static compilation of CRT for Windows
b3d38c7
Make static runtime library "global"
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,6 +25,8 @@ jobs: | |
| # Job which builds docstrings for the rest of the wheel builds | ||
| build-docstrings: | ||
| runs-on: ubuntu-latest | ||
| env: | ||
| VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite" | ||
| steps: | ||
| - name: Cache .hunter folder | ||
| uses: actions/cache@v3 | ||
|
|
@@ -33,6 +35,12 @@ jobs: | |
| key: hunter-ubuntu-latest-v3-develop | ||
| - name: List .hunter cache directory | ||
| run: ls -a -l ~/.hunter/_Base/ || true | ||
| - name: Export GitHub Actions cache environment variables | ||
| uses: actions/github-script@v7 | ||
| with: | ||
| script: | | ||
| core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || ''); | ||
| core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || ''); | ||
| - uses: actions/checkout@v3 | ||
| with: | ||
| submodules: 'recursive' | ||
|
|
@@ -44,7 +52,7 @@ jobs: | |
| run: | | ||
| sudo apt update | ||
| python -m pip install --upgrade pip | ||
| sudo apt install libusb-1.0-0-dev libopencv-dev libpcl-dev | ||
| sudo apt install libusb-1.0-0-dev pkg-config bison autoconf libtool libxi-dev libxtst-dev libxrandr-dev libx11-dev libxft-dev libxext-dev nasm flex libudev-dev | ||
| python -m pip install -r bindings/python/docs/requirements_mkdoc.txt | ||
| - name: Configure project | ||
| run: cmake -S . -B build -DDEPTHAI_BUILD_PYTHON=ON -DDEPTHAI_PYTHON_FORCE_DOCSTRINGS=ON -DDEPTHAI_BASALT_SUPPORT=ON -DDEPTHAI_PCL_SUPPORT=ON -DDEPTHAI_RTABMAP_SUPPORT=ON -DDEPTHAI_PYTHON_DOCSTRINGS_OUTPUT="$PWD/bindings/python/docstrings/depthai_python_docstring.hpp" | ||
|
|
@@ -61,6 +69,8 @@ jobs: | |
| # Build and test bindings | ||
| pytest: | ||
| needs: build-docstrings | ||
| env: | ||
| VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite" | ||
| strategy: | ||
| matrix: | ||
| # os: [ubuntu-latest, windows-latest, macos-latest] | ||
|
|
@@ -82,6 +92,12 @@ jobs: | |
| with: | ||
| path: C:/.hunter/ | ||
| key: hunter-pytest-${{ matrix.os }}-v3-develop | ||
| - name: Export GitHub Actions cache environment variables | ||
| uses: actions/github-script@v7 | ||
| with: | ||
| script: | | ||
| core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || ''); | ||
| core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || ''); | ||
|
|
||
| - uses: actions/checkout@v3 | ||
| with: | ||
|
|
@@ -103,28 +119,22 @@ jobs: | |
| if: matrix.os == 'ubuntu-latest' | ||
| run: | | ||
| python -m pip install --upgrade pip | ||
| sudo apt install libusb-1.0-0-dev libopencv-dev | ||
| sudo apt install libusb-1.0-0-dev pkg-config bison autoconf libtool libxi-dev libxtst-dev libxrandr-dev libx11-dev libxft-dev libxext-dev nasm flex libudev-dev | ||
|
|
||
| - name: Install dependencies (MacOS) | ||
| if: matrix.os == 'macos-latest' | ||
| run: | | ||
| python -m pip install --upgrade pip | ||
| brew install libusb | ||
| brew install opencv | ||
|
|
||
| - name: Setup cmake | ||
| if: matrix.os == 'macos-latest' | ||
| uses: jwlawson/actions-setup-cmake@v1.13 | ||
|
|
||
| - name: Install dependencies (Windows) | ||
| if: matrix.os == 'windows-latest' | ||
| run: | | ||
| choco install opencv | ||
| echo "OpenCV_DIR=C:\tools\opencv\build" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append | ||
|
|
||
| - name: Install pytest | ||
| run: | | ||
| python -m pip install pytest numpy opencv-python | ||
| python -m pip install pytest numpy opencv-python jinja2 | ||
|
|
||
| - name: Compile | ||
| run: | | ||
|
|
@@ -194,7 +204,10 @@ jobs: | |
| python-architecture: [x64] # TODO(Morato) - re-enable x86 - it complains that OpenCV even though it's 32 bit is not compatible | ||
| fail-fast: false | ||
| env: | ||
| DEPTHAI_BUILD_BASALT: ON | ||
| DEPTHAI_BUILD_BASALT: OFF | ||
| DEPTHAI_BUILD_PCL: ON | ||
| DEPTHAI_BUILD_RTABMAP: ON | ||
| VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite" | ||
| steps: | ||
| - name: Cache .hunter folder | ||
| uses: actions/cache@v3 | ||
|
|
@@ -204,6 +217,12 @@ jobs: | |
| - uses: actions/checkout@v3 | ||
| with: | ||
| submodules: 'recursive' | ||
| - name: Export GitHub Actions cache environment variables | ||
| uses: actions/github-script@v7 | ||
| with: | ||
| script: | | ||
| core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || ''); | ||
| core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || ''); | ||
|
|
||
| - uses: actions/download-artifact@v3 | ||
| with: | ||
|
|
@@ -212,18 +231,6 @@ jobs: | |
| - name: Specify docstring to use while building the wheel | ||
| run: echo "DEPTHAI_PYTHON_DOCSTRINGS_INPUT=$PWD/bindings/python/docstrings/depthai_python_docstring.hpp" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append | ||
|
|
||
| - name: Install dependencies for x86 | ||
| if: matrix.python-architecture == 'x86' | ||
| run: | | ||
| choco install opencv --x86 | ||
| echo "OpenCV_DIR=C:\tools\opencv\build" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append | ||
|
|
||
| - name: Install dependencies for x64 | ||
| if: matrix.python-architecture == 'x64' | ||
| run: | | ||
| choco install opencv | ||
| echo "OpenCV_DIR=C:\tools\opencv\build" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append | ||
|
|
||
| - name: Select Windows SDK | ||
| run: echo "CMAKE_ARGS=-DCMAKE_SYSTEM_VERSION=${{ env.CMAKE_WINDOWS_SDK_VERSION }}" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append | ||
|
|
||
|
|
@@ -262,11 +269,11 @@ jobs: | |
| os: [macos-13, macos-14] # macos-13 is x64, macos-14 is arm64 | ||
| fail-fast: false | ||
| runs-on: ${{ matrix.os }} | ||
| # env: | ||
| # TODO(Morato) - re-enable basalt, pcl, rtabmap after everything is ported | ||
| # DEPTHAI_BUILD_BASALT: ON | ||
| # DEPTHAI_BUILD_PCL: ON | ||
| # DEPTHAI_BUILD_RTABMAP: ON | ||
| env: | ||
| VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite" | ||
| DEPTHAI_BUILD_BASALT: ON | ||
| DEPTHAI_BUILD_PCL: ON | ||
| DEPTHAI_BUILD_RTABMAP: ON | ||
| steps: | ||
| - name: Cache .hunter folder | ||
| uses: actions/cache@v3 | ||
|
|
@@ -277,6 +284,12 @@ jobs: | |
| run: | | ||
| ls -a -l ~/.hunter/_Base/ || true | ||
| echo "PATH=$PATH" | ||
| - name: Export GitHub Actions cache environment variables | ||
| uses: actions/github-script@v7 | ||
| with: | ||
| script: | | ||
| core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || ''); | ||
| core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || ''); | ||
|
|
||
| - uses: actions/checkout@v3 | ||
| with: | ||
|
|
@@ -300,8 +313,7 @@ jobs: | |
| run: | | ||
| python -m pip install --upgrade pip | ||
| brew install libusb | ||
| brew install opencv | ||
| brew install pcl | ||
| brew install nasm | ||
| python -m pip install delocate | ||
| - name: Building wheels | ||
| run: cd bindings/python && python -m pip wheel . -w ./wheelhouse/ --verbose | ||
|
|
@@ -388,30 +400,34 @@ jobs: | |
| needs: build-docstrings | ||
| runs-on: ubuntu-latest | ||
| container: | ||
| image: mmorato/depthai-manylinux2014:0.4 # TODO(mmorato) temporary location, push to luxonis namespace | ||
| image: quay.io/pypa/manylinux_2_28_x86_64 | ||
| env: | ||
| PLAT: manylinux2014_x86_64 | ||
| PLAT: manylinux_2_28_x86_64 | ||
| strategy: | ||
| matrix: | ||
| python-set: ["7..9", "10..12"] | ||
| python-set: ["7", "8", "9", "10", "11", "12"] | ||
| env: | ||
| # workaround required for cache@v3, https://github.com/actions/cache/issues/1428 | ||
| # to be removed when upgrading the manylinux image | ||
| ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true | ||
| DEPTHAI_BUILD_BASALT: ON | ||
| DEPTHAI_BUILD_PCL: ON | ||
| DEPTHAI_BUILD_RTABMAP: ON | ||
| VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite" | ||
| steps: | ||
| - name: Cache .hunter folder | ||
| uses: actions/cache@v3 | ||
| with: | ||
| path: ~/.hunter | ||
| key: hunter-x86_64-v3-develop | ||
| - name: Export GitHub Actions cache environment variables | ||
| uses: actions/github-script@v7 | ||
| with: | ||
| script: | | ||
| core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || ''); | ||
| core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || ''); | ||
| - uses: actions/checkout@v3 | ||
| with: | ||
| submodules: 'recursive' | ||
| - name: Installing libusb1-devel dependency | ||
| run: yum install -y --disableplugin=fastestmirror libusb1-devel perl-core curl zip unzip tar ninja-build | ||
| run: yum install -y libusb1-devel perl-core curl zip unzip tar ninja-build zlib-devel curl-devel xcb-util-renderutil-devel xcb-util-devel xcb-util-image-devel xcb-util-keysyms-devel xcb-util-wm-devel mesa-libGL-devel libxkbcommon-devel libxkbcommon-x11-devel libXi-devel libXrandr-devel libXtst-devel libudev-devel lapack-devel nasm libtool autoconf automake | ||
| - name: Installing cmake dependency | ||
| run: | | ||
| cd bindings/python | ||
|
|
@@ -427,12 +443,6 @@ jobs: | |
| - name: Specify docstring to use while building the wheel | ||
| run: echo "DEPTHAI_PYTHON_DOCSTRINGS_INPUT=$PWD/bindings/python/docstrings/depthai_python_docstring.hpp" >> $GITHUB_ENV | ||
|
|
||
| - name: Build and install depthai-core | ||
| run: | | ||
| cmake -S . -B build_core -D CMAKE_BUILD_TYPE=Release -D CMAKE_TOOLCHAIN_FILE=$PWD/cmake/toolchain/pic.cmake | ||
| cmake --build build_core --target install --parallel 4 | ||
| echo "DEPTHAI_INSTALLATION_DIR=$PWD/build_core/install/" >> $GITHUB_ENV | ||
|
|
||
| - name: Append build hash if not a tagged commit | ||
|
Comment on lines
445
to
446
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removed for a reason?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure if it was needed? Cache is now separate for each job |
||
| if: startsWith(github.ref, 'refs/tags/v') != true | ||
| run: echo "BUILD_COMMIT_HASH=${{github.sha}}" >> $GITHUB_ENV | ||
|
|
@@ -443,7 +453,9 @@ jobs: | |
| /opt/python/cp38-cp38/bin/python3.8 setup.py sdist --formats=gztar | ||
| mv dist/* wheelhouse/audited/ | ||
| - name: Build wheels | ||
| run: cd bindings/python && for PYBIN in /opt/python/cp3{${{ matrix.python-set }}}*/bin; do "${PYBIN}/pip" wheel . -w ./wheelhouse/ --verbose; done | ||
| run: | | ||
| cd bindings/python && for PYBIN in /opt/python/cp3${{ matrix.python-set }}*/bin; do "${PYBIN}/pip" wheel . -w ./wheelhouse/ --verbose; done | ||
|
|
||
| - name: Audit wheels | ||
| run: cd bindings/python && for whl in wheelhouse/*.whl; do auditwheel repair "$whl" --plat $PLAT -w wheelhouse/audited/; done | ||
| - name: Archive wheel artifacts | ||
|
|
@@ -465,35 +477,47 @@ jobs: | |
| runs-on: [self-hosted, linux, ARM64] | ||
| timeout-minutes: 1440 # Set timeout to 24 hours | ||
| container: | ||
| image: mmorato/depthai-manylinux2014_aarch64:0.4 | ||
| image: quay.io/pypa/manylinux_2_28_aarch64 | ||
| env: | ||
| PLAT: manylinux2014_aarch64 | ||
| PLAT: manylinux_2_28_aarch64 | ||
| # Mount local hunter cache directory, instead of transfering to Github and back | ||
| volumes: | ||
| - /.hunter:/github/home/.hunter | ||
| strategy: | ||
| matrix: | ||
| python-set: ["7..9", "10..12"] | ||
| python-set: ["7", "8", "9", "10", "11", "12"] | ||
| env: | ||
| # workaround required for cache@v3, https://github.com/actions/cache/issues/1428 | ||
| # to be removed when upgrading the manylinux image | ||
| ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true | ||
| DEPTHAI_VCPKG_CFLAGS: "-std=c99" # Needed so vpckg can bootstrap itself with the old GCC on the manylinux image | ||
| VCPKG_FORCE_SYSTEM_BINARIES: "1" # Needed so vpckg can bootstrap itself | ||
| VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite" | ||
| DEPTHAI_BUILD_BASALT: ON | ||
| DEPTHAI_BUILD_PCL: ON | ||
| DEPTHAI_BUILD_RTABMAP: ON | ||
| VCPKG_MAX_CONCURRENCY: "2" | ||
| steps: | ||
| - name: Export GitHub Actions cache environment variables | ||
| uses: actions/github-script@v7 | ||
| with: | ||
| script: | | ||
| core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || ''); | ||
| core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || ''); | ||
| - uses: actions/checkout@v3 | ||
| with: | ||
| submodules: 'recursive' | ||
| - name: Installing libusb1-devel dependency | ||
| run: yum install -y --disableplugin=fastestmirror libusb1-devel perl-core curl zip unzip tar ninja-build | ||
| run: yum install -y libusb1-devel perl-core curl zip unzip tar zlib-devel curl-devel xcb-util-renderutil-devel xcb-util-devel xcb-util-image-devel xcb-util-keysyms-devel xcb-util-wm-devel mesa-libGL-devel libxkbcommon-devel libxkbcommon-x11-devel libXi-devel libXrandr-devel libXtst-devel libudev-devel lapack-devel nasm libtool autoconf automake | ||
| - name: Installing cmake dependency | ||
| run: | | ||
| cd bindings/python | ||
| /opt/python/cp38-cp38/bin/python3.8 -m pip install cmake | ||
| ln -s /opt/python/cp38-cp38/bin/cmake /bin/ | ||
| - name: Setup ninja required for arm64 builds | ||
| run: | | ||
| git clone https://github.com/ninja-build/ninja.git | ||
| cd ninja | ||
| git checkout v1.10.2 | ||
| cmake -Bbuild-cmake | ||
| cmake --build build-cmake --target install | ||
| - name: Create folder structure | ||
| run: cd bindings/python && mkdir -p wheelhouse/audited/ | ||
|
|
||
|
|
@@ -504,17 +528,12 @@ jobs: | |
| - name: Specify docstring to use while building the wheel | ||
| run: echo "DEPTHAI_PYTHON_DOCSTRINGS_INPUT=$PWD/bindings/python/docstrings/depthai_python_docstring.hpp" >> $GITHUB_ENV | ||
|
|
||
| - name: Build and install depthai-core | ||
| run: | | ||
| cmake -S . -B build_core -D CMAKE_BUILD_TYPE=Release -D CMAKE_TOOLCHAIN_FILE=$PWD/cmake/toolchain/pic.cmake | ||
| cmake --build build_core --target install --parallel 4 | ||
| echo "DEPTHAI_INSTALLATION_DIR=$PWD/build_core/install/" >> $GITHUB_ENV | ||
|
|
||
| - name: Append build hash if not a tagged commit | ||
| if: startsWith(github.ref, 'refs/tags/v') != true | ||
| run: echo "BUILD_COMMIT_HASH=${{github.sha}}" >> $GITHUB_ENV | ||
| - name: Building wheels | ||
| run: cd bindings/python && for PYBIN in /opt/python/cp3{${{ matrix.python-set }}}*/bin; do "${PYBIN}/pip" wheel . -w ./wheelhouse/ --verbose; done | ||
| run: | | ||
| cd bindings/python && for PYBIN in /opt/python/cp3${{ matrix.python-set }}*/bin; do "${PYBIN}/pip" wheel . -w ./wheelhouse/ --verbose; done | ||
| - name: Auditing wheels | ||
| run: cd bindings/python && for whl in wheelhouse/*.whl; do auditwheel repair "$whl" --plat $PLAT -w wheelhouse/audited/; done | ||
| - name: Archive wheel artifacts | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What VCPKG package needs these?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Most of these are needed for various dependencies of gtk which is required by opencv to use imshow etc. Nasm is required by ffmpeg. libudev is required by libusb