Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. opencv2/core.hpp - No such file or directory
Forum Updated to NodeBB v4.3 + New Features

opencv2/core.hpp - No such file or directory

Scheduled Pinned Locked Moved Solved Installation and Deployment
5 Posts 2 Posters 5.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    amy.cpp
    wrote on last edited by
    #1

    Hi guys, I know I got a typical error, but I can't find a solution.
    I'm trying to add to my project core.hpp and few more and then I got the error
    File is in:
    C:\Users\Amelia\Downloads\opencv\build\include\opencv2
    My .pro file:

    INCLUDEPATH += "C:/Users/Amelia/Downloads/opencv/build/include/opencv2"
    

    Includes in my main file:

    #include "opencv2/core.hpp"
    

    I am on Windows. Pls help. Thanks

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      You already have opencv2 in the path you have in your INCLUDEPATH statement.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      A 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        You already have opencv2 in the path you have in your INCLUDEPATH statement.

        A Offline
        A Offline
        amy.cpp
        wrote on last edited by
        #3

        @SGaist Yes I'm sure path is right and contains the file

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          The issue is that the path includes the opencv2 folder. Stop at "include". Or remove the opencv2 from your include statements.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          A 1 Reply Last reply
          1
          • SGaistS SGaist

            The issue is that the path includes the opencv2 folder. Stop at "include". Or remove the opencv2 from your include statements.

            A Offline
            A Offline
            amy.cpp
            wrote on last edited by
            #5

            @SGaist Thank you that was it, thanks a lot

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved