Skip to content
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

Add yarp-ros repo with Unstable branches and compile again against YARP master in Unstable branches #1547

Open
wants to merge 32 commits into
base: master
Choose a base branch
from

Conversation

traversaro
Copy link
Member

@traversaro traversaro commented Nov 27, 2023

Fix #1536 .

Changes necessary to support modern YARP:

This PR also adds a ROBOTOLOGY_SUPERBUILD_BUILD_SEPARATE_YARP_ROS CMake option, that is ON by default when used with ROBOTOLOGY_PROJECT_TAGS set to Unstable, but that can be manually enable if users want to set YCM_EP_DEVEL_MODE_YARP to ON and manually switch to use YARP master and the future YARP 3.10.

fyi @SimoneMic @GiulioRomualdi @S-Dafarra

@traversaro
Copy link
Member Author

Build fails with:

2023-11-27T18:15:53.8379707Z [349/448] Performing build step for 'blocktest-yarp-plugins'
2023-11-27T18:15:53.8380458Z FAILED: src/blocktest-yarp-plugins/CMakeFiles/YCMStamp/blocktest-yarp-plugins-build 
2023-11-27T18:15:53.8382783Z cd /__w/robotology-superbuild/robotology-superbuild/build/src/blocktest-yarp-plugins && /usr/bin/cmake --build . && /usr/bin/cmake -E touch /__w/robotology-superbuild/robotology-superbuild/build/src/blocktest-yarp-plugins/CMakeFiles/YCMStamp/blocktest-yarp-plugins-build
2023-11-27T18:15:53.8384691Z ninja: error: '/__w/robotology-superbuild/robotology-superbuild/src/blocktest-yarp-plugins/YARP::yarpidl_thrift', needed by 'thrift/ClockServer.cpp', missing and no known rule to make it

The problem is that both yarp and yarp-ros install the <prefix>/lib/cmake/YARP_idl_tools/YARP_idl_toolsTargets.cmake and <prefix>/lib/cmake/YARP_idl_tools/YARP_idl_toolsConfig.cmake files. The yarp-ros file overwrite the yarp overwrite the yarp file that defines the target YARP::yarpidl_thrift, and hence the error.

traversaro added a commit that referenced this pull request Nov 28, 2023
Until the yarp-ros situation described in #1547 (comment) is fixed.
@traversaro
Copy link
Member Author

Build fails with:

2023-11-27T18:15:53.8379707Z [349/448] Performing build step for 'blocktest-yarp-plugins'
2023-11-27T18:15:53.8380458Z FAILED: src/blocktest-yarp-plugins/CMakeFiles/YCMStamp/blocktest-yarp-plugins-build 
2023-11-27T18:15:53.8382783Z cd /__w/robotology-superbuild/robotology-superbuild/build/src/blocktest-yarp-plugins && /usr/bin/cmake --build . && /usr/bin/cmake -E touch /__w/robotology-superbuild/robotology-superbuild/build/src/blocktest-yarp-plugins/CMakeFiles/YCMStamp/blocktest-yarp-plugins-build
2023-11-27T18:15:53.8384691Z ninja: error: '/__w/robotology-superbuild/robotology-superbuild/src/blocktest-yarp-plugins/YARP::yarpidl_thrift', needed by 'thrift/ClockServer.cpp', missing and no known rule to make it

The problem is that both yarp and yarp-ros install the <prefix>/lib/cmake/YARP_idl_tools/YARP_idl_toolsTargets.cmake and <prefix>/lib/cmake/YARP_idl_tools/YARP_idl_toolsConfig.cmake files. The yarp-ros file overwrite the yarp overwrite the yarp file that defines the target YARP::yarpidl_thrift, and hence the error.

This was fixed by robotology/yarp-ros#19 .

@traversaro traversaro closed this Feb 29, 2024
@traversaro traversaro reopened this Feb 29, 2024
@traversaro
Copy link
Member Author

traversaro commented Feb 29, 2024

Ok, I removed the pin of yarp-3.9 branch in the Unstable branch, as this PR should now ready to merge. Unfortunately, this means that probably we will hit ~3 months backlog of regression due to the changes of YARP, some of which already hit @S-Dafarra .

The first one is in Debian buster:

2024-02-29T13:45:53.7194015Z loading initial cache file /__w/robotology-superbuild/robotology-superbuild/build/src/YARP/CMakeFiles/YCMTmp/YARP-cache-Debug.cmake
2024-02-29T13:45:53.7195516Z CMake Error at CMakeLists.txt:5 (cmake_minimum_required):
2024-02-29T13:45:53.7196434Z   CMake 3.19 or higher is required.  You are running version 3.18.4
2024-02-29T13:45:53.7197057Z 
2024-02-29T13:45:53.7197064Z 
2024-02-29T13:45:53.7197388Z -- Configuring incomplete, errors occurred!
2024-02-29T13:45:54.2974407Z [113/264] Performing configure step for 'BlockFactory'

This was kind of expected. We already discussed about this with core and it basically means that we will stop supporting pc104 systems (see https://icub-tech-iit.github.io/documentation/icub_operating_systems/download/) when using YARP 3.10, and I think it was agreed this was ok (fyi @Nicogene @pattacini).

@traversaro
Copy link
Member Author

We also have the same problem in Focal:

[184/456] Performing configure step for 'YARP'
FAILED: src/YARP/CMakeFiles/YCMStamp/YARP-configure 
cd /__w/robotology-superbuild/robotology-superbuild/build/src/YARP && /usr/bin/cmake --no-warn-unused-cli -DCMAKE_PREFIX_PATH:PATH=/__w/robotology-superbuild/robotology-superbuild/build/install -DYARP_COMPILE_GUIS:BOOL=ON -DYARP_USE_SYSTEM_SQLite:BOOL=ON -DYARP_COMPILE_libYARP_math:BOOL=ON -DYARP_COMPILE_CARRIER_PLUGINS:BOOL=ON -DYARP_DISABLE_MACOS_BUNDLES:BOOL=ON -DENABLE_yarpcar_bayer:BOOL=ON -DENABLE_yarpcar_tcpros:BOOL=ON -DENABLE_yarpcar_xmlrpc:BOOL=ON -DENABLE_yarpcar_priority:BOOL=ON -DENABLE_yarpcar_bayer:BOOL=ON -DENABLE_yarpcar_mjpeg:BOOL=ON -DENABLE_yarpcar_portmonitor:BOOL=ON -DENABLE_yarppm_bottle_compression_zlib:BOOL=ON -DENABLE_yarppm_depthimage_compression_zlib:BOOL=ON -DENABLE_yarppm_image_compression_ffmpeg:BOOL=ON -DENABLE_yarppm_depthimage_to_mono:BOOL=ON -DENABLE_yarppm_depthimage_to_rgb:BOOL=ON -DENABLE_yarpidl_thrift:BOOL=ON -DYARP_COMPILE_DEVICE_PLUGINS:BOOL=ON -DENABLE_yarpcar_human:BOOL=ON -DENABLE_yarpcar_rossrv:BOOL=ON -DENABLE_yarpmod_fakebot:BOOL=ON -DENABLE_yarpmod_imuBosch_BNO055:BOOL=ON -DENABLE_yarpmod_SDLJoypad:BOOL=ON -DENABLE_yarpmod_serialport:BOOL=ON -DENABLE_yarpmod_AudioPlayerWrapper:BOOL=ON -DENABLE_yarpmod_AudioRecorderWrapper:BOOL=ON -DENABLE_yarpmod_portaudio:BOOL=ON -DENABLE_yarpmod_portaudioPlayer:BOOL=ON -DENABLE_yarpmod_portaudioRecorder:BOOL=ON -DENABLE_yarpmod_opencv_grabber:BOOL=ON -DYARP_COMPILE_ALL_FAKE_DEVICES:BOOL=ON -DYARP_COMPILE_RobotTestingFramework_ADDONS:BOOL=ON -DYARP_COMPILE_BINDINGS:BOOL=ON -DYARP_USE_I2C:BOOL=ON -DYARP_USE_SDL:BOOL=ON -DCREATE_PYTHON:BOOL=ON -DCREATE_LUA:BOOL=OFF -DCREATE_CSHARP:BOOL=OFF -DENABLE_yarpmod_usbCamera:BOOL=ON -DENABLE_yarpmod_usbCameraRaw:BOOL=ON -C/__w/robotology-superbuild/robotology-superbuild/build/src/YARP/CMakeFiles/YCMTmp/YARP-cache-Debug.cmake -GNinja /__w/robotology-superbuild/robotology-superbuild/src/YARP && /usr/bin/cmake -E touch /__w/robotology-superbuild/robotology-superbuild/build/src/YARP/CMakeFiles/YCMStamp/YARP-configure
Not searching for unused variables given on the command line.
loading initial cache file /__w/robotology-superbuild/robotology-superbuild/build/src/YARP/CMakeFiles/YCMTmp/YARP-cache-Debug.cmake
CMake Error at CMakeLists.txt:5 (cmake_minimum_required):
  CMake 3.19 or higher is required.  You are running version 3.16.3


-- Configuring incomplete, errors occurred!
[185/456] Creating directories for 'qpOASES'
[186/456] Performing download step (git clone) for 'OpenVR'
Cloning into 'OpenVR'...

For what regards focal, we are not ready to drop 20.04 support (see #1439), so for patching focal probably we can install a newer CMake via either backports or kitware repo.

@traversaro traversaro changed the title Add yarp-ros repo with Unstable branches Add yarp-ros repo with Unstable branches and re-compile against YARP master in Unstable branches Feb 29, 2024
@traversaro
Copy link
Member Author

Ok, now I see the error:

2024-02-29T14:03:18.5628612Z [3/6] Building CXX object ftNode/CMakeFiles/ftnode.dir/ftnodeDriver.cpp.o
2024-02-29T14:03:18.5629587Z FAILED: ftNode/CMakeFiles/ftnode.dir/ftnodeDriver.cpp.o 
2024-02-29T14:03:18.5633485Z /usr/bin/c++ -Dftnode_EXPORTS -isystem /__w/robotology-superbuild/robotology-superbuild/build/install/include -g -fPIC -MD -MT ftNode/CMakeFiles/ftnode.dir/ftnodeDriver.cpp.o -MF ftNode/CMakeFiles/ftnode.dir/ftnodeDriver.cpp.o.d -o ftNode/CMakeFiles/ftnode.dir/ftnodeDriver.cpp.o -c /__w/robotology-superbuild/robotology-superbuild/src/yarp-devices-forcetorque/ftNode/ftnodeDriver.cpp
2024-02-29T14:03:18.5638281Z /__w/robotology-superbuild/robotology-superbuild/src/yarp-devices-forcetorque/ftNode/ftnodeDriver.cpp: In member function 'virtual bool yarp::dev::ftnodeDriver::attach(yarp::dev::PolyDriver*)':
2024-02-29T14:03:18.5641536Z /__w/robotology-superbuild/robotology-superbuild/src/yarp-devices-forcetorque/ftNode/ftnodeDriver.cpp:320:38: error: 'class yarp::dev::PolyDriver' has no member named 'getValue'
2024-02-29T14:03:18.5643608Z   320 |     pImpl->serialComPortName = poly->getValue("comport").asString();
2024-02-29T14:03:18.5644475Z       |                                      ^~~~~~~~
2024-02-29T14:03:18.5645337Z [4/6] Building CXX object ftShoe/CMakeFiles/ftshoe.dir/ftshoeDriver.cpp.o
2024-02-29T14:03:18.5646210Z ninja: build stopped: subcommand failed.

That I guess is what @S-Dafarra was reporting.

@S-Dafarra
Copy link
Collaborator

Ok, now I see the error:

2024-02-29T14:03:18.5628612Z [3/6] Building CXX object ftNode/CMakeFiles/ftnode.dir/ftnodeDriver.cpp.o
2024-02-29T14:03:18.5629587Z FAILED: ftNode/CMakeFiles/ftnode.dir/ftnodeDriver.cpp.o 
2024-02-29T14:03:18.5633485Z /usr/bin/c++ -Dftnode_EXPORTS -isystem /__w/robotology-superbuild/robotology-superbuild/build/install/include -g -fPIC -MD -MT ftNode/CMakeFiles/ftnode.dir/ftnodeDriver.cpp.o -MF ftNode/CMakeFiles/ftnode.dir/ftnodeDriver.cpp.o.d -o ftNode/CMakeFiles/ftnode.dir/ftnodeDriver.cpp.o -c /__w/robotology-superbuild/robotology-superbuild/src/yarp-devices-forcetorque/ftNode/ftnodeDriver.cpp
2024-02-29T14:03:18.5638281Z /__w/robotology-superbuild/robotology-superbuild/src/yarp-devices-forcetorque/ftNode/ftnodeDriver.cpp: In member function 'virtual bool yarp::dev::ftnodeDriver::attach(yarp::dev::PolyDriver*)':
2024-02-29T14:03:18.5641536Z /__w/robotology-superbuild/robotology-superbuild/src/yarp-devices-forcetorque/ftNode/ftnodeDriver.cpp:320:38: error: 'class yarp::dev::PolyDriver' has no member named 'getValue'
2024-02-29T14:03:18.5643608Z   320 |     pImpl->serialComPortName = poly->getValue("comport").asString();
2024-02-29T14:03:18.5644475Z       |                                      ^~~~~~~~
2024-02-29T14:03:18.5645337Z [4/6] Building CXX object ftShoe/CMakeFiles/ftshoe.dir/ftshoeDriver.cpp.o
2024-02-29T14:03:18.5646210Z ninja: build stopped: subcommand failed.

That I guess is what @S-Dafarra was reporting.

Indeed. Related issues:

@S-Dafarra
Copy link
Collaborator

Would it be possible to add also https://github.com/robotology/yarp-devices-ros?

@traversaro
Copy link
Member Author

Would it be possible to add also https://github.com/robotology/yarp-devices-ros?

Sure, I did not realized that was a different repo as well.

@traversaro
Copy link
Member Author

traversaro commented Jul 30, 2024

Now there are a bunch of failures in icub-basic-demos:

2024-07-30T18:19:34.1539372Z [3/28] Building CXX object demoRedBall/CMakeFiles/demoRedBall.dir/src/main.cpp.o
2024-07-30T18:19:34.1540196Z FAILED: demoRedBall/CMakeFiles/demoRedBall.dir/src/main.cpp.o 
2024-07-30T18:19:34.1543597Z /usr/bin/c++ -DBOOST_TEST_DYN_LINK -DLIBBULLET_VERSION=3.05 -DLIBBULLET_VERSION_GT_282 -D_USE_MATH_DEFINES -isystem /home/runner/work/robotology-superbuild/robotology-superbuild/build/install/include -O3 -DNDEBUG -std=c++17 -MD -MT demoRedBall/CMakeFiles/demoRedBall.dir/src/main.cpp.o -MF demoRedBall/CMakeFiles/demoRedBall.dir/src/main.cpp.o.d -o demoRedBall/CMakeFiles/demoRedBall.dir/src/main.cpp.o -c /home/runner/work/robotology-superbuild/robotology-superbuild/src/icub-basic-demos/demoRedBall/src/main.cpp
2024-07-30T18:19:34.1548611Z /home/runner/work/robotology-superbuild/robotology-superbuild/src/icub-basic-demos/demoRedBall/src/main.cpp: In member function ‘virtual bool managerThread::threadInit()’:
2024-07-30T18:19:34.1551216Z /home/runner/work/robotology-superbuild/robotology-superbuild/src/icub-basic-demos/demoRedBall/src/main.cpp:1533:18: error: ‘class yarp::os::Bottle’ has no member named ‘setMonitor’
2024-07-30T18:19:34.1552864Z  1533 |         bGeneral.setMonitor(rf.getMonitor());
2024-07-30T18:19:34.1553374Z       |                  ^~~~~~~~~~
2024-07-30T18:19:34.1555337Z /home/runner/work/robotology-superbuild/robotology-superbuild/src/icub-basic-demos/demoRedBall/src/main.cpp:1533:32: error: ‘class yarp::os::ResourceFinder’ has no member named ‘getMonitor’
2024-07-30T18:19:34.1556797Z  1533 |         bGeneral.setMonitor(rf.getMonitor());
2024-07-30T18:19:34.1557286Z       |                                ^~~~~~~~~~
2024-07-30T18:19:34.1559032Z /home/runner/work/robotology-superbuild/robotology-superbuild/src/icub-basic-demos/demoRedBall/src/main.cpp:1554:16: error: ‘class yarp::os::Bottle’ has no member named ‘setMonitor’
2024-07-30T18:19:34.1560430Z  1554 |         bTorso.setMonitor(rf.getMonitor());
2024-07-30T18:19:34.1560896Z       |                ^~~~~~~~~~
2024-07-30T18:19:34.1562674Z /home/runner/work/robotology-superbuild/robotology-superbuild/src/icub-basic-demos/demoRedBall/src/main.cpp:1554:30: error: ‘class yarp::os::ResourceFinder’ has no member named ‘getMonitor’
2024-07-30T18:19:34.1564084Z  1554 |         bTorso.setMonitor(rf.getMonitor());
2024-07-30T18:19:34.1564588Z       |                              ^~~~~~~~~~
2024-07-30T18:19:34.1566328Z /home/runner/work/robotology-superbuild/robotology-superbuild/src/icub-basic-demos/demoRedBall/src/main.cpp:1566:18: error: ‘class yarp::os::Bottle’ has no member named ‘setMonitor’
2024-07-30T18:19:34.1567732Z  1566 |         bLeftArm.setMonitor(rf.getMonitor());
2024-07-30T18:19:34.1568465Z       |                  ^~~~~~~~~~
2024-07-30T18:19:34.1570237Z /home/runner/work/robotology-superbuild/robotology-superbuild/src/icub-basic-demos/demoRedBall/src/main.cpp:1566:32: error: ‘class yarp::os::ResourceFinder’ has no member named ‘getMonitor’
2024-07-30T18:19:34.1571693Z  1566 |         bLeftArm.setMonitor(rf.getMonitor());
2024-07-30T18:19:34.1572170Z       |                                ^~~~~~~~~~
2024-07-30T18:19:34.1573897Z /home/runner/work/robotology-superbuild/robotology-superbuild/src/icub-basic-demos/demoRedBall/src/main.cpp:1567:19: error: ‘class yarp::os::Bottle’ has no member named ‘setMonitor’
2024-07-30T18:19:34.1575311Z  1567 |         bRightArm.setMonitor(rf.getMonitor());
2024-07-30T18:19:34.1575793Z       |                   ^~~~~~~~~~
2024-07-30T18:19:34.1577556Z /home/runner/work/robotology-superbuild/robotology-superbuild/src/icub-basic-demos/demoRedBall/src/main.cpp:1567:33: error: ‘class yarp::os::ResourceFinder’ has no member named ‘getMonitor’
2024-07-30T18:19:34.1579249Z  1567 |         bRightArm.setMonitor(rf.getMonitor());
2024-07-30T18:19:34.1579756Z       |                                 ^~~~~~~~~~
2024-07-30T18:19:34.1581500Z /home/runner/work/robotology-superbuild/robotology-superbuild/src/icub-basic-demos/demoRedBall/src/main.cpp:1587:15: error: ‘class yarp::os::Bottle’ has no member named ‘setMonitor’
2024-07-30T18:19:34.1582911Z  1587 |         bHome.setMonitor(rf.getMonitor());
2024-07-30T18:19:34.1583405Z       |               ^~~~~~~~~~
2024-07-30T18:19:34.1586637Z /home/runner/work/robotology-superbuild/robotology-superbuild/src/icub-basic-demos/demoRedBall/src/main.cpp:1587:29: error: ‘class yarp::os::ResourceFinder’ has no member named ‘getMonitor’
2024-07-30T18:19:34.1587921Z  1587 |         bHome.setMonitor(rf.getMonitor());
2024-07-30T18:19:34.1588341Z       |                             ^~~~~~~~~~
2024-07-30T18:19:34.1589888Z /home/runner/work/robotology-superbuild/robotology-superbuild/src/icub-basic-demos/demoRedBall/src/main.cpp:1593:17: error: ‘class yarp::os::Bottle’ has no member named ‘setMonitor’
2024-07-30T18:19:34.1591093Z  1593 |         bArmSel.setMonitor(rf.getMonitor());
2024-07-30T18:19:34.1591507Z       |                 ^~~~~~~~~~
2024-07-30T18:19:34.1592967Z /home/runner/work/robotology-superbuild/robotology-superbuild/src/icub-basic-demos/demoRedBall/src/main.cpp:1593:31: error: ‘class yarp::os::ResourceFinder’ has no member named ‘getMonitor’
2024-07-30T18:19:34.1594435Z  1593 |         bArmSel.setMonitor(rf.getMonitor());
2024-07-30T18:19:34.1594853Z       |                               ^~~~~~~~~~
2024-07-30T18:19:34.1596339Z /home/runner/work/robotology-superbuild/robotology-superbuild/src/icub-basic-demos/demoRedBall/src/main.cpp:1598:16: error: ‘class yarp::os::Bottle’ has no member named ‘setMonitor’
2024-07-30T18:19:34.1597689Z  1598 |         bGrasp.setMonitor(rf.getMonitor());
2024-07-30T18:19:34.1598098Z       |                ^~~~~~~~~~
2024-07-30T18:19:34.1599584Z /home/runner/work/robotology-superbuild/robotology-superbuild/src/icub-basic-demos/demoRedBall/src/main.cpp:1598:30: error: ‘class yarp::os::ResourceFinder’ has no member named ‘getMonitor’
2024-07-30T18:19:34.1600832Z  1598 |         bGrasp.setMonitor(rf.getMonitor());
2024-07-30T18:19:34.1601245Z       |                              ^~~~~~~~~~
2024-07-30T18:19:34.1602127Z /home/runner/work/robotology-superbuild/robotology-superbuild/src/icub-basic-demos/demoRedBall/src/main.cpp: At global scope:
2024-07-30T18:19:34.1603897Z /home/runner/work/robotology-superbuild/robotology-superbuild/src/icub-basic-demos/demoRedBall/src/main.cpp:2103:1: error: expected class-name before ‘{’ token
2024-07-30T18:19:34.1604939Z  2103 | {
2024-07-30T18:19:34.1605168Z       | ^
2024-07-30T18:19:34.1606285Z /home/runner/work/robotology-superbuild/robotology-superbuild/src/icub-basic-demos/demoRedBall/src/main.cpp:2109:23: error: ‘SearchReport’ does not name a type
2024-07-30T18:19:34.1607423Z  2109 |     void report(const SearchReport& report, const char *context)
2024-07-30T18:19:34.1608078Z       |                       ^~~~~~~~~~~~
2024-07-30T18:19:34.1609543Z /home/runner/work/robotology-superbuild/robotology-superbuild/src/icub-basic-demos/demoRedBall/src/main.cpp: In member function ‘void myReport::report(const int&, const char*)’:
2024-07-30T18:19:34.1611784Z /home/runner/work/robotology-superbuild/robotology-superbuild/src/icub-basic-demos/demoRedBall/src/main.cpp:2112:27: error: request for member ‘key’ in ‘report’, which is of non-class type ‘const int’
2024-07-30T18:19:34.1613041Z  2112 |         string key=report.key;
2024-07-30T18:19:34.1613398Z       |                           ^~~
2024-07-30T18:19:34.1614871Z /home/runner/work/robotology-superbuild/robotology-superbuild/src/icub-basic-demos/demoRedBall/src/main.cpp:2128:20: error: request for member ‘isFound’ in ‘report’, which is of non-class type ‘const int’
2024-07-30T18:19:34.1616131Z  2128 |         if (report.isFound)
2024-07-30T18:19:34.1616466Z       |                    ^~~~~~~
2024-07-30T18:19:34.1618123Z /home/runner/work/robotology-superbuild/robotology-superbuild/src/icub-basic-demos/demoRedBall/src/main.cpp:2129:35: error: request for member ‘value’ in ‘report’, which is of non-class type ‘const int’
2024-07-30T18:19:34.1619452Z  2129 |             actual.put(key,report.value);
2024-07-30T18:19:34.1619863Z       |                                   ^~~~~
2024-07-30T18:19:34.1621498Z /home/runner/work/robotology-superbuild/robotology-superbuild/src/icub-basic-demos/demoRedBall/src/main.cpp:2131:20: error: request for member ‘isComment’ in ‘report’, which is of non-class type ‘const int’
2024-07-30T18:19:34.1622813Z  2131 |         if (report.isComment==true)
2024-07-30T18:19:34.1623208Z       |                    ^~~~~~~~~
2024-07-30T18:19:34.1745412Z /home/runner/work/robotology-superbuild/robotology-superbuild/src/icub-basic-demos/demoRedBall/src/main.cpp:2133:36: error: request for member ‘value’ in ‘report’, which is of non-class type ‘const int’
2024-07-30T18:19:34.1747077Z  2133 |             comment.put(key,report.value);
2024-07-30T18:19:34.1747509Z       |                                    ^~~~~
2024-07-30T18:19:34.1749276Z /home/runner/work/robotology-superbuild/robotology-superbuild/src/icub-basic-demos/demoRedBall/src/main.cpp:2137:20: error: request for member ‘isDefault’ in ‘report’, which is of non-class type ‘const int’
2024-07-30T18:19:34.1750700Z  2137 |         if (report.isDefault==true)
2024-07-30T18:19:34.1751078Z       |                    ^~~~~~~~~
2024-07-30T18:19:34.1752614Z /home/runner/work/robotology-superbuild/robotology-superbuild/src/icub-basic-demos/demoRedBall/src/main.cpp:2139:37: error: request for member ‘value’ in ‘report’, which is of non-class type ‘const int’
2024-07-30T18:19:34.1754257Z  2139 |             fallback.put(key,report.value);
2024-07-30T18:19:34.1754681Z       |                                     ^~~~~
2024-07-30T18:19:34.1756196Z /home/runner/work/robotology-superbuild/robotology-superbuild/src/icub-basic-demos/demoRedBall/src/main.cpp:2147:28: error: request for member ‘isFound’ in ‘report’, which is of non-class type ‘const int’
2024-07-30T18:19:34.1757516Z  2147 |                 if (report.isFound)
2024-07-30T18:19:34.1757887Z       |                            ^~~~~~~
2024-07-30T18:19:34.1759385Z /home/runner/work/robotology-superbuild/robotology-superbuild/src/icub-basic-demos/demoRedBall/src/main.cpp:2149:44: error: request for member ‘value’ in ‘report’, which is of non-class type ‘const int’
2024-07-30T18:19:34.1760732Z  2149 |                     string hasValue=report.value;
2024-07-30T18:19:34.1761155Z       |                                            ^~~~~
2024-07-30T18:19:34.1762336Z /home/runner/work/robotology-superbuild/robotology-superbuild/src/icub-basic-demos/demoRedBall/src/main.cpp: In function ‘int main(int, char**)’:
2024-07-30T18:19:34.1764717Z /home/runner/work/robotology-superbuild/robotology-superbuild/src/icub-basic-demos/demoRedBall/src/main.cpp:2197:8: error: ‘class yarp::os::ResourceFinder’ has no member named ‘setMonitor’
2024-07-30T18:19:34.1766059Z  2197 |     rf.setMonitor(&rep);
2024-07-30T18:19:34.1766386Z       |        ^~~~~~~~~~

@traversaro
Copy link
Member Author

@SimoneMic @GiulioRomualdi @S-Dafarra I refreshed this PR for YARP master (future 3.10) support, and currently there are a few compilation error in icub-basic-demos, that you can find in the previous comment. Probably this errors are not found if ROBOTOLOGY_ENABLE_ICUB_BASIC_DEMOS option is not enabled, but unfortunately we need to fix the compilation before merging this (it would be too complicate to maintain a situation in which some profile do not compile with PROJECT_TAGS_ENABLED=Unstable). I opened the issue in robotology/icub-basic-demos#45 to track the solution of the problem.

@traversaro
Copy link
Member Author

traversaro commented Aug 9, 2024

On, now the only remaining problems are:

  • macos-12 fails with:
WARNING: Error parsing dependencies of yarp: Invalid version: '3.9.0+167-20240805.2+git2fd8e6993'
Error: Process completed with exit code 1.
  • windows build fail with:
2024-08-09T14:07:54.4779865Z D:\a\robotology-superbuild\robotology-superbuild\src\bipedal-locomotion-framework\src\YarpUtilities\src\RosPublisher.cpp(18,10): error C1083: Cannot open include file: 'yarp/rosmsg/TickTime.h': No such file or directory [D:\a\robotology-superbuild\robotology-superbuild\b\src\bipedal-locomotion-framework\src\YarpUtilities\YarpUtilities.vcxproj] [D:\a\robotology-superbuild\robotology-superbuild\b\bipedal-locomotion-framework.vcxproj]
2024-08-09T14:07:54.6397790Z     Building Custom Rule D:/a/robotology-superbuild/robotology-superbuild/src/bipedal-locomotion-framework/src/RobotInterface/CMakeLists.txt

@traversaro
Copy link
Member Author

  • macos-12 fails with:
WARNING: Error parsing dependencies of yarp: Invalid version: '3.9.0+167-20240805.2+git2fd8e6993'
Error: Process completed with exit code 1.

This problem was fixed in robotology/yarp#3097, but I guess the fix was never forward-merged in yarp master.

@traversaro
Copy link
Member Author

  • windows build fail with:
2024-08-09T14:07:54.4779865Z D:\a\robotology-superbuild\robotology-superbuild\src\bipedal-locomotion-framework\src\YarpUtilities\src\RosPublisher.cpp(18,10): error C1083: Cannot open include file: 'yarp/rosmsg/TickTime.h': No such file or directory [D:\a\robotology-superbuild\robotology-superbuild\b\src\bipedal-locomotion-framework\src\YarpUtilities\YarpUtilities.vcxproj] [D:\a\robotology-superbuild\robotology-superbuild\b\bipedal-locomotion-framework.vcxproj]
2024-08-09T14:07:54.6397790Z     Building Custom Rule D:/a/robotology-superbuild/robotology-superbuild/src/bipedal-locomotion-framework/src/RobotInterface/CMakeLists.txt

I think that is just an effect, the real error is:

2024-08-09T13:49:42.4507543Z     Generating code from ../../../extern/ros/common_msgs/actionlib_msgs/msg/GoalID.msg
2024-08-09T13:49:42.4816759Z C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(254,5): error MSB8066: Custom build for 'D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\a7910239c99e6030285dab7eab44c4a4\GoalID.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\a7910239c99e6030285dab7eab44c4a4\GoalStatus.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\a7910239c99e6030285dab7eab44c4a4\GoalStatusArray.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\eee085284bb588ce1fb3b299d24609d3\YARP_rosmsg_gen_actionlib_msgs.rule;D:\a\robotology-superbuild\robotology-superbuild\src\yarp-ros\src\libYARP_rosmsg\src\CMakeLists.txt' exited with code -1073741515. [D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\src\libYARP_rosmsg\src\YARP_rosmsg_gen_actionlib_msgs.vcxproj] [D:\a\robotology-superbuild\robotology-superbuild\b\yarp-ros.vcxproj]
2024-08-09T13:49:42.5354850Z     Generating code from ../../../extern/ros/common_msgs/diagnostic_msgs/srv/AddDiagnostics.srv
2024-08-09T13:49:42.5487318Z C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(254,5): error MSB8066: Custom build for 'D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\2596f1924e934dfdf1e92ce6ced3d929\AddDiagnostics.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\2596f1924e934dfdf1e92ce6ced3d929\DiagnosticArray.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\2596f1924e934dfdf1e92ce6ced3d929\DiagnosticStatus.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\2596f1924e934dfdf1e92ce6ced3d929\KeyValue.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\2596f1924e934dfdf1e92ce6ced3d929\SelfTest.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\eee085284bb588ce1fb3b299d24609d3\YARP_rosmsg_gen_diagnostic_msgs.rule;D:\a\robotology-superbuild\robotology-superbuild\src\yarp-ros\src\libYARP_rosmsg\src\CMakeLists.txt' exited with code -1073741515. [D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\src\libYARP_rosmsg\src\YARP_rosmsg_gen_diagnostic_msgs.vcxproj] [D:\a\robotology-superbuild\robotology-superbuild\b\yarp-ros.vcxproj]
2024-08-09T13:49:42.6208863Z     Generating code from ../../../extern/ros/common_msgs/geometry_msgs/msg/Accel.msg
2024-08-09T13:49:42.6366913Z C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(254,5): error MSB8066: Custom build for 'D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\cbc23c478d5a30a76a7f41b3b8e05d28\Accel.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\cbc23c478d5a30a76a7f41b3b8e05d28\AccelStamped.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\cbc23c478d5a30a76a7f41b3b8e05d28\AccelWithCovariance.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\cbc23c478d5a30a76a7f41b3b8e05d28\AccelWithCovarianceStamped.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\cbc23c478d5a30a76a7f41b3b8e05d28\Inertia.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\cbc23c478d5a30a76a7f41b3b8e05d28\InertiaStamped.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\cbc23c478d5a30a76a7f41b3b8e05d28\Point.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\cbc23c478d5a30a76a7f41b3b8e05d28\Point32.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\cbc23c478d5a30a76a7f41b3b8e05d28\PointStamped.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\cbc23c478d5a30a76a7f41b3b8e05d28\Polygon.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\cbc23c478d5a30a76a7f41b3b8e05d28\PolygonStamped.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\cbc23c478d5a30a76a7f41b3b8e05d28\Pose.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\cbc23c478d5a30a76a7f41b3b8e05d28\Pose2D.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\cbc23c478d5a30a76a7f41b3b8e05d28\PoseArray.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\cbc23c478d5a30a76a7f41b3b8e05d28\PoseStamped.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\cbc23c478d5a30a76a7f41b3b8e05d28\PoseWithCovariance.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\cbc23c478d5a30a76a7f41b3b8e05d28\PoseWithCovarianceStamped.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\cbc23c478d5a30a76a7f41b3b8e05d28\Quaternion.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\cbc23c478d5a30a76a7f41b3b8e05d28\QuaternionStamped.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\cbc23c478d5a30a76a7f41b3b8e05d28\Transform.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\cbc23c478d5a30a76a7f41b3b8e05d28\TransformStamped.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\cbc23c478d5a30a76a7f41b3b8e05d28\Twist.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\cbc23c478d5a30a76a7f41b3b8e05d28\TwistStamped.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\cbc23c478d5a30a76a7f41b3b8e05d28\TwistWithCovariance.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\cbc23c478d5a30a76a7f41b3b8e05d28\TwistWithCovarianceStamped.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\cbc23c478d5a30a76a7f41b3b8e05d28\Vector3.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\cbc23c478d5a30a76a7f41b3b8e05d28\Vector3Stamped.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\cbc23c478d5a30a76a7f41b3b8e05d28\Wrench.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\cbc23c478d5a30a76a7f41b3b8e05d28\WrenchStamped.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\eee085284bb588ce1fb3b299d24609d3\YARP_rosmsg_gen_geometry_msgs.rule;D:\a\robotology-superbuild\robotology-superbuild\src\yarp-ros\src\libYARP_rosmsg\src\CMakeLists.txt' exited with code -1073741515. [D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\src\libYARP_rosmsg\src\YARP_rosmsg_gen_geometry_msgs.vcxproj] [D:\a\robotology-superbuild\robotology-superbuild\b\yarp-ros.vcxproj]
2024-08-09T13:49:42.6893462Z     Generating code from duration
2024-08-09T13:49:42.7020770Z C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(254,5): error MSB8066: Custom build for 'D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\36afa4a88624cef26ea835bde9126d21\TickDuration.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\36afa4a88624cef26ea835bde9126d21\TickTime.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\eee085284bb588ce1fb3b299d24609d3\YARP_rosmsg_gen_native.rule;D:\a\robotology-superbuild\robotology-superbuild\src\yarp-ros\src\libYARP_rosmsg\src\CMakeLists.txt' exited with code -1073741515. [D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\src\libYARP_rosmsg\src\YARP_rosmsg_gen_native.vcxproj] [D:\a\robotology-superbuild\robotology-superbuild\b\yarp-ros.vcxproj]
2024-08-09T13:49:42.7603367Z     Generating code from ../../../extern/ros/common_msgs/nav_msgs/srv/GetMap.srv
2024-08-09T13:49:42.7734199Z C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(254,5): error MSB8066: Custom build for 'D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\0e90941874f4e0ffd708f65a51b51212\GetMap.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\0e90941874f4e0ffd708f65a51b51212\GetPlan.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\0e90941874f4e0ffd708f65a51b51212\GridCells.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\0e90941874f4e0ffd708f65a51b51212\MapMetaData.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\0e90941874f4e0ffd708f65a51b51212\OccupancyGrid.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\0e90941874f4e0ffd708f65a51b51212\Odometry.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\0e90941874f4e0ffd708f65a51b51212\Path.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\0e90941874f4e0ffd708f65a51b51212\SetMap.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\eee085284bb588ce1fb3b299d24609d3\YARP_rosmsg_gen_nav_msgs.rule;D:\a\robotology-superbuild\robotology-superbuild\src\yarp-ros\src\libYARP_rosmsg\src\CMakeLists.txt' exited with code -1073741515. [D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\src\libYARP_rosmsg\src\YARP_rosmsg_gen_nav_msgs.vcxproj] [D:\a\robotology-superbuild\robotology-superbuild\b\yarp-ros.vcxproj]
2024-08-09T13:49:42.8403557Z     Generating code from ../../../extern/ros/common_msgs/sensor_msgs/msg/BatteryState.msg
2024-08-09T13:49:42.8564150Z C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(254,5): error MSB8066: Custom build for 'D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\f90100ded8febcd0767881336626bd61\BatteryState.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\f90100ded8febcd0767881336626bd61\CameraInfo.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\f90100ded8febcd0767881336626bd61\ChannelFloat32.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\f90100ded8febcd0767881336626bd61\CompressedImage.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\f90100ded8febcd0767881336626bd61\FluidPressure.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\f90100ded8febcd0767881336626bd61\Illuminance.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\f90100ded8febcd0767881336626bd61\Image.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\f90100ded8febcd0767881336626bd61\Imu.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\f90100ded8febcd0767881336626bd61\JointState.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\f90100ded8febcd0767881336626bd61\Joy.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\f90100ded8febcd0767881336626bd61\JoyFeedback.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\f90100ded8febcd0767881336626bd61\JoyFeedbackArray.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\f90100ded8febcd0767881336626bd61\LaserEcho.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\f90100ded8febcd0767881336626bd61\LaserScan.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\f90100ded8febcd0767881336626bd61\MagneticField.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\f90100ded8febcd0767881336626bd61\MultiDOFJointState.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\f90100ded8febcd0767881336626bd61\MultiEchoLaserScan.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\f90100ded8febcd0767881336626bd61\NavSatFix.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\f90100ded8febcd0767881336626bd61\NavSatStatus.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\f90100ded8febcd0767881336626bd61\PointCloud.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\f90100ded8febcd0767881336626bd61\PointCloud2.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\f90100ded8febcd0767881336626bd61\PointField.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\f90100ded8febcd0767881336626bd61\Range.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\f90100ded8febcd0767881336626bd61\RegionOfInterest.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\f90100ded8febcd0767881336626bd61\RelativeHumidity.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\f90100ded8febcd0767881336626bd61\SetCameraInfo.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\f90100ded8febcd0767881336626bd61\Temperature.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\f90100ded8febcd0767881336626bd61\TimeReference.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\eee085284bb588ce1fb3b299d24609d3\YARP_rosmsg_gen_sensor_msgs.rule;D:\a\robotology-superbuild\robotology-superbuild\src\yarp-ros\src\libYARP_rosmsg\src\CMakeLists.txt' exited with code -1073741515. [D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\src\libYARP_rosmsg\src\YARP_rosmsg_gen_sensor_msgs.vcxproj] [D:\a\robotology-superbuild\robotology-superbuild\b\yarp-ros.vcxproj]
2024-08-09T13:49:42.9107281Z     Generating code from ../../../extern/ros/common_msgs/shape_msgs/msg/Mesh.msg
2024-08-09T13:49:42.9245401Z C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(254,5): error MSB8066: Custom build for 'D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\d6a8b42bc9e2dab57a4547509e61eb1e\Mesh.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\d6a8b42bc9e2dab57a4547509e61eb1e\MeshTriangle.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\d6a8b42bc9e2dab57a4547509e61eb1e\Plane.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\d6a8b42bc9e2dab57a4547509e61eb1e\SolidPrimitive.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\eee085284bb588ce1fb3b299d24609d3\YARP_rosmsg_gen_shape_msgs.rule;D:\a\robotology-superbuild\robotology-superbuild\src\yarp-ros\src\libYARP_rosmsg\src\CMakeLists.txt' exited with code -1073741515. [D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\src\libYARP_rosmsg\src\YARP_rosmsg_gen_shape_msgs.vcxproj] [D:\a\robotology-superbuild\robotology-superbuild\b\yarp-ros.vcxproj]
2024-08-09T13:49:43.0015385Z     Generating code from ../../../extern/ros/std_msgs/msg/Bool.msg
2024-08-09T13:49:43.0173979Z C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(254,5): error MSB8066: Custom build for 'D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\71408729b4f9e8a3380a2a5d927a11bf\Bool.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\71408729b4f9e8a3380a2a5d927a11bf\Byte.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\71408729b4f9e8a3380a2a5d927a11bf\ByteMultiArray.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\71408729b4f9e8a3380a2a5d927a11bf\Char.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\71408729b4f9e8a3380a2a5d927a11bf\ColorRGBA.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\71408729b4f9e8a3380a2a5d927a11bf\Duration.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\71408729b4f9e8a3380a2a5d927a11bf\Empty.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\71408729b4f9e8a3380a2a5d927a11bf\Float32.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\71408729b4f9e8a3380a2a5d927a11bf\Float32MultiArray.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\71408729b4f9e8a3380a2a5d927a11bf\Float64.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\71408729b4f9e8a3380a2a5d927a11bf\Float64MultiArray.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\71408729b4f9e8a3380a2a5d927a11bf\Header.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\71408729b4f9e8a3380a2a5d927a11bf\Int16.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\71408729b4f9e8a3380a2a5d927a11bf\Int16MultiArray.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\71408729b4f9e8a3380a2a5d927a11bf\Int32.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\71408729b4f9e8a3380a2a5d927a11bf\Int32MultiArray.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\71408729b4f9e8a3380a2a5d927a11bf\Int64.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\71408729b4f9e8a3380a2a5d927a11bf\Int64MultiArray.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\71408729b4f9e8a3380a2a5d927a11bf\Int8.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\71408729b4f9e8a3380a2a5d927a11bf\Int8MultiArray.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\71408729b4f9e8a3380a2a5d927a11bf\MultiArrayDimension.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\71408729b4f9e8a3380a2a5d927a11bf\MultiArrayLayout.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\71408729b4f9e8a3380a2a5d927a11bf\String.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\71408729b4f9e8a3380a2a5d927a11bf\Time.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\71408729b4f9e8a3380a2a5d927a11bf\UInt16.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\71408729b4f9e8a3380a2a5d927a11bf\UInt16MultiArray.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\71408729b4f9e8a3380a2a5d927a11bf\UInt32.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\71408729b4f9e8a3380a2a5d927a11bf\UInt32MultiArray.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\71408729b4f9e8a3380a2a5d927a11bf\UInt64.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\71408729b4f9e8a3380a2a5d927a11bf\UInt64MultiArray.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\71408729b4f9e8a3380a2a5d927a11bf\UInt8.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\71408729b4f9e8a3380a2a5d927a11bf\UInt8MultiArray.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\eee085284bb588ce1fb3b299d24609d3\YARP_rosmsg_gen_std_msgs.rule;D:\a\robotology-superbuild\robotology-superbuild\src\yarp-ros\src\libYARP_rosmsg\src\CMakeLists.txt' exited with code -1073741515. [D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\src\libYARP_rosmsg\src\YARP_rosmsg_gen_std_msgs.vcxproj] [D:\a\robotology-superbuild\robotology-superbuild\b\yarp-ros.vcxproj]
2024-08-09T13:49:43.0695557Z     Generating code from ../../../extern/ros/common_msgs/stereo_msgs/msg/DisparityImage.msg
2024-08-09T13:49:43.0820864Z C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(254,5): error MSB8066: Custom build for 'D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\e6f5737187271827c358c076c35fb64a\DisparityImage.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\eee085284bb588ce1fb3b299d24609d3\YARP_rosmsg_gen_stereo_msgs.rule;D:\a\robotology-superbuild\robotology-superbuild\src\yarp-ros\src\libYARP_rosmsg\src\CMakeLists.txt' exited with code -1073741515. [D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\src\libYARP_rosmsg\src\YARP_rosmsg_gen_stereo_msgs.vcxproj] [D:\a\robotology-superbuild\robotology-superbuild\b\yarp-ros.vcxproj]
2024-08-09T13:49:43.1368618Z     Generating code from ../../../extern/ros/geometry/tf/srv/FrameGraph.srv
2024-08-09T13:49:43.1496635Z C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(254,5): error MSB8066: Custom build for 'D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\64bb7fa58e6adcc4c7fc98a8f708ef63\FrameGraph.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\64bb7fa58e6adcc4c7fc98a8f708ef63\tfMessage.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\eee085284bb588ce1fb3b299d24609d3\YARP_rosmsg_gen_tf.rule;D:\a\robotology-superbuild\robotology-superbuild\src\yarp-ros\src\libYARP_rosmsg\src\CMakeLists.txt' exited with code -1073741515. [D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\src\libYARP_rosmsg\src\YARP_rosmsg_gen_tf.vcxproj] [D:\a\robotology-superbuild\robotology-superbuild\b\yarp-ros.vcxproj]
2024-08-09T13:49:43.2057109Z     Generating code from ../../../extern/ros/geometry2/tf2_msgs/srv/FrameGraph.srv
2024-08-09T13:49:43.2186883Z C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(254,5): error MSB8066: Custom build for 'D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\4872991f3a8f6855b5df4fee15b950e9\FrameGraph.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\4872991f3a8f6855b5df4fee15b950e9\TF2Error.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\4872991f3a8f6855b5df4fee15b950e9\TFMessage.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\eee085284bb588ce1fb3b299d24609d3\YARP_rosmsg_gen_tf2_msgs.rule;D:\a\robotology-superbuild\robotology-superbuild\src\yarp-ros\src\libYARP_rosmsg\src\CMakeLists.txt' exited with code -1073741515. [D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\src\libYARP_rosmsg\src\YARP_rosmsg_gen_tf2_msgs.vcxproj] [D:\a\robotology-superbuild\robotology-superbuild\b\yarp-ros.vcxproj]
2024-08-09T13:49:43.2742404Z     Generating code from ../../../extern/ros/common_msgs/trajectory_msgs/msg/JointTrajectory.msg
2024-08-09T13:49:43.2874150Z C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(254,5): error MSB8066: Custom build for 'D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\d7b93c0a178b1d8eba5a5776d4b4feeb\JointTrajectory.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\d7b93c0a178b1d8eba5a5776d4b4feeb\JointTrajectoryPoint.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\d7b93c0a178b1d8eba5a5776d4b4feeb\MultiDOFJointTrajectory.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\d7b93c0a178b1d8eba5a5776d4b4feeb\MultiDOFJointTrajectoryPoint.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\eee085284bb588ce1fb3b299d24609d3\YARP_rosmsg_gen_trajectory_msgs.rule;D:\a\robotology-superbuild\robotology-superbuild\src\yarp-ros\src\libYARP_rosmsg\src\CMakeLists.txt' exited with code -1073741515. [D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\src\libYARP_rosmsg\src\YARP_rosmsg_gen_trajectory_msgs.vcxproj] [D:\a\robotology-superbuild\robotology-superbuild\b\yarp-ros.vcxproj]
2024-08-09T13:49:43.3449519Z     Generating code from ../../../extern/ros/common_msgs/visualization_msgs/msg/ImageMarker.msg
2024-08-09T13:49:43.3582243Z C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(254,5): error MSB8066: Custom build for 'D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\0360d945055fc195f16115795f5b6e83\ImageMarker.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\0360d945055fc195f16115795f5b6e83\InteractiveMarker.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\0360d945055fc195f16115795f5b6e83\InteractiveMarkerControl.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\0360d945055fc195f16115795f5b6e83\InteractiveMarkerFeedback.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\0360d945055fc195f16115795f5b6e83\InteractiveMarkerInit.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\0360d945055fc195f16115795f5b6e83\InteractiveMarkerPose.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\0360d945055fc195f16115795f5b6e83\InteractiveMarkerUpdate.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\0360d945055fc195f16115795f5b6e83\Marker.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\0360d945055fc195f16115795f5b6e83\MarkerArray.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\0360d945055fc195f16115795f5b6e83\MenuEntry.h.rule;D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\CMakeFiles\eee085284bb588ce1fb3b299d24609d3\YARP_rosmsg_gen_visualization_msgs.rule;D:\a\robotology-superbuild\robotology-superbuild\src\yarp-ros\src\libYARP_rosmsg\src\CMakeLists.txt' exited with code -1073741515. [D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\src\libYARP_rosmsg\src\YARP_rosmsg_gen_visualization_msgs.vcxproj] [D:\a\robotology-superbuild\robotology-superbuild\b\yarp-ros.vcxproj]
2024-08-09T13:49:43.4282513Z     Building Custom Rule D:/a/robotology-superbuild/robotology-superbuild/src/yarp-ros/src/libYARP_wire_rep_utils/src/CMakeLists.txt

I guess that teh yarp_rosmsg generator in yarp-ros requires YARP's .dll to be in the PATH for running the generator, but they are not there as at that point in the build we still did not source the setup.bat of the superbuild.

@traversaro traversaro closed this Sep 20, 2024
@traversaro traversaro reopened this Sep 20, 2024
@traversaro
Copy link
Member Author

I heard from two developers in the last week that they had problems of compatibility due to this, let's try to wrap it up (also in view of a possible YARP 3.10.0 release).

fyi @mfussi66 @kaidegast @MSECode @valegagge @Nicogene

@traversaro
Copy link
Member Author

I guess that teh yarp_rosmsg generator in yarp-ros requires YARP's .dll to be in the PATH for running the generator, but they are not there as at that point in the build we still did not source the setup.bat of the superbuild.

vcpkg build is not frequently use, I guess we can just add the right path in the CI script.

@traversaro
Copy link
Member Author

I guess that teh yarp_rosmsg generator in yarp-ros requires YARP's .dll to be in the PATH for running the generator, but they are not there as at that point in the build we still did not source the setup.bat of the superbuild.

Workaround added in 9b6fe9d .

@traversaro
Copy link
Member Author

  • macos-12 fails with:
WARNING: Error parsing dependencies of yarp: Invalid version: '3.9.0+167-20240805.2+git2fd8e6993'
Error: Process completed with exit code 1.

This problem was fixed in robotology/yarp#3097, but I guess the fix was never forward-merged in yarp master.

This was fixed in robotology/yarp@ac4b416, the merge yarp-3.9 --> master was broken and now it should work fine.

@traversaro
Copy link
Member Author

New failure:

2024-10-10T13:22:34.0084089Z [6/56] Building CXX object src/devices/laserFromRosTopic/CMakeFiles/yarp_laserFromRosTopic.dir/yarp_plugin_laserFromRosTopic.cpp.o
2024-10-10T13:22:34.0085926Z FAILED: src/devices/laserFromRosTopic/CMakeFiles/yarp_laserFromRosTopic.dir/yarp_plugin_laserFromRosTopic.cpp.o 
2024-10-10T13:22:34.0101301Z /home/runner/miniconda3/envs/test/bin/x86_64-conda-linux-gnu-c++ -Dyarp_laserFromRosTopic_EXPORTS -isystem /home/runner/work/robotology-superbuild/robotology-superbuild/b/install/include -Wall -Wextra -Wsign-compare -Wpointer-arith -Winit-self -Wnon-virtual-dtor -Wcast-align -Wunused -Wunused-but-set-variable -Wvla -Wmissing-include-dirs -Wlogical-op -Wreorder -Wsizeof-pointer-memaccess -Woverloaded-virtual -Wmismatched-new-delete -Wundef -Wredundant-decls -Wunknown-pragmas -Wunused-result -Wc++2a-compat -Wignored-attributes -Wdangling-else -Wmisleading-indentation -Wtautological-compare -Wsuggest-override -Wmaybe-uninitialized  -Wno-unused-parameter  -Wdeprecated-declarations -fvisibility-inlines-hidden -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/runner/miniconda3/envs/test/include -fvisibility-inlines-hidden -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/runner/miniconda3/envs/test/include -O3 -DNDEBUG -fPIC -MD -MT src/devices/laserFromRosTopic/CMakeFiles/yarp_laserFromRosTopic.dir/yarp_plugin_laserFromRosTopic.cpp.o -MF src/devices/laserFromRosTopic/CMakeFiles/yarp_laserFromRosTopic.dir/yarp_plugin_laserFromRosTopic.cpp.o.d -o src/devices/laserFromRosTopic/CMakeFiles/yarp_laserFromRosTopic.dir/yarp_plugin_laserFromRosTopic.cpp.o -c /home/runner/work/robotology-superbuild/robotology-superbuild/b/src/yarp-devices-ros/src/devices/laserFromRosTopic/yarp_plugin_laserFromRosTopic.cpp
2024-10-10T13:22:34.0115970Z In file included from /home/runner/work/robotology-superbuild/robotology-superbuild/b/src/yarp-devices-ros/src/devices/laserFromRosTopic/yarp_plugin_laserFromRosTopic.cpp:10:
2024-10-10T13:22:34.0119697Z /home/runner/work/robotology-superbuild/robotology-superbuild/src/yarp-devices-ros/src/devices/laserFromRosTopic/LaserFromRosTopic.h:17:10: fatal error: yarp/dev/LaserScan2D.h: No such file or directory
2024-10-10T13:22:34.0121894Z    17 | #include <yarp/dev/LaserScan2D.h>
2024-10-10T13:22:34.0122510Z       |          ^~~~~~~~~~~~~~~~~~~~~~~~
2024-10-10T13:22:34.0123088Z compilation terminated.

I think I already solved this in the past.

@Nicogene
Copy link
Member

New failure:

2024-10-10T13:22:34.0084089Z [6/56] Building CXX object src/devices/laserFromRosTopic/CMakeFiles/yarp_laserFromRosTopic.dir/yarp_plugin_laserFromRosTopic.cpp.o
2024-10-10T13:22:34.0085926Z FAILED: src/devices/laserFromRosTopic/CMakeFiles/yarp_laserFromRosTopic.dir/yarp_plugin_laserFromRosTopic.cpp.o 
2024-10-10T13:22:34.0101301Z /home/runner/miniconda3/envs/test/bin/x86_64-conda-linux-gnu-c++ -Dyarp_laserFromRosTopic_EXPORTS -isystem /home/runner/work/robotology-superbuild/robotology-superbuild/b/install/include -Wall -Wextra -Wsign-compare -Wpointer-arith -Winit-self -Wnon-virtual-dtor -Wcast-align -Wunused -Wunused-but-set-variable -Wvla -Wmissing-include-dirs -Wlogical-op -Wreorder -Wsizeof-pointer-memaccess -Woverloaded-virtual -Wmismatched-new-delete -Wundef -Wredundant-decls -Wunknown-pragmas -Wunused-result -Wc++2a-compat -Wignored-attributes -Wdangling-else -Wmisleading-indentation -Wtautological-compare -Wsuggest-override -Wmaybe-uninitialized  -Wno-unused-parameter  -Wdeprecated-declarations -fvisibility-inlines-hidden -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/runner/miniconda3/envs/test/include -fvisibility-inlines-hidden -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/runner/miniconda3/envs/test/include -O3 -DNDEBUG -fPIC -MD -MT src/devices/laserFromRosTopic/CMakeFiles/yarp_laserFromRosTopic.dir/yarp_plugin_laserFromRosTopic.cpp.o -MF src/devices/laserFromRosTopic/CMakeFiles/yarp_laserFromRosTopic.dir/yarp_plugin_laserFromRosTopic.cpp.o.d -o src/devices/laserFromRosTopic/CMakeFiles/yarp_laserFromRosTopic.dir/yarp_plugin_laserFromRosTopic.cpp.o -c /home/runner/work/robotology-superbuild/robotology-superbuild/b/src/yarp-devices-ros/src/devices/laserFromRosTopic/yarp_plugin_laserFromRosTopic.cpp
2024-10-10T13:22:34.0115970Z In file included from /home/runner/work/robotology-superbuild/robotology-superbuild/b/src/yarp-devices-ros/src/devices/laserFromRosTopic/yarp_plugin_laserFromRosTopic.cpp:10:
2024-10-10T13:22:34.0119697Z /home/runner/work/robotology-superbuild/robotology-superbuild/src/yarp-devices-ros/src/devices/laserFromRosTopic/LaserFromRosTopic.h:17:10: fatal error: yarp/dev/LaserScan2D.h: No such file or directory
2024-10-10T13:22:34.0121894Z    17 | #include <yarp/dev/LaserScan2D.h>
2024-10-10T13:22:34.0122510Z       |          ^~~~~~~~~~~~~~~~~~~~~~~~
2024-10-10T13:22:34.0123088Z compilation terminated.

I think I already solved this in the past.

This is a similar failure that currently is in yarp-devices-ros2, this is due to:

I think that neither yarp-ros and yarp-devices-ros2 has been ported

@traversaro
Copy link
Member Author

Thanks, I was actually confusing it with robotology/gazebo-yarp-plugins#690 that was for sure easier.

@traversaro
Copy link
Member Author

Fix provided in robotology/yarp-devices-ros#3 .

@traversaro
Copy link
Member Author

New fix robotology/gz-sim-yarp-plugins#217 (fyi @xela-95 can you quicky check the PR so we can unblock this one? Thanks!)

@xela-95
Copy link
Member

xela-95 commented Oct 11, 2024

New fix robotology/gz-sim-yarp-plugins#217 (fyi @xela-95 can you quicky check the PR so we can unblock this one? Thanks!)

Done!

@traversaro
Copy link
Member Author

New fix robotology/gz-sim-yarp-plugins#217 (fyi @xela-95 can you quicky check the PR so we can unblock this one? Thanks!)

Done!

Thanks!

@traversaro
Copy link
Member Author

Finally green!

@traversaro
Copy link
Member Author

Actually not, still a Windows error after 1.5 h of CI:

2024-10-11T12:11:36.8405581Z   CMake Error at D:/a/robotology-superbuild/robotology-superbuild/b/install/lib/cmake/YARP/YARPConfig.cmake:150 (find_package):
2024-10-11T12:11:36.8407255Z     Could not find a package configuration file provided by "YARP_rosmsg" with
2024-10-11T12:11:36.8407862Z     any of the following names:
2024-10-11T12:11:36.8408155Z   
2024-10-11T12:11:36.8408355Z       YARP_rosmsgConfig.cmake
2024-10-11T12:11:36.8408720Z       yarp_rosmsg-config.cmake
2024-10-11T12:11:36.8408969Z   
2024-10-11T12:11:36.8409313Z     Add the installation prefix of "YARP_rosmsg" to CMAKE_PREFIX_PATH or set
2024-10-11T12:11:36.8409924Z     "YARP_rosmsg_DIR" to a directory containing one of the above files.  If
2024-10-11T12:11:36.8410527Z     "YARP_rosmsg" provides a separate development package or SDK, be sure it
2024-10-11T12:11:36.8410977Z     has been installed.
2024-10-11T12:11:36.8411237Z   Call Stack (most recent call first):
2024-10-11T12:11:36.8411674Z     publishers/HumanStatePublisher/CMakeLists.txt:4 (find_package)
2024-10-11T12:11:36.8412076Z   
2024-10-11T12:11:36.8412229Z   
2024-10-11T12:11:36.8420776Z   -- Configuring incomplete, errors occurred!

@traversaro
Copy link
Member Author

The actual error is:

2024-10-11T12:32:52.1959584Z        Creating library D:/a/robotology-superbuild/robotology-superbuild/b/src/yarp-ros/src/carriers/xmlrpc_carrier/Release/yarp_xmlrpc.lib and object D:/a/robotology-superbuild/robotology-superbuild/b/src/yarp-ros/src/carriers/xmlrpc_carrier/Release/yarp_xmlrpc.exp
2024-10-11T12:32:52.2482570Z     yarp_xmlrpc.vcxproj -> D:\a\robotology-superbuild\robotology-superbuild\b\src\yarp-ros\lib\yarp\Release\yarp_xmlrpc.dll
2024-10-11T12:32:52.2807410Z C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(254,5): error MSB8066: Custom build for 'D:\a\robotology-superbuild\robotology-superbuild\b\CMakeFiles\d9c11c0650ae59f51a0ee092b89388a2\yarp-ros-configure.rule;D:\a\robotology-superbuild\robotology-superbuild\b\CMakeFiles\d9c11c0650ae59f51a0ee092b89388a2\yarp-ros-build.rule;D:\a\robotology-superbuild\robotology-superbuild\b\CMakeFiles\d9c11c0650ae59f51a0ee092b89388a2\yarp-ros-install.rule;D:\a\robotology-superbuild\robotology-superbuild\b\CMakeFiles\749f66fd2258ce12d9f2093c7ec6007b\yarp-ros-complete.rule;D:\a\robotology-superbuild\robotology-superbuild\b\CMakeFiles\7bcbaeb6a047aea64e351c9c4eb34a3f\yarp-ros.rule;D:\a\robotology-superbuild\robotology-superbuild\CMakeLists.txt' exited with code 1. [D:\a\robotology-superbuild\robotology-superbuild\b\yarp-ros.vcxproj]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unstable CI failure End of November 2023
4 participants