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. Launching app outside of Creator?
Qt 6.11 is out! See what's new in the release blog

Launching app outside of Creator?

Scheduled Pinned Locked Moved Installation and Deployment
32 Posts 4 Posters 22.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.
  • S Offline
    S Offline
    Scylla
    wrote on last edited by
    #16

    Now I don't know what's your problem is ;-). What do you want to know?
    I thougth you want to start you app without the development environment, isn't it?
    If this is wat you want, you have to put the Qt lib's in the same folder as the *.exe. Furthermore you need in this directory "mingwm10.dll" as well as the "libgcc_s_dw2-1.dll". Last two dll's are needed because you are using the mingw32 compiler. If your app needs a plugin like sqlite or jpeg, you have to put the needed plugins in this folder too. But the plugins need a special format i.e. sqlite plugin: sqldrivers/qsqlite4.dll.
    If you now have all dependecies resolved, you app should start. You should see with dependeny walker, that there is no "external" dependency like "c:\system32".

    1 Reply Last reply
    0
    • mzimmersM Offline
      mzimmersM Offline
      mzimmers
      wrote on last edited by
      #17

      [quote]I thougth you want to start you app without the development environment, isn’t it?[/quote]

      Yes, that's it exactly. I'd like the user to be able to double-click on the .exe file and have the app run, and/or start it from the command line.

      And, this particular app doesn't use any Qt libraries. It's just a plain .cpp program.

      I did try this with the two files you mentioned in the same directory as the app. The app no longer gives me an error, but it also doesn't run.

      So, I'm obviously missing something, which is probably quite elementary, because I'm pretty ignorant of Windows. This is why I was asking whether I could re-route my cout calls so I can see them. It's possible the program is starting up, running into an immediate problem (like a data file not found) and quitting, but...I have no visibility into this as it is.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        Scylla
        wrote on last edited by
        #18

        Is this a commandline tool? Did you start your app from cmd.exe?

        1 Reply Last reply
        0
        • mzimmersM Offline
          mzimmersM Offline
          mzimmers
          wrote on last edited by
          #19

          I tried both. I double-clicked on the executable from a window, and I tried to run it via cmd.exe. Same results (nothing).

          1 Reply Last reply
          0
          • S Offline
            S Offline
            Scylla
            wrote on last edited by
            #20

            Can you provide the app, so I can test it?

            1 Reply Last reply
            0
            • mzimmersM Offline
              mzimmersM Offline
              mzimmers
              wrote on last edited by
              #21

              I appreciate that offer. I need to supply some needed data files, but first I need to truncate them. Give me a little time. Once I have this ready, what's the best way to convey this to you?

              1 Reply Last reply
              0
              • S Offline
                S Offline
                Scylla
                wrote on last edited by
                #22

                For me it's easier to test it by myself ;-).
                On the other hand you can provide more details to your app. I suppose it run from within QtCreator, isn't it? It's a pure c++ app? You use the mingw32 toolchain? If you use QtCreator, how looks your pro file? You can show a picture from dependency walker. Do you use mingw32 dll's version from Qt SDK? a.s.o. ....

                1 Reply Last reply
                0
                • mzimmersM Offline
                  mzimmersM Offline
                  mzimmers
                  wrote on last edited by
                  #23

                  OK, how about I email you the .exe and the .pro file? You can't run it without the input files, but maybe you can learn something about it.

                  Yes, it's pure C++, and I'm using the mingw32 tool chain (can't get Visual Studio to work, but that's a problem for another thread).

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    Scylla
                    wrote on last edited by
                    #24

                    I sent you a pn ;-)

                    1 Reply Last reply
                    0
                    • mzimmersM Offline
                      mzimmersM Offline
                      mzimmers
                      wrote on last edited by
                      #25

                      Replied via email. Thanks!

                      1 Reply Last reply
                      0
                      • S Offline
                        S Offline
                        Scylla
                        wrote on last edited by
                        #26

                        Sorry but I didn't receive any email :-(.

                        1 Reply Last reply
                        0
                        • mzimmersM Offline
                          mzimmersM Offline
                          mzimmers
                          wrote on last edited by
                          #27

                          Just sent it again. It has about 5 MB of attachment, so maybe it's hitting your spam filter?

                          1 Reply Last reply
                          0
                          • S Offline
                            S Offline
                            Scylla
                            wrote on last edited by
                            #28

                            5MB should be no problem. There is still no mail :-(. You can try a file hoster like "mediafire":http://www.mediafire.com/ .

                            1 Reply Last reply
                            0
                            • mzimmersM Offline
                              mzimmersM Offline
                              mzimmers
                              wrote on last edited by
                              #29

                              OK, I'll try mediafire. Here are links to the two files:

                              http://www.mediafire.com/download.php?51mwc8bc8u4tz2f
                              http://www.mediafire.com/download.php?ana1f1077idbzg5

                              1 Reply Last reply
                              0
                              • S Offline
                                S Offline
                                Scylla
                                wrote on last edited by
                                #30

                                So now I got the files. So I will take a look at this ;-)

                                1 Reply Last reply
                                0
                                • S Offline
                                  S Offline
                                  Scylla
                                  wrote on last edited by
                                  #31

                                  So, here it doesn't run as well. The debugger says it crashs while loading some dll's. Is this version a debug or a release version. On windows you can not mix them. Is this a 64Bit or a 32Bit version? I know this behavior while mixing release/debug libs. Is there any argument needed for starting the app? Is this app a console app or a win API app?

                                  1 Reply Last reply
                                  0
                                  • mzimmersM Offline
                                    mzimmersM Offline
                                    mzimmers
                                    wrote on last edited by
                                    #32

                                    Scylla -

                                    I'm so sorry I didn't get back to you...I didn't see your message until just now. I believe I uploaded a debug, 32-bit version (I'm still trying to get a 64-bit version of Qt built, but I'm running into issues). It's a console app, and the version I sent you doesn't need any arguments.

                                    This was the same problem I had...when I try to run it, it tells me it needs a couple of .dlls. When I supply those .dlls, it silently opens, then closes much too quickly to have done anything.

                                    I can upload a new image, or send you some source if you want to look at the top-level routines.

                                    Thanks.

                                    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