Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Unable to release an executable on Linux
Forum Updated to NodeBB v4.3 + New Features

Unable to release an executable on Linux

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
6 Posts 4 Posters 409 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    Isaac DeJager
    wrote on 25 Oct 2023, 23:00 last edited by
    #1

    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!

    S 1 Reply Last reply 26 Oct 2023, 05:24
    0
    • I Isaac DeJager
      25 Oct 2023, 23:00

      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!

      S Offline
      S Offline
      sierdzio
      Moderators
      wrote on 26 Oct 2023, 05:24 last edited by
      #2

      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.

      (Z(:^

      I 1 Reply Last reply 26 Oct 2023, 16:23
      2
      • S sierdzio
        26 Oct 2023, 05:24

        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.

        I Offline
        I Offline
        Isaac DeJager
        wrote on 26 Oct 2023, 16:23 last edited by
        #3

        @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.

        S 1 Reply Last reply 26 Oct 2023, 17:16
        0
        • I Isaac DeJager
          26 Oct 2023, 16:23

          @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.

          S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 26 Oct 2023, 17:16 last edited by
          #4

          @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.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          I 1 Reply Last reply 26 Oct 2023, 20:43
          1
          • S SGaist
            26 Oct 2023, 17:16

            @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.

            I Offline
            I Offline
            Isaac DeJager
            wrote on 26 Oct 2023, 20:43 last edited by
            #5

            @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!

            J 1 Reply Last reply 27 Oct 2023, 05:25
            0
            • I Isaac DeJager
              26 Oct 2023, 20:43

              @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!

              J Offline
              J Offline
              jsulm
              Lifetime Qt Champion
              wrote on 27 Oct 2023, 05:25 last edited by
              #6

              @Isaac-DeJager First match in Google: https://github.com/probonopd/linuxdeployqt

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              1

              1/6

              25 Oct 2023, 23:00

              • Login

              • Login or register to search.
              1 out of 6
              • First post
                1/6
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved