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

Unable to release an executable on Linux

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
6 Posts 4 Posters 769 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 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!

    sierdzioS 1 Reply Last reply
    0
    • I Isaac DeJager

      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!

      sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on 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
      2
      • sierdzioS sierdzio

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

        SGaistS 1 Reply Last reply
        0
        • I Isaac DeJager

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

          SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on 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
          1
          • SGaistS SGaist

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

            jsulmJ 1 Reply Last reply
            0
            • I Isaac DeJager

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

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on 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

              • Login

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