Hi together,

I just wanted to work with a "Getting Started with Qt5"-book and a "Hello-World"-project but now I have some difficulties when
using qmake in a termial / console i.e. not using Qt-Creator. So here is my source ( not really spectacular ):

Qt Code:
  1. #include <QApplication>
  2. #include <QLabel>
  4. int main(int argc, char *argv[])
  5. {
  6. QApplication app(argc, argv);
  7. QLabel label("Hallo Werner!");
  8. label.show();
  9. return app.exec();
  10. }
To copy to clipboard, switch view to plain text mode 

"qmake" is not found but "qmake6" is found and returns help-information.
"qmake6 -project" returns "Variable QMAKE_CXX.COMPILER_MACROS is not defined." but a
project-file is created.
When I type "qmake6" again, then a Makefile is also created.

But when I finally type "make" then I get "

hello.cpp:1:10: fatal error: QApplication: Datei oder Verzeichnis nicht gefunden
1 | #include <QApplication>
| ^~~~~~~~~~~~~~

In Qt-Create under settings->kits I get with "Desktop Qt 6.4.2 GCC 64bit" an orange warning
sign and the warning:
The CMAKE-Configuration has set a C-compiler although the kit has no valid toolchain.

Anyway the QLibraries are not found.

Op-system ist OpenSuse-Linux Leap 15.4,
Installation is non commercial and was done using the Qt-Maintenance Tool.

Any hint what is wrong with my installation? Under Qt4 everything worked fine.

Best regards