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

unable to find an entry point error occurs for an OpenCV project



  • My .pro file is below.

    #-------------------------------------------------
    #
    # Project created by QtCreator 2018-08-19T21:45:39
    #
    #-------------------------------------------------
    
    QT       += core gui
    
    greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
    
    TARGET = opencv
    TEMPLATE = app
    
    # The following define makes your compiler emit warnings if you use
    # any feature of Qt which has been marked as deprecated (the exact warnings
    # depend on your compiler). Please consult the documentation of the
    # deprecated API in order to know how to port your code away from it.
    DEFINES += QT_DEPRECATED_WARNINGS
    
    # You can also make your code fail to compile if you use deprecated APIs.
    # In order to do so, uncomment the following line.
    # You can also select to disable deprecated APIs only up to a certain version of Qt.
    #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 += D:\opencv\build\include
    
    LIBS += D:\opencv-build\bin\libopencv_core320.dll
    LIBS += D:\opencv-build\bin\libopencv_highgui320.dll
    LIBS += D:\opencv-build\bin\libopencv_imgcodecs320.dll
    LIBS += D:\opencv-build\bin\libopencv_imgproc320.dll
    LIBS += D:\opencv-build\bin\libopencv_features2d320.dll
    LIBS += D:\opencv-build\bin\libopencv_calib3d320.dll
    

    I follows this tutorial
    And I checked that all the dlls are in the proper path (D:\opencv-build\bin)

    When I execute the result executable file, it says

    unable to find an entry point named ~~~ in DLL "D:\opencv-build\bin\libopencv_highgui320.dll"

    Any help?


  • Lifetime Qt Champion

    @Aaron-Kim said in unable to find an entry point error occurs for an OpenCV project:

    LIBS += D:\opencv-build\bin\libopencv_core320.dll
    LIBS += D:\opencv-build\bin\libopencv_highgui320.dll
    LIBS += D:\opencv-build\bin\libopencv_imgcodecs320.dll
    LIBS += D:\opencv-build\bin\libopencv_imgproc320.dll
    LIBS += D:\opencv-build\bin\libopencv_features2d320.dll
    LIBS += D:\opencv-build\bin\libopencv_calib3d320.dll

    This doesn't look correct.
    On Windows you should link against *.lib files (I'm not really a Windows developer though). *.dll files are used at runtime.



  • @jsulm Thanks for reply!


Log in to reply