Clang IntelliSense not working with Raspberry Pi OpenCVDemo

Sysprogs forums Forums VisualGDB Clang IntelliSense not working with Raspberry Pi OpenCVDemo

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #7880
    pingflip
    Participant

    I went through the “Cross-compiling OpenCV 3 for Raspberry Pi 2” Tutorial. Everything works as expected, the OpenCV lib and the “findContours” Demo compile without compilation errors. But the Clang IntelliSense does not work. I get 23 errors like this:
    <pre style=”padding-left: 30px;”>[Clang IntelliSense] Error: ‘opencv2/imgcodecs.hpp’ file not found OpenCVDemo C:\visualgdb\opencv\opencvdemo\OpenCVDemo.cpp 7
    <pre style=”padding-left: 30px;”>[Clang IntelliSense] Error: use of undeclared identifier ‘WINDOW_AUTOSIZE’ OpenCVDemo c:\visualgdb\opencv\opencvdemo\OpenCVDemo.cpp 44
    The “IntelliSense based on CFLAGS” Option in the project Proberties is checked (Tutorial Step 22).
    Are there any other things I might have made wrong?

    Regards
    Max

    #7890
    support
    Keymaster

    Hi,

    Are you talking about the IntelliSense when editing the OpenCV sources, or when editing your application based on OpenCV?

    Please ensure that the “Configure IntelliSense baesd on CFLAGS dumped by CMake” checkbox on the CMake Project Settings page is set. If it was not set, please set it and build your project again.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.