Skip to content

Test build CI with C++98 on GHA#1925

Closed
s-trinh wants to merge 1 commit intolagadic:masterfrom
s-trinh:fix_ci_cpp98
Closed

Test build CI with C++98 on GHA#1925
s-trinh wants to merge 1 commit intolagadic:masterfrom
s-trinh:fix_ci_cpp98

Conversation

@s-trinh
Copy link
Contributor

@s-trinh s-trinh commented Mar 12, 2026

Test build CI with C++98 on GHA.

On my computer, I have the following errors with C++98:

visp/modules/detection/src/tag/vpDetectorAprilTag.cpp: In static member function ‘static vpDetectorAprilTag::vpAprilTagFamily vpDetectorAprilTag::tagFamilyFromString(const std::string&)’:
visp/modules/detection/src/tag/vpDetectorAprilTag.cpp:1531:66: error: ‘vpDetectorAprilTag::vpAprilTagFamily’ is not a class or namespace
 1531 |   vpDetectorAprilTag::vpAprilTagFamily res = vpDetectorAprilTag::vpAprilTagFamily::TAG_COUNT;
      |                                                                  ^~~~~~~~~~~~~~~~
visp/modules/detection/src/tag/vpDetectorAprilTag.cpp:1535:35: error: ‘vpDetectorAprilTag::vpAprilTagFamily’ is not a class or namespace
 1535 |   while ((i < vpDetectorAprilTag::vpAprilTagFamily::TAG_COUNT) && (!wasFound)) {
      |                                   ^~~~~~~~~~~~~~~~
visp/modules/detection/src/tag/vpDetectorAprilTag.cpp: In static member function ‘static std::string vpDetectorAprilTag::getAvailableTagFamily(const std::string&, const std::string&, const std::string&)’:
visp/modules/detection/src/tag/vpDetectorAprilTag.cpp:1552:52: error: ‘vpDetectorAprilTag::vpAprilTagFamily’ is not a class or namespace
 1552 |   for (unsigned int i = 0; i < vpDetectorAprilTag::vpAprilTagFamily::TAG_COUNT - 1; ++i) {
      |                                                    ^~~~~~~~~~~~~~~~
visp/modules/detection/src/tag/vpDetectorAprilTag.cpp:1556:122: error: ‘vpDetectorAprilTag::vpAprilTagFamily’ is not a class or namespace
 1556 |   vpDetectorAprilTag::vpAprilTagFamily candidate = static_cast<vpDetectorAprilTag::vpAprilTagFamily>(vpDetectorAprilTag::vpAprilTagFamily::TAG_COUNT - 1);
      |                                                                                                                          ^~~~~~~~~~~~~~~~
visp/modules/detection/src/tag/vpDetectorAprilTag.cpp: In static member function ‘static vpDetectorAprilTag::vpPoseEstimationMethod vpDetectorAprilTag::poseMethodFromString(const std::string&)’:
visp/modules/detection/src/tag/vpDetectorAprilTag.cpp:1595:72: error: ‘vpDetectorAprilTag::vpPoseEstimationMethod’ is not a class or namespace
 1595 |   vpDetectorAprilTag::vpPoseEstimationMethod res = vpDetectorAprilTag::vpPoseEstimationMethod::POSE_COUNT;
      |                                                                        ^~~~~~~~~~~~~~~~~~~~~~
visp/modules/detection/src/tag/vpDetectorAprilTag.cpp:1599:35: error: ‘vpDetectorAprilTag::vpPoseEstimationMethod’ is not a class or namespace
 1599 |   while ((i < vpDetectorAprilTag::vpPoseEstimationMethod::POSE_COUNT) && (!wasFound)) {
      |                                   ^~~~~~~~~~~~~~~~~~~~~~
visp/modules/detection/src/tag/vpDetectorAprilTag.cpp: In static member function ‘static std::string vpDetectorAprilTag::getAvailablePoseMethod(const std::string&, const std::string&, const std::string&)’:
visp/modules/detection/src/tag/vpDetectorAprilTag.cpp:1616:52: error: ‘vpDetectorAprilTag::vpPoseEstimationMethod’ is not a class or namespace
 1616 |   for (unsigned int i = 0; i < vpDetectorAprilTag::vpPoseEstimationMethod::POSE_COUNT - 1; ++i) {
      |                                                    ^~~~~~~~~~~~~~~~~~~~~~
visp/modules/detection/src/tag/vpDetectorAprilTag.cpp:1620:134: error: ‘vpDetectorAprilTag::vpPoseEstimationMethod’ is not a class or namespace
 1620 |   vpDetectorAprilTag::vpPoseEstimationMethod candidate = static_cast<vpDetectorAprilTag::vpPoseEstimationMethod>(vpDetectorAprilTag::vpPoseEstimationMethod::POSE_COUNT - 1);
      |                                                                                                                                      ^~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [modules/detection/CMakeFiles/visp_detection.dir/build.make:132 : modules/detection/CMakeFiles/visp_detection.dir/src/tag/vpDetectorAprilTag.cpp.o] Erreur 1
make[1]: *** [CMakeFiles/Makefile2:1701 : modules/detection/CMakeFiles/visp_detection.dir/all] Erreur 2
make: *** [Makefile:136 : all] Erreur 2

With:

    C++ Compiler:                /usr/lib/ccache/c++  (ver 13.3.0)

On the CI, https://github.com/lagadic/visp/actions/runs/22964526516/job/66665983438 there is something odd:

image

But the corresponding modules are indeed disabled:

image

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.

1 participant