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. [solved] building a "standalone" program
Forum Update on Monday, May 27th 2025

[solved] building a "standalone" program

Scheduled Pinned Locked Moved Qt Creator and other tools
20 Posts 8 Posters 7.9k 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.
  • mzimmersM Offline
    mzimmersM Offline
    mzimmers
    wrote on last edited by
    #10

    Bump...anyone with ideas on how to remedy the issue highlighted above?

    Thanks.

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

      Another data point: I hex-edited my executable, searched for ".dll" and came up with these:

      1. libgcc_s_dw2-1.dll
      2. mingwm10.dll
      3. msvcrt.dll
      4. KERNEL32.DLL
      5. __register_frame_info.libcj_s.dll

      I have copies of 1 and two in my executable folder; I was told I don't need 3 and 4.

      5 is a mystery. I can't even find it on my system. And googling doesn't turn up much about it. Can anyone tell me something about this file, and why my program seems to be referencing it?

      1 Reply Last reply
      0
      • G Offline
        G Offline
        goetz
        wrote on last edited by
        #12

        I can't - and I would straightly ignore it :)

        http://www.catb.org/~esr/faqs/smart-questions.html

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

          Well, I don't mind ignoring it, but I'm still unable to launch this program from the command line, so I need to figure something out pretty quick. If the problem isn't a missing .dll, I'm not sure where to turn to find the problem.

          1 Reply Last reply
          0
          • G Offline
            G Offline
            goetz
            wrote on last edited by
            #14

            Sorry, that's hard to tell from remote. And to be honest, I'm out of ideas what could go wrong here.

            http://www.catb.org/~esr/faqs/smart-questions.html

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

              Yeah, I understand. Someone told me it might be a side of effect of using the 32-bit version of MinGW on a 64-bit system. I tried adding my 64-bit version of the compiler to my tool chain, but I'm not able to get it ahead of the one it finds automatically. I've put a path to the 64-bit version ahead of the path to the one in QtSDK in my PATH variable, and even renamed the QtSDK directory to block access, but it still comes up with \QtSDK\mingw\bin first in the list. Any ideas on this?

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

                Ahhhhhhh!

                The problem was in the .pro file. Evidently, failure to explicitly exclude Qt from the configuration resulted in a few references to Qt functions somewhere in the binary. The winning .pro code is:

                @CONFIG += CONSOLE
                CONFIG -= qt@

                Thanks to everyone for the assistance.

                1 Reply Last reply
                0
                • B Offline
                  B Offline
                  bootfinder
                  wrote on last edited by
                  #17

                  I have a similar problem...

                  I am running Ubuntu 12.04 with QT Creator 2.4.1

                  • most applications run both from the IDE and by double clicking the .exe file, but some applications ONLY run within the IDE, and not when I double click the (same) executable file.

                  Why???

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

                    [quote author="bootfinder" date="1400143896"]I have a similar problem...

                    I am running Ubuntu 12.04 with QT Creator 2.4.1

                    • most applications run both from the IDE and by double clicking the .exe file, but some applications ONLY run within the IDE, and not when I double click the (same) executable file.

                    Why???[/quote]Hi bootfinder,

                    Please read the "official Linux deployment documentation":http://qt-project.org/doc/qt-5/linux-deployment.html, as well as this excellent "blog post about deployment":http://www.tripleboot.org/?p=138

                    Anyway, your problem sounds different from the original problem in this thread. If you'd like more help, please start a new thread.

                    P.S. Qt Creator 2.4.1 is extremely old. I recommend upgrading to "Qt Creator 3.1":http://qt-project.org/downloads

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

                    1 Reply Last reply
                    0
                    • M Offline
                      M Offline
                      MunchyYDL
                      wrote on last edited by
                      #19

                      I have had a similar problem, sometimes my apps worked differently, depending on if I launched it from within Qt Creator, or from the Finder or terminal on OS X.

                      My problems occurred because the current directory was different depending on from where i launched the application, so that might be something that you guys can check.

                      1 Reply Last reply
                      0
                      • jensen82J Offline
                        jensen82J Offline
                        jensen82
                        wrote on last edited by
                        #20

                        What do you mean with "my apps worked diffrently"? And yes, the current directory is not the directory where your exe-file exists.

                        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