program will not start
-
wrote on 15 Feb 2024, 22:25 last edited by
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;
-
wrote on 17 Feb 2024, 00:29 last edited by
-
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;
wrote on 15 Feb 2024, 22:39 last edited by@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?
DoesqDebug()
or any other output work? -
@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?
DoesqDebug()
or any other output work?wrote on 15 Feb 2024, 23:42 last edited by 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. -
@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.wrote on 15 Feb 2024, 23:57 last edited by 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? -
@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?wrote on 16 Feb 2024, 00:33 last edited by@Pl45m4 deleted everything in build folder, rebuilt, and still no run
-
@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?wrote on 16 Feb 2024, 00:40 last edited by@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
-
@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
wrote on 16 Feb 2024, 00:46 last edited by@micha_eleric Where are you looking for this output sent to standard out?
-
@micha_eleric Where are you looking for this output sent to standard out?
wrote on 16 Feb 2024, 01:35 last edited by@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.
-
@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.
wrote on 16 Feb 2024, 01:39 last edited by@micha_eleric You mean this option:
-
@micha_eleric You mean this option:
wrote on 16 Feb 2024, 02:07 last edited by@ChrisW67 said in program will not start:
@micha_eleric You mean this option:
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.
-
@micha_eleric You mean this option:
wrote on 16 Feb 2024, 03:43 last edited by@ChrisW67 only terminal setting i can find
-
@ChrisW67 said in program will not start:
@micha_eleric You mean this option:
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.
wrote on 16 Feb 2024, 07:16 last edited by@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? -
@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?wrote on 16 Feb 2024, 20:16 last edited by@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
-
@ChrisW67 only terminal setting i can find
wrote on 17 Feb 2024, 00:26 last edited by ChrisW67@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
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.
-
wrote on 17 Feb 2024, 00:29 last edited by
-
1/15