Unable to release an executable on Linux
-
wrote on 25 Oct 2023, 23:00 last edited by
I'm very new to Qt and I am trying to make a simple button => print ("hello world") application on Linux. I can build and run it just fine in the creator, and when I release it I can see both the release and debug folders. However neither folder has a .exe. They both have a file that has the same name as the project but I can't seem to use it.
Do I need to be checking for certain settings or dependencies?
Thank you!
-
I'm very new to Qt and I am trying to make a simple button => print ("hello world") application on Linux. I can build and run it just fine in the creator, and when I release it I can see both the release and debug folders. However neither folder has a .exe. They both have a file that has the same name as the project but I can't seem to use it.
Do I need to be checking for certain settings or dependencies?
Thank you!
hey both have a file that has the same name as the project
That is the binary (executable). On Linux they don't have .exe suffix.
I can't seem to use it.
You may need to deploy the binaries (with linuxdeployqt, for example), or install Qt system-wide.
-
hey both have a file that has the same name as the project
That is the binary (executable). On Linux they don't have .exe suffix.
I can't seem to use it.
You may need to deploy the binaries (with linuxdeployqt, for example), or install Qt system-wide.
wrote on 26 Oct 2023, 16:23 last edited by@sierdzio Is there a way to move the executable to Windows and run it there? I really only need to build my projects from Linux but they'll mostly be used from Windows.
-
@sierdzio Is there a way to move the executable to Windows and run it there? I really only need to build my projects from Linux but they'll mostly be used from Windows.
@Isaac-DeJager hi and welcome to devnet,
That would require cross-compilation which is doable but not easy. The simplest would be to use a virtual machine and build your executable for Windows there.
-
@Isaac-DeJager hi and welcome to devnet,
That would require cross-compilation which is doable but not easy. The simplest would be to use a virtual machine and build your executable for Windows there.
wrote on 26 Oct 2023, 20:43 last edited by@SGaist I see, I'll avoid that then and try to solely use it on Linux. Is there any documentation you could refer me to regarding linuxdeployqt? I can't find much guidance on how to use that.
Thank you!
-
@SGaist I see, I'll avoid that then and try to solely use it on Linux. Is there any documentation you could refer me to regarding linuxdeployqt? I can't find much guidance on how to use that.
Thank you!
@Isaac-DeJager First match in Google: https://github.com/probonopd/linuxdeployqt
1/6