From ffbb486407e022c36ca0c55a0748abc424605757 Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Wed, 18 Nov 2020 22:18:18 +0100 Subject: [PATCH 1/7] CI: Add check if yarp devices are correctly listed This should permit to debug problems such as https://github.com/robotology/wearables/issues/91 . --- .github/workflows/ci.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 74de8df42..6af927184 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -301,6 +301,25 @@ jobs: # Cleanup build directories to avoid to fill the disk rm -rf ./robotology + - name: Check if YARP devices are correctly listed [Windows] + if: contains(matrix.os, 'windows') + shell: bash + run: | + # Source environment scripts + source /c/robotology/scripts/setup-deps.sh + source ${GITHUB_WORKSPACE}/build/install/share/robotology-superbuild/setup.sh + # List yarp devices + yarp dev --list + + - name: Check if YARP devices are correctly listed [Ubuntu/macOS] + if: contains(matrix.os, 'ubuntu') || contains(matrix.os, 'macOS') + shell: bash + run: | + # Source environment scripts + source ${GITHUB_WORKSPACE}/build/install/share/robotology-superbuild/setup.sh + # List yarp devices + yarp dev --list + # Just for release builds we gerate the installer - name: Generate installer [Windows] if: github.event_name == 'release' && matrix.project_tags == 'Default' && matrix.os == 'windows-2019' From 37063e63fd2c9cf850578a245bf865fd907dd586 Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Thu, 19 Nov 2020 08:16:40 +0100 Subject: [PATCH 2/7] Fix typo --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6af927184..687b4f4e5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -309,7 +309,7 @@ jobs: source /c/robotology/scripts/setup-deps.sh source ${GITHUB_WORKSPACE}/build/install/share/robotology-superbuild/setup.sh # List yarp devices - yarp dev --list + yarpdev --list - name: Check if YARP devices are correctly listed [Ubuntu/macOS] if: contains(matrix.os, 'ubuntu') || contains(matrix.os, 'macOS') @@ -318,7 +318,7 @@ jobs: # Source environment scripts source ${GITHUB_WORKSPACE}/build/install/share/robotology-superbuild/setup.sh # List yarp devices - yarp dev --list + yarpdev --list # Just for release builds we gerate the installer - name: Generate installer [Windows] From e8506c1ac30e0a9c64fde35c69464eb3ef03946e Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Thu, 19 Nov 2020 10:27:09 +0100 Subject: [PATCH 3/7] Update ci.yml --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 687b4f4e5..e99eb3a91 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -307,6 +307,8 @@ jobs: run: | # Source environment scripts source /c/robotology/scripts/setup-deps.sh + ls + ls ${GITHUB_WORKSPACE}/build/install/share/robotology-superbuild/ source ${GITHUB_WORKSPACE}/build/install/share/robotology-superbuild/setup.sh # List yarp devices yarpdev --list From 9943ae4f8b76d4246e7991e9c360560a9f7e476a Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Thu, 19 Nov 2020 12:35:24 +0100 Subject: [PATCH 4/7] Update ci.yml --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e99eb3a91..e818372e2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -308,8 +308,8 @@ jobs: # Source environment scripts source /c/robotology/scripts/setup-deps.sh ls - ls ${GITHUB_WORKSPACE}/build/install/share/robotology-superbuild/ - source ${GITHUB_WORKSPACE}/build/install/share/robotology-superbuild/setup.sh + ls ${GITHUB_WORKSPACE}\build\install\share\robotology-superbuild\ + source ${GITHUB_WORKSPACE}\build\install\share\robotology-superbuild\setup.sh # List yarp devices yarpdev --list From 857ec86fda2253816a487ab137b32b867d50c5cb Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Thu, 19 Nov 2020 14:06:24 +0100 Subject: [PATCH 5/7] Update ci.yml --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e818372e2..d8d881596 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -308,8 +308,8 @@ jobs: # Source environment scripts source /c/robotology/scripts/setup-deps.sh ls - ls ${GITHUB_WORKSPACE}\build\install\share\robotology-superbuild\ - source ${GITHUB_WORKSPACE}\build\install\share\robotology-superbuild\setup.sh + ls `pwd`/build/install/share/robotology-superbuild/ + source `pwd`/build/install/share/robotology-superbuild/setup.sh # List yarp devices yarpdev --list From 67ca1b3180906a690622cd5a204a1a85a0b45f78 Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Thu, 19 Nov 2020 16:31:04 +0100 Subject: [PATCH 6/7] Update ci.yml --- .github/workflows/ci.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d8d881596..04cd20df0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -307,9 +307,7 @@ jobs: run: | # Source environment scripts source /c/robotology/scripts/setup-deps.sh - ls - ls `pwd`/build/install/share/robotology-superbuild/ - source `pwd`/build/install/share/robotology-superbuild/setup.sh + source /c/robotology/robotology/share/robotology-superbuild/setup.sh # List yarp devices yarpdev --list From 7b9367a5a05f9118048a9fde0b2e56ad72c6df8f Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Thu, 19 Nov 2020 22:59:31 +0100 Subject: [PATCH 7/7] Update BuildYARP.cmake --- cmake/BuildYARP.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/cmake/BuildYARP.cmake b/cmake/BuildYARP.cmake index 314fa61b8..3d130d916 100644 --- a/cmake/BuildYARP.cmake +++ b/cmake/BuildYARP.cmake @@ -88,4 +88,5 @@ ycm_ep_helper(YARP TYPE GIT -DCREATE_PYTHON:BOOL=${ROBOTOLOGY_USES_PYTHON} -DCREATE_LUA:BOOL=${ROBOTOLOGY_USES_LUA} -DENABLE_yarpmod_usbCamera:BOOL=${ENABLE_USBCAMERA} + -DENABLE_yarpmod_usbCameraRaw:BOOL=${ENABLE_USBCAMERA} ${YARP_OPTIONAL_CMAKE_ARGS})