Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. OpenCV IP Camera connection
Forum Updated to NodeBB v4.3 + New Features

OpenCV IP Camera connection

Scheduled Pinned Locked Moved Solved 3rd Party Software
9 Posts 4 Posters 1.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.
  • V Offline
    V Offline
    Vijaykarthikeyan
    wrote on 20 Jun 2023, 09:51 last edited by
    #1

    I'm trying to connect IP camera in Qt. For which I'm using OpenCV library. My Qt version in 5.15.2 and the OpenCV library which I have downloaded is 4.7 . Upon Building the project error hits..

    The errors are:

    error: undefined reference to `cv::VideoCapture::VideoCapture()'

    error: undefined reference to `cv::Mat::~Mat()'

    error: undefined reference to `cv::waitKey(int)'

    error: undefined reference to `cv::VideoCapture::read(cv::_OutputArray const&)'

    S J 2 Replies Last reply 20 Jun 2023, 20:55
    0
    • V Vijaykarthikeyan
      20 Jun 2023, 09:51

      I'm trying to connect IP camera in Qt. For which I'm using OpenCV library. My Qt version in 5.15.2 and the OpenCV library which I have downloaded is 4.7 . Upon Building the project error hits..

      The errors are:

      error: undefined reference to `cv::VideoCapture::VideoCapture()'

      error: undefined reference to `cv::Mat::~Mat()'

      error: undefined reference to `cv::waitKey(int)'

      error: undefined reference to `cv::VideoCapture::read(cv::_OutputArray const&)'

      S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 20 Jun 2023, 20:55 last edited by
      #2

      Hi,

      Are you linking to the OpenCV libraries ?
      Which of them ?
      Are they for the correct architecture ?
      Are they from a compatible compiler ?

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

      V 1 Reply Last reply 21 Jun 2023, 06:05
      0
      • V Vijaykarthikeyan
        20 Jun 2023, 09:51

        I'm trying to connect IP camera in Qt. For which I'm using OpenCV library. My Qt version in 5.15.2 and the OpenCV library which I have downloaded is 4.7 . Upon Building the project error hits..

        The errors are:

        error: undefined reference to `cv::VideoCapture::VideoCapture()'

        error: undefined reference to `cv::Mat::~Mat()'

        error: undefined reference to `cv::waitKey(int)'

        error: undefined reference to `cv::VideoCapture::read(cv::_OutputArray const&)'

        J Offline
        J Offline
        jsulm
        Lifetime Qt Champion
        wrote on 21 Jun 2023, 05:19 last edited by
        #3

        @Vijaykarthikeyan Please don't double post!
        You asked exact same here: https://forum.qt.io/topic/145873/how-to-connect-ip-camera-using-opencv-library-for-the-qt-version-5-15-2-im-trying-to-display-the-ip-camera-output-in-qml-window
        And failed to answer my questions...

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        V 1 Reply Last reply 21 Jun 2023, 06:53
        0
        • S SGaist
          20 Jun 2023, 20:55

          Hi,

          Are you linking to the OpenCV libraries ?
          Which of them ?
          Are they for the correct architecture ?
          Are they from a compatible compiler ?

          V Offline
          V Offline
          Vijaykarthikeyan
          wrote on 21 Jun 2023, 06:05 last edited by Vijaykarthikeyan
          #4

          @SGaist Yes,sir.

          I'm using OpenCV 4.7 version.

          My compiler version is MINGW 8.1.0 32 bit compiler

          My Qt version is 5.15.2

          I actually dont know whether they are compatible..

          Upon linking, I get the error like undefined reference..

          This is the library which I have linked with QtScreenshot 2023-06-19 184808.png

          1 Reply Last reply
          0
          • J jsulm
            21 Jun 2023, 05:19

            @Vijaykarthikeyan Please don't double post!
            You asked exact same here: https://forum.qt.io/topic/145873/how-to-connect-ip-camera-using-opencv-library-for-the-qt-version-5-15-2-im-trying-to-display-the-ip-camera-output-in-qml-window
            And failed to answer my questions...

            V Offline
            V Offline
            Vijaykarthikeyan
            wrote on 21 Jun 2023, 06:53 last edited by
            #5

            @jsulm Sorry Sir..I really dont know what exactly you asked there.

            J 1 Reply Last reply 21 Jun 2023, 06:56
            0
            • V Vijaykarthikeyan
              21 Jun 2023, 06:53

              @jsulm Sorry Sir..I really dont know what exactly you asked there.

              J Offline
              J Offline
              jsulm
              Lifetime Qt Champion
              wrote on 21 Jun 2023, 06:56 last edited by
              #6

              @Vijaykarthikeyan I asked:

              • what compiler was used to build OpenCV?
              • And I'm not sure whether the OpenCV library you're linking is the only one you need. Check what other libraries are there and which you need.

              I will not ask again...

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              V 1 Reply Last reply 21 Jun 2023, 09:25
              0
              • J jsulm
                21 Jun 2023, 06:56

                @Vijaykarthikeyan I asked:

                • what compiler was used to build OpenCV?
                • And I'm not sure whether the OpenCV library you're linking is the only one you need. Check what other libraries are there and which you need.

                I will not ask again...

                V Offline
                V Offline
                Vijaykarthikeyan
                wrote on 21 Jun 2023, 09:25 last edited by
                #7

                @jsulm The compiler is MINGW 8.1.0 32 bit compiler

                I have gone through some pages and conluded that OpenCv 4.7 is compataible with Qt version 5.15.2

                JonBJ 1 Reply Last reply 21 Jun 2023, 09:33
                0
                • V Vijaykarthikeyan
                  21 Jun 2023, 09:25

                  @jsulm The compiler is MINGW 8.1.0 32 bit compiler

                  I have gone through some pages and conluded that OpenCv 4.7 is compataible with Qt version 5.15.2

                  JonBJ Offline
                  JonBJ Offline
                  JonB
                  wrote on 21 Jun 2023, 09:33 last edited by
                  #8

                  @Vijaykarthikeyan
                  Do you mean MinGW itself is 32-bit but you are building for 64-bit, or do you mean you are building for 32-bit? Because your OpenCV path contains x64...?

                  V 1 Reply Last reply 23 Jun 2023, 12:37
                  0
                  • JonBJ JonB referenced this topic on 21 Jun 2023, 10:02
                  • V Vijaykarthikeyan has marked this topic as solved on 23 Jun 2023, 12:36
                  • JonBJ JonB
                    21 Jun 2023, 09:33

                    @Vijaykarthikeyan
                    Do you mean MinGW itself is 32-bit but you are building for 64-bit, or do you mean you are building for 32-bit? Because your OpenCV path contains x64...?

                    V Offline
                    V Offline
                    Vijaykarthikeyan
                    wrote on 23 Jun 2023, 12:37 last edited by
                    #9

                    @JonB Thank you, Sir.. You are correct. There's a mismatch between the versions. Now, I have sort out the error.

                    1 Reply Last reply
                    0

                    1/9

                    20 Jun 2023, 09:51

                    • Login

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