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. QT app doesn't startup from windows cmd
Forum Updated to NodeBB v4.3 + New Features

QT app doesn't startup from windows cmd

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.3k 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.
  • B Offline
    B Offline
    browser90
    wrote on last edited by
    #1

    I'm having a little problem, when compiling and running my app in QtCreator, everything works fine, even with command line arguments.

    When releasing my app and running it from cmd.exe, the app doesn't do anything. Even a "cout" doesn't shows up. The cmd just pops to the next rule it doesn't run.

    My application should normally show a QLabel with pictures.

    I checked dependency walker and it sais I have dll's from different processor type, therefore I searched on google and I found that it couldn't give a problem because the dll's are only available in 64 bit.

    startup I do like: "text.exe 192.168.0.12 64000"

    http://i45.tinypic.com/15xmhz7.png

    Screenshot included.

    Anyone who could help me?

    1 Reply Last reply
    0
    • Chris KawaC Offline
      Chris KawaC Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on last edited by
      #2

      With dependency walker you have to make sure of two things:

      1. You use the same version as your app is ie. 32bit if your app is 32bit and 64bit if your app is 64bit, otherwise the misleading warning about different processor type appears.
      2. Make sure none of the Qt dlls are in the PATH or QT_DIR, otherwise it will pick them up and report no problem but your app won't start after deployment.

      The other thing is that dependency walker can't check for any dlls loaded dynamically, so make sure you deploy all the plugins you use, so platforms/qwindows.dll(most probably that's what you're missing), imageformats/qgif.dll or sqldrivers/qsqlite.dll and so on.

      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