Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Qt Creator links 32 bit dlls to a 64 bit application

Qt Creator links 32 bit dlls to a 64 bit application

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
3 Posts 3 Posters 1.7k 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.
  • J Offline
    J Offline
    JanLaloux
    wrote on last edited by
    #1

    In Qt Creator 3.5.0 I can build a 64 bit application and run it successfully from Qt Creator (using the green run button).

    However when I start the executable in the build-myproject-Desktop_Qt_5_5_0_MSVC2013_64bit-Release\release direcory directly I get an error that the application can not be started. Using the Dependency Walker tool I see that the 32 bit versions of the Qt5 dlls are linked.

    In the direcory build-myproject-Desktop_Qt_5_5_0_MSVC2013_64bit-Release I see in Makefile.Release LIBS = /LIBPATH:C:\Qt\5.5\msvc2013_64\lib C:\Qt\5.5\msvc2013_64\lib\Qt5Widgets.lib C:\Qt\5.5\msvc2013_64\lib\Qt5Gui.lib C:\Qt\5.5\msvc2013_64\lib\Qt5Core.lib so that looks OK.

    What's wrong?

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

      Hi,

      When starting an application from explorer you need to follow the same steps you would for deploying that application.

      A quick and easy way to do that by using the windeployqt helper program.

      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
      1
      • hskoglundH Offline
        hskoglundH Offline
        hskoglund
        wrote on last edited by
        #3

        Hi, for a normal Qt installation, starting your app outside of Qt Creator should not be possible, because there are no path set to Qt dlls, or because you have not yet run windeployqt on your app. So Dependency Walker is just guessing what bit flavor of Qt5 dlls the app needs.

        To start your app outside of Qt Creator, you can open a CMD window:
        C:\Qt\5.5\msvc2013_64\bin\qtenv2.bat
        then cd to your build project and try starting your app from the same CMD window.

        1 Reply Last reply
        1

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved