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. lnk2019 with opencv treshold
Forum Updated to NodeBB v4.3 + New Features

lnk2019 with opencv treshold

Scheduled Pinned Locked Moved Solved General and Desktop
27 Posts 3 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #18

    You are missing the "-l" in your LIBS lines.

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

    1 Reply Last reply
    0
    • S Offline
      S Offline
      superdu
      wrote on last edited by
      #19

      hum, but they are presents in makefile.debug

      i also try again this notation but still the same problem

      LIBS += -L"C:/src/vcpkg/vcpkg/packages/opencv4_x64-windows/lib" -lopencv_calib3d
      LIBS += -L"C:/src/vcpkg/vcpkg/packages/opencv4_x64-windows/lib" -lopencv_core
      LIBS += -L"C:/src/vcpkg/vcpkg/packages/opencv4_x64-windows/lib" -lopencv_dnn
      LIBS += -L"C:/src/vcpkg/vcpkg/packages/opencv4_x64-windows/lib" -lopencv_features2d
      LIBS += -L"C:/src/vcpkg/vcpkg/packages/opencv4_x64-windows/lib" -lopencv_flann
      LIBS += -L"C:/src/vcpkg/vcpkg/packages/opencv4_x64-windows/lib" -lopencv_highgui
      LIBS += -L"C:/src/vcpkg/vcpkg/packages/opencv4_x64-windows/lib" -lopencv_imgcodecs
      LIBS += -L"C:/src/vcpkg/vcpkg/packages/opencv4_x64-windows/lib" -lopencv_imgproc
      LIBS += -L"C:/src/vcpkg/vcpkg/packages/opencv4_x64-windows/lib" -lopencv_ml
      LIBS += -L"C:/src/vcpkg/vcpkg/packages/opencv4_x64-windows/lib" -lopencv_objdetect
      LIBS += -L"C:/src/vcpkg/vcpkg/packages/opencv4_x64-windows/lib" -lopencv_photo
      LIBS += -L"C:/src/vcpkg/vcpkg/packages/opencv4_x64-windows/lib" -lopencv_stitching
      LIBS += -L"C:/src/vcpkg/vcpkg/packages/opencv4_x64-windows/lib" -lopencv_video
      LIBS += -L"C:/src/vcpkg/vcpkg/packages/opencv4_x64-windows/lib" -lopencv_videoio
      
      
      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #20

        So if you build in debug mode it works ?

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

        1 Reply Last reply
        0
        • S Offline
          S Offline
          superdu
          wrote on last edited by
          #21

          no... i dont know why but i feel if we find the problem that will be something really stupid. and if not i will just try to compile by hand opencv but that should work like that

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

            Are these static or dynamic librairies ?

            In any case, what I would do is simplify things with the LIBS part to only link to opencv_core and only use symbols from that library in the sample application.

            This will restrict the scope of the issue.

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

            1 Reply Last reply
            0
            • S Offline
              S Offline
              superdu
              wrote on last edited by
              #23

              i just checked it with lib.exe and libs file containes dll. its dynamics library

              1 Reply Last reply
              0
              • S Offline
                S Offline
                superdu
                wrote on last edited by
                #24

                ok so i compile by hand opencv following this step: https://wiki.qt.io/How_to_setup_Qt_and_openCV_on_Windows_with_MSVC2017#Building_OpenCV

                the two difference is i use msvc 2019 and opencv 4.5.1.

                compilation seems to be a succes but when i try to us it in qt the application crash without any information

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

                  If there's a crash then it likely is that the dlls are not found at run time. Go to the Run part of the Project panel and update the PATH environment variable there so that the folder containing the OpenCV dlls are found.

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

                  1 Reply Last reply
                  1
                  • S Offline
                    S Offline
                    superdu
                    wrote on last edited by
                    #26

                    Ok my bad. i already added to path but i didnt restart my computer. i just restart it and that work well.

                    result: no more problem and treshold function work. thank you so much for your time!

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

                      Then you did it in the wrong place. Do not alter your machine's PATH, do it in Qt Creator as I explained above.

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

                      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