Good day.

Faced such a problem: when building a QT project via qt-creator->сборка проекта shared library file is qt-creator->сборка проекта instead of the executable file:

file QuckLesson
QuckLesson: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=d976b3b965cd47bfefc4efa17345c7a6e06a73ea, not stripped

QuckLesson.pro:

 TEMPLATE = app TARGET = QuckLesson INCLUDEPATH += . QT += core gui qml DEFINES += QT_DEPRECATED_WARNINGS HEADERS += bhacasing.h brinecalc.h mudmixing.h weighting.h SOURCES += bhacasing.cpp brinecalc.cpp main.cpp mudmixing.cpp weighting.cpp RESOURCES += qml.qrc 

As a result, the file that is assembled can only be launched from under the console. Tell me why the non-executable file is assembled when specifying TEMPLATE = app or where there may be an error?

  • shared library, as I understand it, so. so you can not run (and even from under the console). So all the same executable. Therefore, I think that in main.cpp you simply do not create windows. - KoVadim
  • The fact is that when running from under qtcreator, the program works fine and there are no problems with the window. - el_madcapo
  • Because she does not find the necessary so. - KoVadim
  • it turns out to me in the folder in which the executive file is located, do I need to transfer the libraries that I connect? but the trouble is that I do not connect anything other than QT-shnyh libraries. And then there is another question: if this file starts from under the console as banal ./QuckLesson and then the program window appears and the program itself works correctly, then why would this file have any other libraries? Then it would be logical to assume that it did not start from the console, but cursed the absence of any libraries. And this does not happen. - el_madcapo
  • and how then does it not start? - KoVadim

0