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
Qt 6.11 is out! See what's new in the release blog

OpenCV IP Camera connection

Scheduled Pinned Locked Moved Solved 3rd Party Software
9 Posts 4 Posters 2.3k 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 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&)'

    SGaistS jsulmJ 2 Replies Last reply
    0
    • V Vijaykarthikeyan

      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&)'

      SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on 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
      0
      • V Vijaykarthikeyan

        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&)'

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on 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
        0
        • SGaistS SGaist

          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 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
          • jsulmJ jsulm

            @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 last edited by
            #5

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

            jsulmJ 1 Reply Last reply
            0
            • V Vijaykarthikeyan

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

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on 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
              0
              • jsulmJ jsulm

                @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 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
                0
                • V Vijaykarthikeyan

                  @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 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
                  0
                  • JonBJ JonB referenced this topic on
                  • V Vijaykarthikeyan has marked this topic as solved on
                  • JonBJ JonB

                    @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 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

                    • Login

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