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. program will not start
Forum Updated to NodeBB v4.3 + New Features

program will not start

Scheduled Pinned Locked Moved Solved General and Desktop
15 Posts 3 Posters 918 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.
  • M micha_eleric

    @Pl45m4
    yes, there is more code
    libraries are included
    the first line is a print , which shows that main does not start.
    have not tried qDebug, because main never gets called. tried to run in debug, but also stops with no sign of starting.

    Pl45m4P Offline
    Pl45m4P Offline
    Pl45m4
    wrote on last edited by Pl45m4
    #4

    @micha_eleric said in program will not start:

    yes, there is more code
    libraries are included
    the first line is a print , which shows that main does not start.

    So debug your app and remove parts one after another until your program starts again.
    Have you tried to clean/delete your build folder and re-build again?


    If debugging is the process of removing software bugs, then programming must be the process of putting them in.

    ~E. W. Dijkstra

    M 2 Replies Last reply
    0
    • Pl45m4P Pl45m4

      @micha_eleric said in program will not start:

      yes, there is more code
      libraries are included
      the first line is a print , which shows that main does not start.

      So debug your app and remove parts one after another until your program starts again.
      Have you tried to clean/delete your build folder and re-build again?

      M Offline
      M Offline
      micha_eleric
      wrote on last edited by
      #5

      @Pl45m4 deleted everything in build folder, rebuilt, and still no run

      1 Reply Last reply
      0
      • Pl45m4P Pl45m4

        @micha_eleric said in program will not start:

        yes, there is more code
        libraries are included
        the first line is a print , which shows that main does not start.

        So debug your app and remove parts one after another until your program starts again.
        Have you tried to clean/delete your build folder and re-build again?

        M Offline
        M Offline
        micha_eleric
        wrote on last edited by
        #6

        @Pl45m4 commentated everything but

        int main(int argc, char **argv)
        {
            std::cout << "__name__\n" << std::flush;
            QApplication app (argc, argv);
        
            return app.exec();
        }
        

        and still no print

        C 1 Reply Last reply
        0
        • M micha_eleric

          @Pl45m4 commentated everything but

          int main(int argc, char **argv)
          {
              std::cout << "__name__\n" << std::flush;
              QApplication app (argc, argv);
          
              return app.exec();
          }
          

          and still no print

          C Offline
          C Offline
          ChrisW67
          wrote on last edited by
          #7

          @micha_eleric Where are you looking for this output sent to standard out?

          M 1 Reply Last reply
          0
          • C ChrisW67

            @micha_eleric Where are you looking for this output sent to standard out?

            M Offline
            M Offline
            micha_eleric
            wrote on last edited by
            #8

            @ChrisW67 should run in external terminal, but can not find Preferences

            use to print in one of the tabs at bottom of qt creator, i think application output.

            C 1 Reply Last reply
            0
            • M micha_eleric

              @ChrisW67 should run in external terminal, but can not find Preferences

              use to print in one of the tabs at bottom of qt creator, i think application output.

              C Offline
              C Offline
              ChrisW67
              wrote on last edited by
              #9

              @micha_eleric You mean this option:
              0fcb0809-e498-432d-be97-a077eab9d9cb-image.png

              M 2 Replies Last reply
              0
              • C ChrisW67

                @micha_eleric You mean this option:
                0fcb0809-e498-432d-be97-a077eab9d9cb-image.png

                M Offline
                M Offline
                micha_eleric
                wrote on last edited by
                #10

                @ChrisW67 said in program will not start:

                @micha_eleric You mean this option:
                0fcb0809-e498-432d-be97-a077eab9d9cb-image.png

                no. there is an option Preferences -> Terminal -> unclick [use internal terminal]

                but can not find preference anymore, nor terminal with check box use internal terminal.

                Pl45m4P 1 Reply Last reply
                0
                • C ChrisW67

                  @micha_eleric You mean this option:
                  0fcb0809-e498-432d-be97-a077eab9d9cb-image.png

                  M Offline
                  M Offline
                  micha_eleric
                  wrote on last edited by
                  #11

                  @ChrisW67 only terminal setting i can find
                  Screenshot_20240215_182405.png

                  C 1 Reply Last reply
                  0
                  • M micha_eleric

                    @ChrisW67 said in program will not start:

                    @micha_eleric You mean this option:
                    0fcb0809-e498-432d-be97-a077eab9d9cb-image.png

                    no. there is an option Preferences -> Terminal -> unclick [use internal terminal]

                    but can not find preference anymore, nor terminal with check box use internal terminal.

                    Pl45m4P Offline
                    Pl45m4P Offline
                    Pl45m4
                    wrote on last edited by
                    #12

                    @micha_eleric said in program will not start:

                    no. there is an option Preferences -> Terminal -> unclick [use internal terminal]
                    but can not find preference anymore, nor terminal with check box use internal terminal.

                    ???

                    The option @ChrisW67 showed is to toggle between QtCreator internal output pane and and extra terminal window which opens to show your output.
                    What terminal are you talking about?


                    If debugging is the process of removing software bugs, then programming must be the process of putting them in.

                    ~E. W. Dijkstra

                    M 1 Reply Last reply
                    0
                    • Pl45m4P Pl45m4

                      @micha_eleric said in program will not start:

                      no. there is an option Preferences -> Terminal -> unclick [use internal terminal]
                      but can not find preference anymore, nor terminal with check box use internal terminal.

                      ???

                      The option @ChrisW67 showed is to toggle between QtCreator internal output pane and and extra terminal window which opens to show your output.
                      What terminal are you talking about?

                      M Offline
                      M Offline
                      micha_eleric
                      wrote on last edited by
                      #13

                      @Pl45m4 said in program will not start:

                      @micha_eleric said in program will not start:

                      no. there is an option Preferences -> Terminal -> unclick [use internal terminal]
                      but can not find preference anymore, nor terminal with check box use internal terminal.

                      ???

                      The option @ChrisW67 showed is to toggle between QtCreator internal output pane and and extra terminal window which opens to show your output.
                      What terminal are you talking about?

                      both. i can only find run in terminal, not option for which terminal. either way, no terminal shows output

                      1 Reply Last reply
                      0
                      • M micha_eleric

                        @ChrisW67 only terminal setting i can find
                        Screenshot_20240215_182405.png

                        C Offline
                        C Offline
                        ChrisW67
                        wrote on last edited by ChrisW67
                        #14

                        @micha_eleric Which is precisely the option I showed you.

                        The "internal terminal" option you refer to is quite present in Qt Creator 11 and 12
                        6c8b6681-cd4e-4819-8ed7-412483af33b2-image.png
                        That option is off by default, which means that the option I showed you will start an external terminal and launch your program in it.

                        If you are truly getting no output at all when you run the compiled example then it is simply failing to launch. The most likely reason for that is missing libraries. Run ldd your_executable and see what is missing. Do this outside of Qt Creator so that there are no confounding factors.

                        Run the program in your debugger and see what breaks.

                        1 Reply Last reply
                        1
                        • M Offline
                          M Offline
                          micha_eleric
                          wrote on last edited by
                          #15

                          well, found found out that install offline is different from install online.
                          installed online, clicked configure button, which is not available from off line install, and program starts, and external terminal pop ups. also terminal tab is available
                          Screenshot_20240216_151640.png

                          1 Reply Last reply
                          0
                          • M micha_eleric has marked this topic as solved on

                          • Login

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