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 Offline
    M Offline
    micha_eleric
    wrote on 15 Feb 2024, 22:25 last edited by
    #1

    program will not start.
    only indication that something happens:
    12:42:00: Starting /home/micha_eleric/Qt_Creator_Projects/build-GUI-Desktop-Debug/GUI ...

    first line of cout does not show, gui window does not open

    int main(int argc, char **argv)
    {
        std::cout << "__name__\n" << std::flush;
    
    P 1 Reply Last reply 15 Feb 2024, 22:39
    0
    • M Offline
      M Offline
      micha_eleric
      wrote on 17 Feb 2024, 00:29 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
        15 Feb 2024, 22:25

        program will not start.
        only indication that something happens:
        12:42:00: Starting /home/micha_eleric/Qt_Creator_Projects/build-GUI-Desktop-Debug/GUI ...

        first line of cout does not show, gui window does not open

        int main(int argc, char **argv)
        {
            std::cout << "__name__\n" << std::flush;
        
        P Offline
        P Offline
        Pl45m4
        wrote on 15 Feb 2024, 22:39 last edited by
        #2

        @micha_eleric said in program will not start:

        program will not start.
        only indication that something happens:
        12:42:00: Starting /home/micha_eleric/Qt_Creator_Projects/build-GUI-Desktop-Debug/GUI ...

        That's not much information...
        what else is in your main code?
        Do you link any libraries?
        Have you cleaned your build directory already and tried again?
        Does qDebug() or any other output work?


        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 15 Feb 2024, 23:42
        0
        • P Pl45m4
          15 Feb 2024, 22:39

          @micha_eleric said in program will not start:

          program will not start.
          only indication that something happens:
          12:42:00: Starting /home/micha_eleric/Qt_Creator_Projects/build-GUI-Desktop-Debug/GUI ...

          That's not much information...
          what else is in your main code?
          Do you link any libraries?
          Have you cleaned your build directory already and tried again?
          Does qDebug() or any other output work?

          M Offline
          M Offline
          micha_eleric
          wrote on 15 Feb 2024, 23:42 last edited by micha_eleric
          #3

          @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.

          P 1 Reply Last reply 15 Feb 2024, 23:57
          0
          • M micha_eleric
            15 Feb 2024, 23:42

            @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.

            P Offline
            P Offline
            Pl45m4
            wrote on 15 Feb 2024, 23:57 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 16 Feb 2024, 00:33
            0
            • P Pl45m4
              15 Feb 2024, 23:57

              @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 16 Feb 2024, 00:33 last edited by
              #5

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

              1 Reply Last reply
              0
              • P Pl45m4
                15 Feb 2024, 23:57

                @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 16 Feb 2024, 00:40 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 16 Feb 2024, 00:46
                0
                • M micha_eleric
                  16 Feb 2024, 00:40

                  @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 16 Feb 2024, 00:46 last edited by
                  #7

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

                  M 1 Reply Last reply 16 Feb 2024, 01:35
                  0
                  • C ChrisW67
                    16 Feb 2024, 00:46

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

                    M Offline
                    M Offline
                    micha_eleric
                    wrote on 16 Feb 2024, 01:35 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 16 Feb 2024, 01:39
                    0
                    • M micha_eleric
                      16 Feb 2024, 01:35

                      @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 16 Feb 2024, 01:39 last edited by
                      #9

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

                      M 2 Replies Last reply 16 Feb 2024, 02:07
                      0
                      • C ChrisW67
                        16 Feb 2024, 01:39

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

                        M Offline
                        M Offline
                        micha_eleric
                        wrote on 16 Feb 2024, 02:07 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.

                        P 1 Reply Last reply 16 Feb 2024, 07:16
                        0
                        • C ChrisW67
                          16 Feb 2024, 01:39

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

                          M Offline
                          M Offline
                          micha_eleric
                          wrote on 16 Feb 2024, 03:43 last edited by
                          #11

                          @ChrisW67 only terminal setting i can find
                          Screenshot_20240215_182405.png

                          C 1 Reply Last reply 17 Feb 2024, 00:26
                          0
                          • M micha_eleric
                            16 Feb 2024, 02:07

                            @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.

                            P Offline
                            P Offline
                            Pl45m4
                            wrote on 16 Feb 2024, 07:16 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 16 Feb 2024, 20:16
                            0
                            • P Pl45m4
                              16 Feb 2024, 07:16

                              @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 16 Feb 2024, 20:16 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
                                16 Feb 2024, 03:43

                                @ChrisW67 only terminal setting i can find
                                Screenshot_20240215_182405.png

                                C Offline
                                C Offline
                                ChrisW67
                                wrote on 17 Feb 2024, 00:26 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 17 Feb 2024, 00:29 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 17 Feb 2024, 00:29

                                  1/15

                                  15 Feb 2024, 22:25

                                  • Login

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