Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qimage, Entry point error, missing DLL's

Qimage, Entry point error, missing DLL's

Scheduled Pinned Locked Moved Solved Installation and Deployment
7 Posts 2 Posters 1.9k 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.
  • E Offline
    E Offline
    EsmannP
    wrote on last edited by
    #1

    Hi
    I’m writing a program in visual studio 2017 that uses the QImage library. I created my project with the qt add-in (qt version installed 5.10.0/msvc2017_64) as I was hoping to avoid any missing Qt libraries. My program compiles without error but when I try to run the program I get the following message: ??4QImage@@QEAAAEAV0@$$QEAV0@Z was not found in dll-library.
    I have tried reinstalling qt and the qt add-in as well as creating my project from scratch to be sure everything was installed correctly but I still get the same error message.
    So, why is the qimage.dll missing and how do I include it?
    Below I have also compiled the .pro file so you can see what I include:

    ----------------------------------------------------

    This file is generated by the Qt Visual Studio Tools.

    ------------------------------------------------------

    TEMPLATE = app
    TARGET = QtConsoleApplication3
    DESTDIR = ../windows/x64/Release
    QT += core widgets gui quickwidgets
    CONFIG += release console
    DEFINES += _UNICODE WIN64 QT_DLL QT_QUICKWIDGETS_LIB QT_WIDGETS_LIB
    INCLUDEPATH += ../../hidapi
    .
    ./GeneratedFiles/Release
    DEPENDPATH += .
    MOC_DIR += ./GeneratedFiles/release
    OBJECTS_DIR += release
    UI_DIR += ./GeneratedFiles
    RCC_DIR += ./GeneratedFiles
    include(QtConsoleApplication3.pri)

    raven-worxR 1 Reply Last reply
    0
    • E EsmannP

      Hi
      I’m writing a program in visual studio 2017 that uses the QImage library. I created my project with the qt add-in (qt version installed 5.10.0/msvc2017_64) as I was hoping to avoid any missing Qt libraries. My program compiles without error but when I try to run the program I get the following message: ??4QImage@@QEAAAEAV0@$$QEAV0@Z was not found in dll-library.
      I have tried reinstalling qt and the qt add-in as well as creating my project from scratch to be sure everything was installed correctly but I still get the same error message.
      So, why is the qimage.dll missing and how do I include it?
      Below I have also compiled the .pro file so you can see what I include:

      ----------------------------------------------------

      This file is generated by the Qt Visual Studio Tools.

      ------------------------------------------------------

      TEMPLATE = app
      TARGET = QtConsoleApplication3
      DESTDIR = ../windows/x64/Release
      QT += core widgets gui quickwidgets
      CONFIG += release console
      DEFINES += _UNICODE WIN64 QT_DLL QT_QUICKWIDGETS_LIB QT_WIDGETS_LIB
      INCLUDEPATH += ../../hidapi
      .
      ./GeneratedFiles/Release
      DEPENDPATH += .
      MOC_DIR += ./GeneratedFiles/release
      OBJECTS_DIR += release
      UI_DIR += ./GeneratedFiles
      RCC_DIR += ./GeneratedFiles
      include(QtConsoleApplication3.pri)

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by raven-worx
      #2

      @EsmannP
      the QImage class is contained in QtGui module/dll

      What are the contents of QtConsoleApplication3.pri?

      Also why do you added those defines?! QT_DLL QT_QUICKWIDGETS_LIB QT_WIDGETS_LIB

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      E 1 Reply Last reply
      2
      • raven-worxR raven-worx

        @EsmannP
        the QImage class is contained in QtGui module/dll

        What are the contents of QtConsoleApplication3.pri?

        Also why do you added those defines?! QT_DLL QT_QUICKWIDGETS_LIB QT_WIDGETS_LIB

        E Offline
        E Offline
        EsmannP
        wrote on last edited by
        #3

        @raven-worx
        The contents of .pri are:

        ----------------------------------------------------

        This file is generated by the Qt Visual Studio Tools.

        ------------------------------------------------------

        This is a reminder that you are using a generated .pro file.

        Remove it when you are finished editing this file.

        message("You are running qmake on a generated .pro file. This may not work!")

        HEADERS += ./API.h
        ./common.h
        ./compress.h
        ./Error.h
        ./pattern.h
        ./patternelement.h
        ./PtnImage.h
        ./splash.h
        ./upload.h
        ./usb.h
        SOURCES += ./main.cpp
        ./API.c
        ./compress.c
        ./Error.c
        ./pattern.c
        ./splash.c
        ./usb.c
        ./upload.cpp

        As to why I added those defines QT_DLL etc, they were automatically added when making the project with the qt-addin

        raven-worxR 1 Reply Last reply
        0
        • E EsmannP

          @raven-worx
          The contents of .pri are:

          ----------------------------------------------------

          This file is generated by the Qt Visual Studio Tools.

          ------------------------------------------------------

          This is a reminder that you are using a generated .pro file.

          Remove it when you are finished editing this file.

          message("You are running qmake on a generated .pro file. This may not work!")

          HEADERS += ./API.h
          ./common.h
          ./compress.h
          ./Error.h
          ./pattern.h
          ./patternelement.h
          ./PtnImage.h
          ./splash.h
          ./upload.h
          ./usb.h
          SOURCES += ./main.cpp
          ./API.c
          ./compress.c
          ./Error.c
          ./pattern.c
          ./splash.c
          ./usb.c
          ./upload.cpp

          As to why I added those defines QT_DLL etc, they were automatically added when making the project with the qt-addin

          raven-worxR Offline
          raven-worxR Offline
          raven-worx
          Moderators
          wrote on last edited by
          #4

          @EsmannP
          do you mean you get the error when you try to launch the application manually?
          Means that you probably have forgotten to deploy some Qt dlls.

          --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
          If you have a question please use the forum so others can benefit from the solution in the future

          E 1 Reply Last reply
          0
          • raven-worxR raven-worx

            @EsmannP
            do you mean you get the error when you try to launch the application manually?
            Means that you probably have forgotten to deploy some Qt dlls.

            E Offline
            E Offline
            EsmannP
            wrote on last edited by
            #5

            @raven-worx
            I get the error when I try to start the generated .exe

            How do deploy the missing qt dlls? Build qt statically?

            raven-worxR 1 Reply Last reply
            0
            • E EsmannP

              @raven-worx
              I get the error when I try to start the generated .exe

              How do deploy the missing qt dlls? Build qt statically?

              raven-worxR Offline
              raven-worxR Offline
              raven-worx
              Moderators
              wrote on last edited by raven-worx
              #6

              @EsmannP
              easiest would be to let the windeployqt tool do most of the stuff.

              --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
              If you have a question please use the forum so others can benefit from the solution in the future

              E 1 Reply Last reply
              2
              • raven-worxR raven-worx

                @EsmannP
                easiest would be to let the windeployqt tool do most of the stuff.

                E Offline
                E Offline
                EsmannP
                wrote on last edited by
                #7

                @raven-worx

                Using windeployqt fixed my issue, thank you very much! :)

                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