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. Qt5Core dll gets overwritten at compilation
Forum Updated to NodeBB v4.3 + New Features

Qt5Core dll gets overwritten at compilation

Scheduled Pinned Locked Moved Solved General and Desktop
7 Posts 4 Posters 909 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.
  • GeorgesSG Offline
    GeorgesSG Offline
    GeorgesS
    wrote on last edited by
    #1

    Hi,

    I have a c++ project using qt 5.12.10 and I recently upgraded it so it can work on 64-bits system.

    When I get my dll from APP\Qt\qt5.12.10... repository, it works fine but when I compile (release or debug), my qt5core.dll in my project gets overwritten ("modified on" compilation time). Then, when I launch my project, every icons in my mainwindow won't show.

    If I replace the qt5core.dll with the one from the APP\Qt\qt5.12.10... repository, my icons are displayed properly.

    Does the compilation look for the dll where it shouldnt ? Or is there something in .pro file that overwrites it ?

    It only does this for qt5core.

    I am using core, network and gui modules.

    Compile with QMake, MinGW-64 bits and using windeployqt.

    It's a project that I inherited from so I'm not so familiar with it.

    Cheers

    Christian EhrlicherC 1 Reply Last reply
    0
    • GeorgesSG GeorgesS

      Hi,

      I have a c++ project using qt 5.12.10 and I recently upgraded it so it can work on 64-bits system.

      When I get my dll from APP\Qt\qt5.12.10... repository, it works fine but when I compile (release or debug), my qt5core.dll in my project gets overwritten ("modified on" compilation time). Then, when I launch my project, every icons in my mainwindow won't show.

      If I replace the qt5core.dll with the one from the APP\Qt\qt5.12.10... repository, my icons are displayed properly.

      Does the compilation look for the dll where it shouldnt ? Or is there something in .pro file that overwrites it ?

      It only does this for qt5core.

      I am using core, network and gui modules.

      Compile with QMake, MinGW-64 bits and using windeployqt.

      It's a project that I inherited from so I'm not so familiar with it.

      Cheers

      Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @GeorgesS said in Qt5Core dll gets overwritten at compilation:

      When I get my dll from APP\Qt\qt5.12.10... repository

      What does this mean? How do you compile Qt? How do you compile your application?

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      GeorgesSG 1 Reply Last reply
      0
      • Christian EhrlicherC Christian Ehrlicher

        @GeorgesS said in Qt5Core dll gets overwritten at compilation:

        When I get my dll from APP\Qt\qt5.12.10... repository

        What does this mean? How do you compile Qt? How do you compile your application?

        GeorgesSG Offline
        GeorgesSG Offline
        GeorgesS
        wrote on last edited by
        #3

        @Christian-Ehrlicher

        Thx for your answer :)

        @Christian-Ehrlicher said in Qt5Core dll gets overwritten at compilation:

        How do you compile Qt?

        I am not sure what you mean by that. When I realized qt5core dll was noy used properly, I simply replaced it from the qt folder to the my app folder... do I have to compile QT in some way ?

        @Christian-Ehrlicher said in Qt5Core dll gets overwritten at compilation:

        How do you compile your application?

        In my .pro file, I use a windeployqt command, which I thought is supposed to get the qt dependancies I need for my app.
        cdb50186-1ec1-4ddc-bcca-42a52bc2a65b-image.png

        Is there anything else you need to know ?

        Georges

        Christian EhrlicherC 1 Reply Last reply
        0
        • GeorgesSG GeorgesS

          @Christian-Ehrlicher

          Thx for your answer :)

          @Christian-Ehrlicher said in Qt5Core dll gets overwritten at compilation:

          How do you compile Qt?

          I am not sure what you mean by that. When I realized qt5core dll was noy used properly, I simply replaced it from the qt folder to the my app folder... do I have to compile QT in some way ?

          @Christian-Ehrlicher said in Qt5Core dll gets overwritten at compilation:

          How do you compile your application?

          In my .pro file, I use a windeployqt command, which I thought is supposed to get the qt dependancies I need for my app.
          cdb50186-1ec1-4ddc-bcca-42a52bc2a65b-image.png

          Is there anything else you need to know ?

          Georges

          Christian EhrlicherC Offline
          Christian EhrlicherC Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @GeorgesS said in Qt5Core dll gets overwritten at compilation:

          In my .pro file, I use a windeployqt command, which I thought is supposed to get the qt dependancies I need for my app.

          So why do you wonder that QtCore is overwritten then?

          I don't see why someone would need to copy dlls around when building and running an application during development.

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          1 Reply Last reply
          0
          • HansonH Offline
            HansonH Offline
            Hanson
            wrote on last edited by
            #5

            Hi, there is a possibility that windeployqt has copied the wrong file.Maybe you can use windeployqt in cmd to check is it as expected to work properly.

            “Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.”
            —— Martin Golding

            GeorgesSG 1 Reply Last reply
            0
            • HansonH Hanson

              Hi, there is a possibility that windeployqt has copied the wrong file.Maybe you can use windeployqt in cmd to check is it as expected to work properly.

              GeorgesSG Offline
              GeorgesSG Offline
              GeorgesS
              wrote on last edited by
              #6

              @Hanson

              Thx for your reply that proved much more helpful than others.

              Before I tried things on command line, I removed the lines I showed above:

              • DEPLOY_COMMAND = windeployqt
              • DEPLOY_TARGET = $$DESTDIR

              and added windeployqt to the CONFIG keyword.

              I don't really know why but it appears to be working, Qt5Core.dll is not overwritten anymore when I compile and that's good enough for me :)

              I'll close the issue now.

              Cheers,

              Georges

              1 Reply Last reply
              0
              • GeorgesSG GeorgesS has marked this topic as solved on
              • G Offline
                G Offline
                glenmk
                wrote on last edited by
                #7

                @GeorgesS said in Qt5Core dll gets overwritten at compilation:

                Hi,
                I have a c++ project using qt 5.12.10 and I recently upgraded it so it can work on 64-bits system.
                When I get my dll from APP\Qt\qt5.12.10... repository, it works fine but when I compile (release or debug), my qt5core.dll in my project gets overwritten ("modified on" compilation time). Then, when I launch my project, every icons in my mainwindow won't show.
                If I replace the qt5core.dll with the one from the APP\Qt\qt5.12.10... repository, my icons are displayed properly.
                Does the compilation look for the dll where it shouldnt ? Or is there something in .pro file that overwrites it ?
                It only does this for qt5core.
                I am using core, network and gui modules.
                Compile with QMake, MinGW-64 bits and using windeployqt.
                It's a project that I inherited from so I'm not so familiar with it.

                Double-check the environment and build settings in your project to ensure that the correct paths to the Qt DLLs are set. Make sure that the directory containing the DLLs from the APP\Qt\qt5.12.10 repository is listed before any other directories in the system PATH variable.

                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