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. unable to find an entry point error occurs for an OpenCV project
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 514 Views
  • 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.
  • A Offline
    A Offline
    Aaron Kim
    wrote on last edited by
    #1

    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?

    jsulmJ 1 Reply Last reply
    0
    • A Aaron Kim

      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?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

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

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      A 1 Reply Last reply
      1
      • jsulmJ jsulm

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

        A Offline
        A Offline
        Aaron Kim
        wrote on last edited by
        #3

        @jsulm Thanks for reply!

        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