Cannot find configure file in Qt directory!
-
Hi, i am using Linux with KDE (Kubuntu)
I installed QtCreator and installed the needed tools using the "Qt Maintenance Tool"
Installed: Qt 6.4.2 (all components), Developer and Designer Tools (all components), Qt Design Studio 3.9.0
QT is installed in
/home/user/QtI am trying to statically build a simple hello world CLI app following this guide: https://doc.qt.io/qt-6/linux-deployment.html
I cannot find the
configurefile in/home/user/Qt, why is that ? and is there a way to build a static binary from inside QtCreator ? -
Hi, i am using Linux with KDE (Kubuntu)
I installed QtCreator and installed the needed tools using the "Qt Maintenance Tool"
Installed: Qt 6.4.2 (all components), Developer and Designer Tools (all components), Qt Design Studio 3.9.0
QT is installed in
/home/user/QtI am trying to statically build a simple hello world CLI app following this guide: https://doc.qt.io/qt-6/linux-deployment.html
I cannot find the
configurefile in/home/user/Qt, why is that ? and is there a way to build a static binary from inside QtCreator ?Hi, and welcome!
@Pete-Carter said in Cannot find configure file in Qt directory!:
I am trying to statically build a simple hello world CLI app following this guide: https://doc.qt.io/qt-6/linux-deployment.html
I cannot find the
configurefile in/home/user/Qt, why is that ? and is there a way to build a static binary from inside QtCreator ?The installer only provides dynamic libraries, which cannot be used for statically-linked applications. If you want static linking, you must build static Qt libraries from source code.
The
configurefile is from the source code. You can get it from https://download.qt.io/official_releases/qt/6.4/6.4.2/single/ (the*.tar.xzfile is for Linux) or from Git: https://wiki.qt.io/Building_Qt_6_from_Git -
Hi, and welcome!
@Pete-Carter said in Cannot find configure file in Qt directory!:
I am trying to statically build a simple hello world CLI app following this guide: https://doc.qt.io/qt-6/linux-deployment.html
I cannot find the
configurefile in/home/user/Qt, why is that ? and is there a way to build a static binary from inside QtCreator ?The installer only provides dynamic libraries, which cannot be used for statically-linked applications. If you want static linking, you must build static Qt libraries from source code.
The
configurefile is from the source code. You can get it from https://download.qt.io/official_releases/qt/6.4/6.4.2/single/ (the*.tar.xzfile is for Linux) or from Git: https://wiki.qt.io/Building_Qt_6_from_Git@JKSH said in Cannot find configure file in Qt directory!:
The configure file is from the source code.
I downloaded the source from the "Qt Maintenance Tool" but cannot find it, is it necessary to download the source again from https://download.qt.io/official_releases/qt/6.4/6.4.2/single/ ?
-
@JKSH said in Cannot find configure file in Qt directory!:
The configure file is from the source code.
I downloaded the source from the "Qt Maintenance Tool" but cannot find it, is it necessary to download the source again from https://download.qt.io/official_releases/qt/6.4/6.4.2/single/ ?
@Pete-Carter said in Cannot find configure file in Qt directory!:
I downloaded the source from the "Qt Maintenance Tool" but cannot find it
If you downloaded using
/home/user/Qt/MaintenanceTool...then the configure script is at
/home/user/Qt/6.4.2/Src/configure -
Thanks for the help. Compiling takes too much time, i have done it once using the source i downloaded from the website but haven't had the
/home/user/Qt/libas the docs say https://doc.qt.io/qt-6/linux-deployment.html#building-qt-staticallywill try compiling the source at
/home/user/Qt/6.4.2/Srcand see what happens ...I don't know why QtCreator has no option to compile statically ?! It would be nice if the developer can produce in independent static binary from within QtCreator and even produce packages like .deb and .Appimage.
-
Thanks for the help. Compiling takes too much time, i have done it once using the source i downloaded from the website but haven't had the
/home/user/Qt/libas the docs say https://doc.qt.io/qt-6/linux-deployment.html#building-qt-staticallywill try compiling the source at
/home/user/Qt/6.4.2/Srcand see what happens ...I don't know why QtCreator has no option to compile statically ?! It would be nice if the developer can produce in independent static binary from within QtCreator and even produce packages like .deb and .Appimage.
@Pete-Carter said in Cannot find configure file in Qt directory!:
I don't know why QtCreator has no option to compile statically ?!
We recommend dynamic linking for most use-cases. Also, static libraries are HUGE! (Dynamic Qt is already huge; the resources required to host static Qt for users to download would be insane)
If you want static linking, then you must build the static libraries from source.
even produce packages like .deb and .Appimage.
You can.
- Qt/CMake/CPack officially supports .deb packages: https://www.qt.io/blog/deploying-to-linux-with-cmake
- You can use a 3rd-party tool to create AppImages: https://github.com/probonopd/linuxdeployqt
-
Thanks for the help. Compiling takes too much time, i have done it once using the source i downloaded from the website but haven't had the
/home/user/Qt/libas the docs say https://doc.qt.io/qt-6/linux-deployment.html#building-qt-staticallywill try compiling the source at
/home/user/Qt/6.4.2/Srcand see what happens ...I don't know why QtCreator has no option to compile statically ?! It would be nice if the developer can produce in independent static binary from within QtCreator and even produce packages like .deb and .Appimage.
@Pete-Carter Just to add to @JKSH : if you use static build of Qt you have to consider the obligations of LGPL! Unless you have a commercial license.