Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to connect IP camera to QT ?
Forum Updated to NodeBB v4.3 + New Features

How to connect IP camera to QT ?

Scheduled Pinned Locked Moved Unsolved General and Desktop
18 Posts 6 Posters 2.6k 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 Vijaykarthikeyan

    @JonB Screenshot 2023-06-20 105831.png Screenshot 2023-06-19 184808.png

    JonBJ Online
    JonBJ Online
    JonB
    wrote on last edited by
    #9

    @Vijaykarthikeyan
    Why are you continuing the same discussion about your linking in thread https://forum.qt.io/topic/145898/opencv-ip-camera-connection ? This is precisely why it's not helpful to be maintaining separate threads about essentially the same question, that wastes people's time answering in two places.

    I posted a question to you there.

    V 1 Reply Last reply
    2
    • JonBJ JonB

      @Vijaykarthikeyan
      Why are you continuing the same discussion about your linking in thread https://forum.qt.io/topic/145898/opencv-ip-camera-connection ? This is precisely why it's not helpful to be maintaining separate threads about essentially the same question, that wastes people's time answering in two places.

      I posted a question to you there.

      V Offline
      V Offline
      Vijaykarthikeyan
      wrote on last edited by
      #10

      @JonB Sorry Sir..you have tag me also...I too didnt noticed your reply

      JonBJ 1 Reply Last reply
      0
      • V Vijaykarthikeyan

        @JonB Sorry Sir..you have tag me also...I too didnt noticed your reply

        JonBJ Online
        JonBJ Online
        JonB
        wrote on last edited by
        #11

        @Vijaykarthikeyan
        I think these two questions are the same? You need to sort out the linking in both cases before proceeding.

        V 1 Reply Last reply
        1
        • JonBJ JonB

          @Vijaykarthikeyan
          I think these two questions are the same? You need to sort out the linking in both cases before proceeding.

          V Offline
          V Offline
          Vijaykarthikeyan
          wrote on last edited by
          #12

          @JonB Oh..thank you..I've changed my compiler settings to 64-bit version..But still the error persists

          SGaistS 1 Reply Last reply
          0
          • V Vijaykarthikeyan

            @JonB Oh..thank you..I've changed my compiler settings to 64-bit version..But still the error persists

            SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #13

            @Vijaykarthikeyan Verify that everything is using the same architecture and that you are also linking to all the required libraries.

            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
            1
            • SGaistS SGaist

              @Vijaykarthikeyan Verify that everything is using the same architecture and that you are also linking to all the required libraries.

              V Offline
              V Offline
              Vijaykarthikeyan
              wrote on last edited by
              #14

              @SGaist My compiler is MING 8.1.0 64 bit compiler..

              Upon reading, I found that OpenCV 4.X versions are compatible with Qt 5 and 6

              I've downloaded OpenCV 4.7 version..There is only one library called open_cvworld470

              Upon searching,I came to know that the error undefined error results from Linking error..But,Ive followed the correct way to link theat library in .pro file.

              JonBJ 1 Reply Last reply
              0
              • V Vijaykarthikeyan

                @SGaist My compiler is MING 8.1.0 64 bit compiler..

                Upon reading, I found that OpenCV 4.X versions are compatible with Qt 5 and 6

                I've downloaded OpenCV 4.7 version..There is only one library called open_cvworld470

                Upon searching,I came to know that the error undefined error results from Linking error..But,Ive followed the correct way to link theat library in .pro file.

                JonBJ Online
                JonBJ Online
                JonB
                wrote on last edited by JonB
                #15

                @Vijaykarthikeyan
                What actual library file do you have: opencv_world470.lib or libopencv_world.a? If it is the former then it looks to me like your OpenCV is compiled with MCVC (and the path including vc16 seems to confirm that). You cannot then compile your own or Qt code with MinGW and link against a library compiled with MSVC. Everything must be either MSVC or MInGW, not a mixture. Sounds like your issue?

                V 1 Reply Last reply
                1
                • JonBJ JonB

                  @Vijaykarthikeyan
                  What actual library file do you have: opencv_world470.lib or libopencv_world.a? If it is the former then it looks to me like your OpenCV is compiled with MCVC (and the path including vc16 seems to confirm that). You cannot then compile your own or Qt code with MinGW and link against a library compiled with MSVC. Everything must be either MSVC or MInGW, not a mixture. Sounds like your issue?

                  V Offline
                  V Offline
                  Vijaykarthikeyan
                  wrote on last edited by
                  #16

                  @JonB .lib extension. Yeah! My compiler is MIGGW 64 bit compiler..I think you are right.. Compiler mismatches.. But,there's an option for MSVC 64 bit compiler..Will the MSVC option works for .lib?

                  JonBJ 1 Reply Last reply
                  0
                  • V Vijaykarthikeyan

                    @JonB .lib extension. Yeah! My compiler is MIGGW 64 bit compiler..I think you are right.. Compiler mismatches.. But,there's an option for MSVC 64 bit compiler..Will the MSVC option works for .lib?

                    JonBJ Online
                    JonBJ Online
                    JonB
                    wrote on last edited by
                    #17

                    @Vijaykarthikeyan
                    Yes. .lib is MSVC. If you want to link against that you need to compile with a (compatible version of) MSVC. If you want to stick with MinGW you will need to either obtain or compile for yourself a MinGW version of OpenCV. Qt works with either compiler (so long as you have right libraries for chosen one).

                    V 1 Reply Last reply
                    0
                    • JonBJ JonB

                      @Vijaykarthikeyan
                      Yes. .lib is MSVC. If you want to link against that you need to compile with a (compatible version of) MSVC. If you want to stick with MinGW you will need to either obtain or compile for yourself a MinGW version of OpenCV. Qt works with either compiler (so long as you have right libraries for chosen one).

                      V Offline
                      V Offline
                      Vijaykarthikeyan
                      wrote on last edited by
                      #18

                      @JonB Thank you for your kind reply..I finally sort out the problem..but there's a 1 to 1.5 seconds delay in output..

                      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