Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

lnk2019 with opencv treshold



  • hello every one,

    I have a little problem with my qt project in qt creator. I try to use opencv but some function return to me error lnk 2019. its the case of imshow but as i dont really need it i dont care if that not work. But its also the case of other functions as threshold. Next to that im able to use Mat.

    When i make a new qt project directly in visual studio I do not encounter this problem. i can use all functions of opencv.

    I dont really know what is missing in my pro file:

    INCLUDEPATH += C:/src/vcpkg/vcpkg/packages/opencv4_x64-windows/include
    
    LIBS += "C:/src/vcpkg/vcpkg/packages/opencv4_x64-windows/lib/opencv_calib3d.lib"
    LIBS += "C:/src/vcpkg/vcpkg/packages/opencv4_x64-windows/lib/opencv_core.lib"
    LIBS += "C:/src/vcpkg/vcpkg/packages/opencv4_x64-windows/lib/opencv_dnn.lib"
    LIBS += "C:/src/vcpkg/vcpkg/packages/opencv4_x64-windows/lib/opencv_features2d.lib"
    LIBS += "C:/src/vcpkg/vcpkg/packages/opencv4_x64-windows/lib/opencv_flann.lib"
    LIBS += "C:/src/vcpkg/vcpkg/packages/opencv4_x64-windows/lib/opencv_highgui.lib"
    LIBS += "C:/src/vcpkg/vcpkg/packages/opencv4_x64-windows/lib/opencv_imgcodecs.lib"
    LIBS += "C:/src/vcpkg/vcpkg/packages/opencv4_x64-windows/lib/opencv_imgproc.lib"
    LIBS += "C:/src/vcpkg/vcpkg/packages/opencv4_x64-windows/lib/opencv_ml.lib"
    LIBS += "C:/src/vcpkg/vcpkg/packages/opencv4_x64-windows/lib/opencv_objdetect.lib"
    LIBS += "C:/src/vcpkg/vcpkg/packages/opencv4_x64-windows/lib/opencv_photo.lib"
    LIBS += "C:/src/vcpkg/vcpkg/packages/opencv4_x64-windows/lib/opencv_stitching.lib"
    LIBS += "C:/src/vcpkg/vcpkg/packages/opencv4_x64-windows/lib/opencv_video.lib"
    LIBS += "C:/src/vcpkg/vcpkg/packages/opencv4_x64-windows/lib/opencv_videoio.lib"
    

    if someone already meet this kind of behavior i will be grateful to have the solution.

    thank you in advance


  • Lifetime Qt Champion

    @superdu said in lnk2019 with opencv treshold:

    I try to use opencv but some function return to me error lnk 2019

    Please post the whole error



  • yes sorry:

    image.obj:-1: erreur : LNK2019: external symbol unresolve "double __cdecl cv::threshold(class cv::debug_build_guard::_InputArray const &,class cv::debug_build_guard::_OutputArray const &,double,double,int)" (?threshold@cv@@YANAEBV_InputArray@debug_build_guard@1@AEBV_OutputArray@31@NNH@Z)reference in function "public: class QImage __cdecl Image::starsPosition(void)" (?starsPosition@Image@@QEAA?AVQImage@@XZ)


  • Lifetime Qt Champion

    Hi,

    Might be a silly question but are you also using a 64 bit build of Qt ?



  • yes yes i use 64bit qt version


  • Lifetime Qt Champion

    @superdu said in lnk2019 with opencv treshold:

    LIBS += "C:/src/vcpkg/vcpkg/packages/opencv4_x64-windows/lib/opencv_calib3d.lib"

    Usually it's rather written as:

    LIBS += -L"C:/src/vcpkg/vcpkg/packages/opencv4_x64-windows/lib/" -lopencv_calib3d
    

    Can you test that ?



  • i originaly wrote it like that. That didn't work too.


  • Lifetime Qt Champion

    Is it the only symbol that fails the build ?



  • if i use imshow, i have this problem too. but i can use Mat. By the way i use msvc2019 (32 and 64). at the beginning i thought it was the problem. So i tried to compile it with msvc2015 but still the same problem... and i can use this functions on visual studio... the only difference is the IDE so i think i miss something but what...


  • Lifetime Qt Champion

    Just to make sure we are on the same base, can you describe your setup exactly ?
    Which IDE are you using ?
    Which exact compiler are you using ?
    Which compiler was used for OpenCV and for Qt ?



  • for my project i use QtCreator but sometime, juste for test i use visual studio.
    for openCV i used the package manager vcpkg but as that work on my vs i think its compile with msvc2019.
    qt i just used the installer. i let here systems info from QtCreator:

    {noformat}
    Qt 5.15.2 (x86_64-little_endian-llp64 shared (dynamic) release build; by MSVC 2019) on "windows"
    OS: Windows 10 Version 2009 [winnt version 10.0.19042]

    Architecture: x86_64; features: SSE2 SSE3 SSSE3 SSE4.1 SSE4.2 AVX AVX2

    Environment:
    Qt5_DIR="D:\Qt\5.15.2\msvc2019_64"
    QtMsBuild="C:\Users\antoi\AppData\Local\QtMsBuild"

    Features: QT_NO_EXCEPTIONS

    Library info:
    PrefixPath: D:\Qt\Tools\QtCreator\bin
    DocumentationPath: D:\Qt\Tools\QtCreator\bin\doc
    HeadersPath: D:\Qt\Tools\QtCreator\bin\include
    LibrariesPath: D:\Qt\Tools\QtCreator\bin
    LibraryExecutablesPath: D:\Qt\Tools\QtCreator\bin\bin
    BinariesPath: D:\Qt\Tools\QtCreator\bin
    PluginsPath: D:\Qt\Tools\QtCreator\bin\plugins
    ImportsPath: D:\Qt\Tools\QtCreator\bin\imports
    Qml2ImportsPath: D:\Qt\Tools\QtCreator\bin\qml
    ArchDataPath: D:\Qt\Tools\QtCreator\bin
    DataPath: D:\Qt\Tools\QtCreator\bin
    TranslationsPath: D:\Qt\Tools\QtCreator\bin\translations
    ExamplesPath: D:\Qt\Tools\QtCreator\bin\examples
    TestsPath: D:\Qt\Tools\QtCreator\bin\tests
    SettingsPath:

    Standard paths [... denote writable entry]:
    DesktopLocation: "Desktop" C:\Users\antoi\OneDrive\Bureau
    DocumentsLocation: "Documents" C:\Users\antoi\OneDrive\Documents
    FontsLocation: "Fonts" C:\WINDOWS\Fonts
    ApplicationsLocation: "Applications" C:\Users\antoi\AppData\Roaming\Microsoft\Windows\Start Menu\Programs
    MusicLocation: "Music" C:\Users\antoi\Music
    MoviesLocation: "Movies" C:\Users\antoi\Videos
    PicturesLocation: "Pictures" C:\Users\antoi\OneDrive\Images
    TempLocation: "Temporary Directory" C:\Users\antoi\AppData\Local\Temp
    HomeLocation: "Home" C:\Users\antoi
    AppLocalDataLocation: "Application Data" C:\Users\antoi\AppData\Local\QtProject\qtdiag C:\ProgramData\QtProject\qtdiag D:\Qt\Tools\QtCreator\bin D:\Qt\Tools\QtCreator\bin\data D:\Qt\Tools\QtCreator\bin\data\QtProject\qtdiag
    CacheLocation: "Cache" C:\Users\antoi\AppData\Local\QtProject\qtdiag\cache
    GenericDataLocation: "Shared Data" C:\Users\antoi\AppData\Local C:\ProgramData D:\Qt\Tools\QtCreator\bin D:\Qt\Tools\QtCreator\bin\data
    RuntimeLocation: "Runtime" C:\Users\antoi
    ConfigLocation: "Configuration" C:\Users\antoi\AppData\Local\QtProject\qtdiag C:\ProgramData\QtProject\qtdiag D:\Qt\Tools\QtCreator\bin D:\Qt\Tools\QtCreator\bin\data D:\Qt\Tools\QtCreator\bin\data\QtProject\qtdiag
    DownloadLocation: "Download" C:\Users\antoi\Downloads
    GenericCacheLocation: "Shared Cache" C:\Users\antoi\AppData\Local\cache
    GenericConfigLocation: "Shared Configuration" C:\Users\antoi\AppData\Local C:\ProgramData D:\Qt\Tools\QtCreator\bin D:\Qt\Tools\QtCreator\bin\data
    AppDataLocation: "Application Data" C:\Users\antoi\AppData\Roaming\QtProject\qtdiag C:\ProgramData\QtProject\qtdiag D:\Qt\Tools\QtCreator\bin D:\Qt\Tools\QtCreator\bin\data D:\Qt\Tools\QtCreator\bin\data\QtProject\qtdiag
    AppConfigLocation: "Application Configuration" C:\Users\antoi\AppData\Local\QtProject\qtdiag C:\ProgramData\QtProject\qtdiag D:\Qt\Tools\QtCreator\bin D:\Qt\Tools\QtCreator\bin\data D:\Qt\Tools\QtCreator\bin\data\QtProject\qtdiag

    File selectors (increasing order of precedence):
    fr_FR windows winnt

    Network:
    Using "OpenSSL 1.1.1d 10 Sep 2019", version: 0x1010104f

    Platform capabilities: ThreadedPixmaps OpenGL ThreadedOpenGL WindowMasks MultipleWindows ForeignWindows NonFullScreenWindows NativeWidgets WindowManagement RasterGLSurface AllGLFunctionsQueryable

    Style hints:
    mouseDoubleClickInterval: 500
    mousePressAndHoldInterval: 800
    startDragDistance: 10
    startDragTime: 500
    startDragVelocity: 0
    keyboardInputInterval: 400
    keyboardAutoRepeatRate: 32
    cursorFlashTime: 1060
    showIsFullScreen: 0
    showIsMaximized: 0
    passwordMaskDelay: 0
    passwordMaskCharacter: U+25CF
    fontSmoothingGamma: 1
    useRtlExtensions: 0
    setFocusOnTouchRelease: 0
    tabFocusBehavior: Qt::TabFocusAllControls
    singleClickActivation: 0

    Additional style hints (QPlatformIntegration):
    ReplayMousePressOutsidePopup: 1

    Theme:
    Platforms requested : windows
    available : snap,flatpak,xdgdesktopportal
    Styles requested : WindowsVista,Windows
    available : windowsvista,Windows,Fusion
    System font : "MS Shell Dlg 2" 8
    Native file dialog

    Fonts:
    General font : "MS Shell Dlg 2" 8
    Fixed font : "Courier New" 9
    Title font : "MS Shell Dlg 2" 8
    Smallest font: "MS Shell Dlg 2" 8

    Palette:
    QPalette::WindowText: #ff000000
    QPalette::Button: #fff0f0f0
    QPalette::Light: #ffffffff
    QPalette::Midlight: #ffe3e3e3
    QPalette::Dark: #ffa0a0a0
    QPalette::Mid: #ffa0a0a0
    QPalette::Text: #ff000000
    QPalette::BrightText: #ffffffff
    QPalette::ButtonText: #ff000000
    QPalette::Base: #ffffffff
    QPalette::Window: #fff0f0f0
    QPalette::Shadow: #ff696969
    QPalette::Highlight: #ff0078d7
    QPalette::HighlightedText: #ffffffff
    QPalette::Link: #ff0000ff
    QPalette::LinkVisited: #ffff00ff
    QPalette::AlternateBase: #ffe9e7e3
    QPalette::NoRole: #ff000000
    QPalette::ToolTipBase: #ffffffdc
    QPalette::ToolTipText: #ff000000
    QPalette::PlaceholderText: #80000000

    Screens: 1, High DPI scaling: inactive

    0 "\.\DISPLAY1" Depth: 32 Primary: yes

    Manufacturer:
    Model:
    Serial number:
    Geometry: 1920x1080+0+0 Available: 1920x1040+0+0
    Physical size: 382x215 mm Refresh: 144 Hz Power state: 0
    Physical DPI: 127.665,127.591 Logical DPI: 96,96 Subpixel_None
    DevicePixelRatio: 1 Pixel density: 1
    Primary orientation: 2 Orientation: 2 Native orientation: 0 OrientationUpdateMask: 0

    Dynamic GL LibGL Vendor: NVIDIA Corporation
    Renderer: NVIDIA GeForce RTX 2060/PCIe/SSE2
    Version: 4.6.0 NVIDIA 466.63
    Shading language: 4.60 NVIDIA
    Format: Version: 4.6 Profile: 2 Swap behavior: 2 Buffer size (RGBA): 8,8,8,8 Depth buffer: 24 Stencil buffer: 8
    Profile: None (QOpenGLFunctions_4_6)

    Vulkan instance available
    Supported instance extensions:
    VK_KHR_device_group_creation, version 1
    VK_KHR_display, version 23
    VK_KHR_external_fence_capabilities, version 1
    VK_KHR_external_memory_capabilities, version 1
    VK_KHR_external_semaphore_capabilities, version 1
    VK_KHR_get_display_properties2, version 1
    VK_KHR_get_physical_device_properties2, version 2
    VK_KHR_get_surface_capabilities2, version 1
    VK_KHR_surface, version 25
    VK_KHR_surface_protected_capabilities, version 1
    VK_KHR_win32_surface, version 6
    VK_EXT_debug_report, version 9
    VK_EXT_debug_utils, version 2
    VK_EXT_swapchain_colorspace, version 4
    VK_NV_external_memory_capabilities, version 1
    Supported layers:
    VK_LAYER_NV_optimus, version 1, spec version 1.2.168, NVIDIA Optimus layer
    VK_LAYER_VALVE_steam_overlay, version 1, spec version 1.2.136, Steam Overlay Layer
    VK_LAYER_VALVE_steam_fossilize, version 1, spec version 1.2.136, Steam Pipeline Caching Layer
    VK_LAYER_EOS_Overlay, version 1, spec version 1.2.136, Vulkan overlay layer for Epic Online Services
    VK_LAYER_EOS_Overlay, version 1, spec version 1.2.136, Vulkan overlay layer for Epic Online Services
    Available physical devices:
    API version 1.2.168, vendor 0x10DE, device 0x1F11, NVIDIA GeForce RTX 2060, type 2, driver version 466.252.0

    GPU #1:
    Card name : NVIDIA GeForce RTX 2060
    Driver Name : nvldumdx.dll
    Driver Version : 27.21.14.6663
    Vendor ID : 0x10DE
    Device ID : 0x1F11
    SubSys ID : 0x3FFD17AA
    Revision ID : 0x00A1

    Qt Rendering Hardware Interface supported backends:
    OpenGL (with default QSurfaceFormat):
    Min Texture Size: 1
    Max Texture Size: 32768
    Max Color Attachments: 8
    Frames in Flight: 1
    Uniform Buffer Alignment: 1
    Supported MSAA sample counts: 1,2,4,8,16,32
    Features:
    - MultisampleTexture
    v MultisampleRenderBuffer
    - DebugMarkers
    - Timestamps
    v Instancing
    - CustomInstanceStepRate
    v PrimitiveRestart
    v NonDynamicUniformBuffers
    v NonFourAlignedEffectiveIndexBufferOffset
    v NPOTTextureRepeat
    - RedOrAlpha8IsRed
    v ElementIndexUint
    v Compute
    v WideLines
    v VertexShaderPointSize
    v BaseVertex
    - BaseInstance
    v TriangleFanTopology
    v ReadBackNonUniformBuffer
    v ReadBackNonBaseMipLevel
    Texture formats: RGBA8 BGRA8 R8 R16 RED_OR_ALPHA8 RGBA16F RGBA32F R16F R32F D16 D32F BC1 BC2 BC3 ETC2_RGB8 ETC2_RGB8A1 ETC2_RGBA8 ASTC_4x4 ASTC_5x4 ASTC_5x5 ASTC_6x5 ASTC_6x6 ASTC_8x5 ASTC_8x6 ASTC_8x8 ASTC_10x5 ASTC_10x6 ASTC_10x8 ASTC_10x10 ASTC_12x10 ASTC_12x12
    Vulkan:
    Min Texture Size: 1
    Max Texture Size: 32768
    Max Color Attachments: 8
    Frames in Flight: 2
    Uniform Buffer Alignment: 64
    Supported MSAA sample counts: 1,2,4,8
    Features:
    v MultisampleTexture
    v MultisampleRenderBuffer
    - DebugMarkers
    v Timestamps
    v Instancing
    - CustomInstanceStepRate
    v PrimitiveRestart
    v NonDynamicUniformBuffers
    v NonFourAlignedEffectiveIndexBufferOffset
    v NPOTTextureRepeat
    v RedOrAlpha8IsRed
    v ElementIndexUint
    v Compute
    v WideLines
    v VertexShaderPointSize
    v BaseVertex
    v BaseInstance
    v TriangleFanTopology
    v ReadBackNonUniformBuffer
    v ReadBackNonBaseMipLevel
    Texture formats: RGBA8 BGRA8 R8 R16 RED_OR_ALPHA8 RGBA16F RGBA32F R16F R32F D16 D32F BC1 BC2 BC3 BC4 BC5 BC6H BC7
    Direct3D 11:
    Min Texture Size: 1
    Max Texture Size: 16384
    Max Color Attachments: 8
    Frames in Flight: 1
    Uniform Buffer Alignment: 256
    Supported MSAA sample counts: 1,2,4,8
    Features:
    v MultisampleTexture
    v MultisampleRenderBuffer
    v DebugMarkers
    v Timestamps
    v Instancing
    v CustomInstanceStepRate
    v PrimitiveRestart
    - NonDynamicUniformBuffers
    v NonFourAlignedEffectiveIndexBufferOffset
    v NPOTTextureRepeat
    v RedOrAlpha8IsRed
    v ElementIndexUint
    v Compute
    - WideLines
    - VertexShaderPointSize
    v BaseVertex
    v BaseInstance
    - TriangleFanTopology
    v ReadBackNonUniformBuffer
    v ReadBackNonBaseMipLevel
    Texture formats: RGBA8 BGRA8 R8 R16 RED_OR_ALPHA8 RGBA16F RGBA32F R16F R32F D16 D32F BC1 BC2 BC3 BC4 BC5 BC6H BC7

    Plugin information:

    • Android 4.15.0
    • AutoTest 4.15.0
      AutotoolsProjectManager 4.15.0
      BareMetal 4.15.0
    • Bazaar 4.15.0
      Beautifier 4.15.0
    • BinEditor 4.15.0
    • Bookmarks 4.15.0
      Boot2Qt 4.15.0
    • CMakeProjectManager 4.15.0
    • CVS 4.15.0
    • ClangCodeModel 4.15.0
      ClangFormat 4.15.0
    • ClangTools 4.15.0
    • ClassView 4.15.0
      ClearCase 4.15.0
    • CodePaster 4.15.0
      CompilationDatabaseProjectManager 4.15.0
      Conan 4.15.0
    • Core 4.15.0
    • CppEditor 4.15.0
    • CppTools 4.15.0
      Cppcheck 4.15.0
    • CtfVisualizer 4.15.0
    • Debugger 4.15.0
    • Designer 4.15.0
    • DiffEditor 4.15.0
      EmacsKeys 4.15.0
    • FakeVim 4.15.0
    • GLSLEditor 4.15.0
    • GenericProjectManager 4.15.0
    • Git 4.15.0
      HelloWorld 4.15.0
    • Help 4.15.0
    • ImageViewer 4.15.0
    • IncrediBuild 4.15.0
      Ios 4.15.0
    • LanguageClient 4.15.0
    • Macros 4.15.0
    • Marketplace 4.15.0
      McuSupport 4.15.0
    • Mercurial 4.15.0
      MesonProjectManager 4.15.0
    • ModelEditor 4.15.0
      Nim 4.15.0
    • PerfProfiler 4.15.0
      Perforce 4.15.0
    • ProjectExplorer 4.15.0
    • Python 4.15.0
    • QbsProjectManager 4.15.0
    • QmakeProjectManager 4.15.0
    • QmlDesigner 4.15.0
    • QmlJSEditor 4.15.0
    • QmlJSTools 4.15.0
    • QmlPreview 4.15.0
    • QmlProfiler 4.15.0
    • QmlProjectManager 4.15.0
    • Qnx 4.15.0
    • QtSupport 4.15.0
    • RemoteLinux 4.15.0
    • ResourceEditor 4.15.0
    • ScxmlEditor 4.15.0
      SerialTerminal 4.15.0
      SilverSearcher 4.15.0
      StudioWelcome 4.15.0
    • Subversion 4.15.0
    • TaskList 4.15.0
    • TextEditor 4.15.0
      Todo 4.15.0
    • UpdateInfo 4.15.0
    • Valgrind 4.15.0
    • VcsBase 4.15.0
    • WebAssembly 4.15.0
    • Welcome 4.15.0
    • WinRt 4.15.0

    Qt Creator 4.15.0
    Basé sur Qt 5.15.2 (MSVC 2019, 64 bit)
    From revision 978f6caf1e
    Built on May 4 2021 01:16:56

    {noformat}


  • Lifetime Qt Champion

    Ok... nothing stands out as wrong.

    Can you start from a default Qt project and just one OpenCV method there ?

    It might be easier to debug your issue.



  • ok so here the code (thank you for your time by the way):

    cpp

    #include "mainwindow.h"
    #include "ui_mainwindow.h"
    
    MainWindow::MainWindow(QWidget *parent)
        : QMainWindow(parent)
        , ui(new Ui::MainWindow)
    {
        ui->setupUi(this);
        Mat new_img = Mat::zeros(25, 25, CV_16U);
        Mat dest;
    
        threshold(new_img,dest,200,255,THRESH_BINARY | THRESH_OTSU);
    
    }
    
    MainWindow::~MainWindow()
    {
        delete ui;
    }
    
    
    

    header

    #ifndef MAINWINDOW_H
    #define MAINWINDOW_H
    
    #include <QMainWindow>
    #include <opencv2/core.hpp>
    #include <opencv2/highgui.hpp>
    #include <opencv2/imgcodecs.hpp>
    #include <opencv2/opencv.hpp>
    #include "opencv2/imgproc.hpp"
    
    using namespace cv;
    
    QT_BEGIN_NAMESPACE
    namespace Ui { class MainWindow; }
    QT_END_NAMESPACE
    
    class MainWindow : public QMainWindow
    {
        Q_OBJECT
    
    public:
        MainWindow(QWidget *parent = nullptr);
        ~MainWindow();
    
    private:
        Ui::MainWindow *ui;
    };
    #endif // MAINWINDOW_H
    
    

    pro

    QT       += core gui
    
    greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
    
    CONFIG += c++11
    
    # You can make your code fail to compile if it uses deprecated APIs.
    # In order to do so, uncomment the following line.
    #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0
    
    SOURCES += \
        main.cpp \
        mainwindow.cpp
    
    HEADERS += \
        mainwindow.h
    
    FORMS += \
        mainwindow.ui
    
    INCLUDEPATH += C:/src/vcpkg/vcpkg/packages/opencv4_x64-windows/include
    
    LIBS += C:/src/vcpkg/vcpkg/packages/opencv4_x64-windows/lib/opencv_calib3d.lib
    LIBS += C:/src/vcpkg/vcpkg/packages/opencv4_x64-windows/lib/opencv_core.lib
    LIBS += C:/src/vcpkg/vcpkg/packages/opencv4_x64-windows/lib/opencv_dnn.lib
    LIBS += C:/src/vcpkg/vcpkg/packages/opencv4_x64-windows/lib/opencv_features2d.lib
    LIBS += C:/src/vcpkg/vcpkg/packages/opencv4_x64-windows/lib/opencv_flann.lib
    LIBS += C:/src/vcpkg/vcpkg/packages/opencv4_x64-windows/lib/opencv_highgui.lib
    LIBS += C:/src/vcpkg/vcpkg/packages/opencv4_x64-windows/lib/opencv_imgcodecs.lib
    LIBS += C:/src/vcpkg/vcpkg/packages/opencv4_x64-windows/lib/opencv_imgproc.lib
    LIBS += C:/src/vcpkg/vcpkg/packages/opencv4_x64-windows/lib/opencv_ml.lib
    LIBS += C:/src/vcpkg/vcpkg/packages/opencv4_x64-windows/lib/opencv_objdetect.lib
    LIBS += C:/src/vcpkg/vcpkg/packages/opencv4_x64-windows/lib/opencv_photo.lib
    LIBS += C:/src/vcpkg/vcpkg/packages/opencv4_x64-windows/lib/opencv_stitching.lib
    LIBS += C:/src/vcpkg/vcpkg/packages/opencv4_x64-windows/lib/opencv_video.lib
    LIBS += C:/src/vcpkg/vcpkg/packages/opencv4_x64-windows/lib/opencv_videoio.lib
    
    
    TRANSLATIONS += \
        test_fr_FR.ts
    CONFIG += lrelease
    CONFIG += embed_translations
    
    # Default rules for deployment.
    qnx: target.path = /tmp/$${TARGET}/bin
    else: unix:!android: target.path = /opt/$${TARGET}/bin
    !isEmpty(target.path): INSTALLS += target
    
    

    the code reproduce the problem for me:

    mainwindow.obj:-1: erreur : LNK2019: symbole externe non r‚solu "double __cdecl cv::threshold(class cv::debug_build_guard::_InputArray const &,class cv::debug_build_guard::_OutputArray const &,double,double,int)" (?threshold@cv@@YANAEBV_InputArray@debug_build_guard@1@AEBV_OutputArray@31@NNH@Z) r‚f‚renc‚ dans la fonction "public: __cdecl MainWindow::MainWindow(class QWidget *)" (??0MainWindow@@QEAA@PEAVQWidget@@@Z)


  • Lifetime Qt Champion

    Does the build output show that the libraries are currently linked ?

    By the way, you should move all your includes to the .cpp file. There's nothing in the header that uses OpenCV.



  • here the compile output:

    21:18:53: Running steps for project test...
    21:18:53: Configuration unchanged, skipping qmake step.
    21:18:53: Starting: "D:\Qt\Tools\QtCreator\bin\jom.exe"
    D:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile.Debug
    link /NOLOGO /DYNAMICBASE /NXCOMPAT /DEBUG /SUBSYSTEM:WINDOWS "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='' processorArchitecture=''" /MANIFEST:embed /OUT:debug\test.exe @C:\Users\antoi\AppData\Local\Temp\test.exe.16732.0.jom
    mainwindow.obj : error LNK2019: unresolved external symbol "double __cdecl cv::threshold(class cv::debug_build_guard::_InputArray const &,class cv::debug_build_guard::_OutputArray const &,double,double,int)" (?threshold@cv@@YANAEBV_InputArray@debug_build_guard@1@AEBV_OutputArray@31@NNH@Z) referenced in function "public: __cdecl MainWindow::MainWindow(class QWidget *)" (??0MainWindow@@QEAA@PEAVQWidget@@@Z)
    debug\test.exe : fatal error LNK1120: 1 unresolved externals
    jom: C:\Users\antoi\OneDrive\Documents\QTtest\build-test-Desktop_Qt_5_15_2_MSVC2019_64bit-Debug\Makefile.Debug [debug\test.exe] Error 1120
    jom: C:\Users\antoi\OneDrive\Documents\QTtest\build-test-Desktop_Qt_5_15_2_MSVC2019_64bit-Debug\Makefile [debug] Error 2
    21:18:53: The process "D:\Qt\Tools\QtCreator\bin\jom.exe" exited with code 2.
    Error while building/deploying project test (kit: Desktop Qt 5.15.2 MSVC2019 64bit)
    When executing step "Make"
    21:18:53: Elapsed time: 00:00.


  • Lifetime Qt Champion

    Ok... does the Makefile contain any references to OpenCV ?



  • no indeed... they are no reference to opencv:

    #############################################################################

    Makefile for building: test

    Generated by qmake (3.1) (Qt 5.15.2)

    Project: ..\test\test.pro

    Template: app

    Command: D:\Qt\5.15.2\msvc2019_64\bin\qmake.exe -o Makefile ..\test\test.pro -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug"

    #############################################################################

    MAKEFILE = Makefile

    EQ = =

    first: debug
    install: debug-install
    uninstall: debug-uninstall
    QMAKE = D:\Qt\5.15.2\msvc2019_64\bin\qmake.exe
    DEL_FILE = del
    CHK_DIR_EXISTS= if not exist
    MKDIR = mkdir
    COPY = copy /y
    COPY_FILE = copy /y
    COPY_DIR = xcopy /s /q /y /i
    INSTALL_FILE = copy /y
    INSTALL_PROGRAM = copy /y
    INSTALL_DIR = xcopy /s /q /y /i
    QINSTALL = D:\Qt\5.15.2\msvc2019_64\bin\qmake.exe -install qinstall
    QINSTALL_PROGRAM = D:\Qt\5.15.2\msvc2019_64\bin\qmake.exe -install qinstall -exe
    DEL_FILE = del
    SYMLINK = $(QMAKE) -install ln -f -s
    DEL_DIR = rmdir
    MOVE = move
    IDC = idc
    IDL = midl
    ZIP = zip -r -9
    DEF_FILE =
    RES_FILE =
    SED = $(QMAKE) -install sed
    MOVE = move
    SUBTARGETS =
    debug
    release

    debug: $(MAKEFILE) FORCE
    @set MAKEFLAGS=$(MAKEFLAGS)
    $(MAKE) -f $(MAKEFILE).Debug
    debug-make_first: FORCE
    @set MAKEFLAGS=$(MAKEFLAGS)
    $(MAKE) -f $(MAKEFILE).Debug
    debug-all: FORCE
    @set MAKEFLAGS=$(MAKEFLAGS)
    $(MAKE) -f $(MAKEFILE).Debug all
    debug-clean: FORCE
    @set MAKEFLAGS=$(MAKEFLAGS)
    $(MAKE) -f $(MAKEFILE).Debug clean
    debug-distclean: FORCE
    @set MAKEFLAGS=$(MAKEFLAGS)
    $(MAKE) -f $(MAKEFILE).Debug distclean
    debug-install: FORCE
    @set MAKEFLAGS=$(MAKEFLAGS)
    $(MAKE) -f $(MAKEFILE).Debug install
    debug-uninstall: FORCE
    @set MAKEFLAGS=$(MAKEFLAGS)
    $(MAKE) -f $(MAKEFILE).Debug uninstall
    release: $(MAKEFILE) FORCE
    @set MAKEFLAGS=$(MAKEFLAGS)
    $(MAKE) -f $(MAKEFILE).Release
    release-make_first: FORCE
    @set MAKEFLAGS=$(MAKEFLAGS)
    $(MAKE) -f $(MAKEFILE).Release
    release-all: FORCE
    @set MAKEFLAGS=$(MAKEFLAGS)
    $(MAKE) -f $(MAKEFILE).Release all
    release-clean: FORCE
    @set MAKEFLAGS=$(MAKEFLAGS)
    $(MAKE) -f $(MAKEFILE).Release clean
    release-distclean: FORCE
    @set MAKEFLAGS=$(MAKEFLAGS)
    $(MAKE) -f $(MAKEFILE).Release distclean
    release-install: FORCE
    @set MAKEFLAGS=$(MAKEFLAGS)
    $(MAKE) -f $(MAKEFILE).Release install
    release-uninstall: FORCE
    @set MAKEFLAGS=$(MAKEFLAGS)
    $(MAKE) -f $(MAKEFILE).Release uninstall

    Makefile: ..\test\test.pro D:\Qt\5.15.2\msvc2019_64\mkspecs\win32-msvc\qmake.conf D:\Qt\5.15.2\msvc2019_64\mkspecs\features\spec_pre.prf
    ...
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_3dcore_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_3dextras.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_3dextras_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_3dinput.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_3dinput_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_3dlogic.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_3dlogic_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_3dquick.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_3dquick_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_3dquickanimation.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_3dquickanimation_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_3dquickextras.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_3dquickextras_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_3dquickinput.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_3dquickinput_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_3dquickrender.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_3dquickrender_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_3dquickscene2d.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_3dquickscene2d_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_3drender.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_3drender_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_accessibility_support_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_axbase.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_axbase_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_axcontainer.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_axcontainer_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_axserver.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_axserver_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_bluetooth.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_bluetooth_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_bodymovin_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_bootstrap_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_charts.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_charts_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_concurrent.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_concurrent_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_core.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_core_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_datavisualization.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_datavisualization_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_dbus.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_dbus_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_designer.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_designer_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_designercomponents_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_devicediscovery_support_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_edid_support_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_egl_support_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_eventdispatcher_support_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_fb_support_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_fontdatabase_support_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_gamepad.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_gamepad_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_gui.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_gui_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_help.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_help_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_location.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_location_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_multimedia.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_multimedia_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_multimediawidgets.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_multimediawidgets_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_network.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_network_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_networkauth.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_networkauth_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_nfc.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_nfc_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_opengl.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_opengl_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_openglextensions.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_openglextensions_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_packetprotocol_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_platformcompositor_support_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_positioning.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_positioning_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_positioningquick.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_positioningquick_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_printsupport.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_printsupport_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_purchasing.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_purchasing_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_qml.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_qml_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_qmldebug_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_qmldevtools_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_qmlmodels.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_qmlmodels_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_qmltest.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_qmltest_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_qmlworkerscript.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_qmlworkerscript_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_qtmultimediaquicktools_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_quick.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_quick3d.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_quick3d_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_quick3dassetimport.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_quick3dassetimport_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_quick3drender.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_quick3drender_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_quick3druntimerender.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_quick3druntimerender_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_quick3dutils.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_quick3dutils_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_quick_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_quickcontrols2.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_quickcontrols2_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_quickparticles_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_quickshapes_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_quicktemplates2.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_quicktemplates2_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_quickwidgets.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_quickwidgets_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_remoteobjects.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_remoteobjects_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_repparser.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_repparser_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_script.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_script_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_scripttools.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_scripttools_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_scxml.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_scxml_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_sensors.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_sensors_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_serialbus.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_serialbus_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_serialport.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_serialport_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_sql.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_sql_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_svg.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_svg_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_testlib.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_testlib_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_texttospeech.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_texttospeech_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_theme_support_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_uiplugin.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_uitools.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_uitools_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_virtualkeyboard.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_virtualkeyboard_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_vulkan_support_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_webchannel.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_webchannel_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_webengine.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_webengine_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_webenginecore.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_webenginecore_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_webenginecoreheaders_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_webenginewidgets.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_webenginewidgets_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_websockets.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_websockets_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_webview.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_webview_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_widgets.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_widgets_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_windowsuiautomation_support_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_winextras.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_winextras_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_xml.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_xml_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_xmlpatterns.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_xmlpatterns_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_zlib_private.pri
    D:\Qt\5.15.2\msvc2019_64\mkspecs\features\qt_functions.prf
    D:\Qt\5.15.2\msvc2019_64\mkspecs\features\qt_config.prf
    D:\Qt\5.15.2\msvc2019_64\mkspecs\win32-msvc\qmake.conf
    D:\Qt\5.15.2\msvc2019_64\mkspecs\features\spec_post.prf
    D:\Qt\5.15.2\msvc2019_64\mkspecs\features\exclusive_builds.prf
    D:\Qt\5.15.2\msvc2019_64\mkspecs\common\msvc-version.conf
    D:\Qt\5.15.2\msvc2019_64\mkspecs\features\toolchain.prf
    D:\Qt\5.15.2\msvc2019_64\mkspecs\features\default_pre.prf
    D:\Qt\5.15.2\msvc2019_64\mkspecs\features\win32\default_pre.prf
    D:\Qt\5.15.2\msvc2019_64\mkspecs\features\resolve_config.prf
    D:\Qt\5.15.2\msvc2019_64\mkspecs\features\exclusive_builds_post.prf
    D:\Qt\5.15.2\msvc2019_64\mkspecs\features\default_post.prf
    D:\Qt\5.15.2\msvc2019_64\mkspecs\features\lrelease.prf
    D:\Qt\5.15.2\msvc2019_64\mkspecs\features\qml_debug.prf
    D:\Qt\5.15.2\msvc2019_64\mkspecs\features\precompile_header.prf
    D:\Qt\5.15.2\msvc2019_64\mkspecs\features\warn_on.prf
    D:\Qt\5.15.2\msvc2019_64\mkspecs\features\qt.prf
    D:\Qt\5.15.2\msvc2019_64\mkspecs\features\resources_functions.prf
    D:\Qt\5.15.2\msvc2019_64\mkspecs\features\resources.prf
    D:\Qt\5.15.2\msvc2019_64\mkspecs\features\moc.prf
    D:\Qt\5.15.2\msvc2019_64\mkspecs\features\win32\opengl.prf
    D:\Qt\5.15.2\msvc2019_64\mkspecs\features\uic.prf
    D:\Qt\5.15.2\msvc2019_64\mkspecs\features\qmake_use.prf
    D:\Qt\5.15.2\msvc2019_64\mkspecs\features\file_copies.prf
    D:\Qt\5.15.2\msvc2019_64\mkspecs\features\win32\windows.prf
    D:\Qt\5.15.2\msvc2019_64\mkspecs\features\testcase_targets.prf
    D:\Qt\5.15.2\msvc2019_64\mkspecs\features\exceptions.prf
    D:\Qt\5.15.2\msvc2019_64\mkspecs\features\yacc.prf
    D:\Qt\5.15.2\msvc2019_64\mkspecs\features\lex.prf
    ..\test\test.pro
    D:\Qt\5.15.2\msvc2019_64\lib\Qt5Widgets.prl
    D:\Qt\5.15.2\msvc2019_64\lib\Qt5Gui.prl
    D:\Qt\5.15.2\msvc2019_64\lib\Qt5Core.prl
    D:\Qt\5.15.2\msvc2019_64\lib\qtmain.prl
    .qmake.stash
    D:\Qt\5.15.2\msvc2019_64\mkspecs\features\build_pass.prf
    debug\qmake_qmake_qm_files.qrc
    D:\Qt\5.15.2\msvc2019_64\lib\Qt5Widgetsd.prl
    D:\Qt\5.15.2\msvc2019_64\lib\Qt5Guid.prl
    D:\Qt\5.15.2\msvc2019_64\lib\Qt5Cored.prl
    D:\Qt\5.15.2\msvc2019_64\lib\qtmaind.prl
    release\qmake_qmake_qm_files.qrc
    $(QMAKE) -o Makefile ..\test\test.pro -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug"
    D:\Qt\5.15.2\msvc2019_64\mkspecs\features\spec_pre.prf:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\common\angle.conf:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\common\windows-desktop.conf:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\features\win32\windows_vulkan_sdk.prf:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\common\windows-vulkan.conf:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\common\msvc-desktop.conf:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\qconfig.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_3danimation.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_3danimation_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_3dcore.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_3dcore_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_3dextras.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_3dextras_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_3dinput.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_3dinput_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_3dlogic.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_3dlogic_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_3dquick.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_3dquick_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_3dquickanimation.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_3dquickanimation_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_3dquickextras.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_3dquickextras_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_3dquickinput.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_3dquickinput_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_3dquickrender.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_3dquickrender_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_3dquickscene2d.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_3dquickscene2d_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_3drender.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_3drender_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_accessibility_support_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_axbase.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_axbase_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_axcontainer.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_axcontainer_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_axserver.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_axserver_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_bluetooth.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_bluetooth_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_bodymovin_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_bootstrap_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_charts.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_charts_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_concurrent.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_concurrent_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_core.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_core_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_datavisualization.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_datavisualization_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_dbus.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_dbus_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_designer.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_designer_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_designercomponents_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_devicediscovery_support_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_edid_support_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_egl_support_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_eventdispatcher_support_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_fb_support_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_fontdatabase_support_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_gamepad.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_gamepad_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_gui.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_gui_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_help.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_help_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_location.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_location_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_multimedia.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_multimedia_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_multimediawidgets.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_multimediawidgets_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_network.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_network_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_networkauth.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_networkauth_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_nfc.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_nfc_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_opengl.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_opengl_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_openglextensions.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_openglextensions_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_packetprotocol_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_platformcompositor_support_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_positioning.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_positioning_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_positioningquick.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_positioningquick_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_printsupport.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_printsupport_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_purchasing.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_purchasing_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_qml.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_qml_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_qmldebug_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_qmldevtools_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_qmlmodels.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_qmlmodels_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_qmltest.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_qmltest_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_qmlworkerscript.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_qmlworkerscript_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_qtmultimediaquicktools_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_quick.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_quick3d.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_quick3d_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_quick3dassetimport.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_quick3dassetimport_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_quick3drender.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_quick3drender_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_quick3druntimerender.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_quick3druntimerender_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_quick3dutils.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_quick3dutils_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_quick_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_quickcontrols2.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_quickcontrols2_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_quickparticles_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_quickshapes_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_quicktemplates2.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_quicktemplates2_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_quickwidgets.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_quickwidgets_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_remoteobjects.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_remoteobjects_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_repparser.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_repparser_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_script.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_script_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_scripttools.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_scripttools_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_scxml.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_scxml_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_sensors.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_sensors_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_serialbus.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_serialbus_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_serialport.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_serialport_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_sql.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_sql_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_svg.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_svg_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_testlib.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_testlib_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_texttospeech.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_texttospeech_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_theme_support_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_uiplugin.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_uitools.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_uitools_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_virtualkeyboard.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_virtualkeyboard_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_vulkan_support_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_webchannel.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_webchannel_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_webengine.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_webengine_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_webenginecore.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_webenginecore_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_webenginecoreheaders_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_webenginewidgets.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_webenginewidgets_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_websockets.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_websockets_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_webview.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_webview_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_widgets.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_widgets_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_windowsuiautomation_support_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_winextras.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_winextras_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_xml.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_xml_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_xmlpatterns.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_xmlpatterns_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\modules\qt_lib_zlib_private.pri:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\features\qt_functions.prf:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\features\qt_config.prf:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\win32-msvc\qmake.conf:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\features\spec_post.prf:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\features\exclusive_builds.prf:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\common\msvc-version.conf:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\features\toolchain.prf:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\features\default_pre.prf:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\features\win32\default_pre.prf:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\features\resolve_config.prf:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\features\exclusive_builds_post.prf:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\features\default_post.prf:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\features\lrelease.prf:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\features\qml_debug.prf:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\features\precompile_header.prf:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\features\warn_on.prf:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\features\qt.prf:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\features\resources_functions.prf:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\features\resources.prf:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\features\moc.prf:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\features\win32\opengl.prf:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\features\uic.prf:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\features\qmake_use.prf:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\features\file_copies.prf:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\features\win32\windows.prf:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\features\testcase_targets.prf:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\features\exceptions.prf:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\features\yacc.prf:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\features\lex.prf:
    ..\test\test.pro:
    D:\Qt\5.15.2\msvc2019_64\lib\Qt5Widgets.prl:
    D:\Qt\5.15.2\msvc2019_64\lib\Qt5Gui.prl:
    D:\Qt\5.15.2\msvc2019_64\lib\Qt5Core.prl:
    D:\Qt\5.15.2\msvc2019_64\lib\qtmain.prl:
    .qmake.stash:
    D:\Qt\5.15.2\msvc2019_64\mkspecs\features\build_pass.prf:
    debug\qmake_qmake_qm_files.qrc:
    D:\Qt\5.15.2\msvc2019_64\lib\Qt5Widgetsd.prl:
    D:\Qt\5.15.2\msvc2019_64\lib\Qt5Guid.prl:
    D:\Qt\5.15.2\msvc2019_64\lib\Qt5Cored.prl:
    D:\Qt\5.15.2\msvc2019_64\lib\qtmaind.prl:
    release\qmake_qmake_qm_files.qrc:
    qmake: FORCE
    @$(QMAKE) -o Makefile ..\test\test.pro -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug"

    qmake_all: FORCE

    make_first: debug-make_first release-make_first FORCE
    all: debug-all release-all FORCE
    clean: debug-clean release-clean FORCE
    -$(DEL_FILE) test.vc.pdb
    -$(DEL_FILE) test.ilk
    -$(DEL_FILE) test.idb
    distclean: debug-distclean release-distclean FORCE
    -$(DEL_FILE) Makefile
    -$(DEL_FILE) .qmake.stash test.pdb

    debug-mocclean:
    @set MAKEFLAGS=$(MAKEFLAGS)
    $(MAKE) -f $(MAKEFILE).Debug mocclean
    release-mocclean:
    @set MAKEFLAGS=$(MAKEFLAGS)
    $(MAKE) -f $(MAKEFILE).Release mocclean
    mocclean: debug-mocclean release-mocclean

    debug-mocables:
    @set MAKEFLAGS=$(MAKEFLAGS)
    $(MAKE) -f $(MAKEFILE).Debug mocables
    release-mocables:
    @set MAKEFLAGS=$(MAKEFLAGS)
    $(MAKE) -f $(MAKEFILE).Release mocables
    mocables: debug-mocables release-mocables

    check: first

    benchmark: first
    FORCE:

    $(MAKEFILE).Debug: Makefile
    $(MAKEFILE).Release: Makefile


  • Lifetime Qt Champion

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



  • 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
    
    

  • Lifetime Qt Champion

    So if you build in debug mode it works ?



  • 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


  • Lifetime Qt Champion

    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.



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



  • 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


  • Lifetime Qt Champion

    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.



  • 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!


  • Lifetime Qt Champion

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


Log in to reply