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. Problems with side by side dependencies with Qt 5.2.0 64bit on Windows 7
Forum Updated to NodeBB v4.3 + New Features

Problems with side by side dependencies with Qt 5.2.0 64bit on Windows 7

Scheduled Pinned Locked Moved General and Desktop
28 Posts 3 Posters 8.7k 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.
  • K Offline
    K Offline
    kenchan
    wrote on last edited by
    #15

    Hello again, As you can see below the x86 dependency thing is written in the manifest for the app.

    Is this normal? if not where is it coming from? the qmake.conf file for this platform only has an asterisk for the platform architecture. Where does the second entry in the manifest come from and why?

    @
    <?xml version='1.0' encoding='UTF-8' standalone='yes'?>
    <assembly manifestVersion='1.0'>
    <trustInfo >
    <security>
    <requestedPrivileges>
    <requestedExecutionLevel level='asInvoker' uiAccess='false' />
    </requestedPrivileges>
    </security>
    </trustInfo>
    <dependency>
    <dependentAssembly>
    <assemblyIdentity type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='' processorArchitecture='' />
    </dependentAssembly>
    </dependency>
    <dependency>
    <dependentAssembly>
    <assemblyIdentity type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*' />
    </dependentAssembly>
    </dependency>
    </assembly>
    @

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #16

      You should double check all Kits/Qt versions in Qt Creator, you seem to have a mix between an old (probably x86) and newer Qt

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • K Offline
        K Offline
        kenchan
        wrote on last edited by
        #17

        Well, I found that if I change the manifest assembly information in the exe to be amd64 the app will run.

        So the issue is why does the x86 thing get into the manifest file? Can someone explain how that is done in Qt. Is it coming from the config file for this platform?

        1 Reply Last reply
        0
        • JKSHJ Offline
          JKSHJ Offline
          JKSH
          Moderators
          wrote on last edited by
          #18

          The manifest is generated by Visual Studio, not Qt. You may need to check your Visual Studio settings.

          Try asking at http://social.msdn.microsoft.com/Forums/ for clues.

          Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

          1 Reply Last reply
          0
          • K Offline
            K Offline
            kenchan
            wrote on last edited by
            #19

            I don't use VS directly I build through Qt Creator so I guess it is telling VS to do through the make files?

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #20

              Can you show your pro file ?
              And your Kit settings ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • K Offline
                K Offline
                kenchan
                wrote on last edited by
                #21

                My Pro file looks like this. I can't show you the actual file names so I have removed them.
                How can I best show you the kit settings that you want to see?
                @
                QT += core gui widgets svg xml opengl printsupport

                TARGET = MyApp
                TEMPLATE = app

                RESOURCES += MyApp.qrc

                the application icon for Windows

                win32 {
                RC_FILE += MyApp.rc
                }

                the application icon for the Mac

                macx {
                ICON = MyApp.icns
                }

                SOURCES +=
                my sources here
                ...
                ...

                HEADERS +=
                my headers here
                ...
                ...

                OTHER_FILES +=
                MyApp.pro.user

                FORMS +=
                my forms here
                ...

                @

                1 Reply Last reply
                0
                • K Offline
                  K Offline
                  kenchan
                  wrote on last edited by
                  #22

                  OK guys, I have an update on this issue. Basically I have stopped the linker making a manifest for now. This enables me to run the application and get on with developing it. I will sort out the manifest issue later when I want to actually deploy it.

                  What I don't yet understand is why the x86 dependency appears in the manifest. I am assuming there is something in one of the headers that triggers it but I might be wrong. I will keep looking into this.

                  For the moment I am not seeing any x36 dependencies when I look at the executable with the dependency walker. However, I do get the dependency appearing in the manifest if I turn it on.

                  If anyone has any idea what is going on here please let me know.

                  Thanks to all for your interest in my issue, I much appreciate it.

                  1 Reply Last reply
                  0
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #23

                    One thing is puzzling me, why do you MyApp.pro.user in OTHER_FILES ?

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    1 Reply Last reply
                    0
                    • K Offline
                      K Offline
                      kenchan
                      wrote on last edited by
                      #24

                      Good point. I did not put it in there myself I think it was put in there by Qt Creator at some point in time so I assumed it is a required thing.

                      Should I remove it?

                      1 Reply Last reply
                      0
                      • SGaistS Offline
                        SGaistS Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on last edited by
                        #25

                        This file is generated by Qt Creator with the settings you are using for the project and can change from one version to another so unless you start fiddling with it manually you should remove that line from your pro file.

                        If you are using a version control system like git, don't commit it there as other user will end up using your settings rather than generating their own.

                        Interested in AI ? www.idiap.ch
                        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                        1 Reply Last reply
                        0
                        • K Offline
                          K Offline
                          kenchan
                          wrote on last edited by
                          #26

                          OK, thank you for the advice I will remove it.

                          Do you have any idea why I might be getting the x86 dependency in the manifest? Here is the manifest that is created. I know the first dependency is added by the Qt config for this platform but I don't understand why the x86 one is also included.

                          @
                          <?xml version='1.0' encoding='UTF-8' standalone='yes'?>
                          <assembly manifestVersion='1.0'>
                          <trustInfo >
                          <security>
                          <requestedPrivileges>
                          <requestedExecutionLevel level='asInvoker' uiAccess='false' />
                          </requestedPrivileges>
                          </security>
                          </trustInfo>
                          <dependency>
                          <dependentAssembly>
                          <assemblyIdentity type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='' processorArchitecture='' />
                          </dependentAssembly>
                          </dependency>
                          <dependency>
                          <dependentAssembly>
                          <assemblyIdentity type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*' />
                          </dependentAssembly>
                          </dependency>
                          </assembly>
                          @

                          1 Reply Last reply
                          0
                          • SGaistS Offline
                            SGaistS Offline
                            SGaist
                            Lifetime Qt Champion
                            wrote on last edited by
                            #27

                            On that one, I don't know, sorry

                            Interested in AI ? www.idiap.ch
                            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                            1 Reply Last reply
                            0
                            • K Offline
                              K Offline
                              kenchan
                              wrote on last edited by
                              #28

                              Thanks anyway. please post back if you here of anything that might relevant.

                              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