Skip to content

fix qnx-sdp-700 build#24868

Merged
asmorkalov merged 1 commit intoopencv:4.xfrom
zchrissirhcz:fix-qnx-sdp-700-build
Jan 18, 2024
Merged

fix qnx-sdp-700 build#24868
asmorkalov merged 1 commit intoopencv:4.xfrom
zchrissirhcz:fix-qnx-sdp-700-build

Conversation

@zchrissirhcz
Copy link
Copy Markdown
Contributor

based on #24864

Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

  • I agree to contribute to the project under Apache 2 License.
  • To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
  • The PR is proposed to the proper branch
  • There is a reference to the original bug report and related work
  • There is accuracy test, performance test and test data in opencv_extra repository, if applicable
    Patch to opencv_extra has the same branch name.
  • The feature is well documented and sample code can be built with the project CMake

What build errors this PR solved

When building with qnx-sdp-700 with code in this PR: #24864,
there is compile error:

[ 38%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/trace.cpp.o
/builds/3rdparty/opencv-build/opencv/modules/core/src/system.cpp:131:20: error: expected primary-expression before 'auto'
 constexpr decltype(auto) AT_HWCAP = NT_GNU_HWCAP;
                    ^

decltype(auto) seems to be an C++14 introduced feature, intead of C++11.
uint64_t is OK when build locally.

asmorkalov

@zchrissirhcz zchrissirhcz force-pushed the fix-qnx-sdp-700-build branch from 194698f to 37b02d1 Compare January 17, 2024 13:50
Copy link
Copy Markdown
Contributor

@asmorkalov asmorkalov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@asmorkalov asmorkalov merged commit 72f0717 into opencv:4.x Jan 18, 2024
@asmorkalov asmorkalov self-assigned this Jan 18, 2024
@zchrissirhcz zchrissirhcz deleted the fix-qnx-sdp-700-build branch January 18, 2024 10:39
@asmorkalov asmorkalov mentioned this pull request Jan 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants