Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qt IFW generate .exe installer on Linux
Forum Updated to NodeBB v4.3 + New Features

Qt IFW generate .exe installer on Linux

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
4 Posts 3 Posters 421 Views 1 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.
  • D Offline
    D Offline
    devdevdev
    wrote on last edited by
    #1

    Hi folks,

    I would like to build a Windows installer on Linux, using Qt IFW.
    However, the extension of the generated artifact is .run, not .exe.
    I found a way to change the extension to .exe (setting CPACK_IFW_PACKAGE_FILE_EXTENSION in CMake),
    but this only renames the file, the actual content of the artifact is not changed.
    So I cannot run this .exe file on Windows.
    Is there a proper solution to this problem?

    Thanks,
    Lajos Gurzo

    JonBJ 1 Reply Last reply
    0
    • D devdevdev

      Hi folks,

      I would like to build a Windows installer on Linux, using Qt IFW.
      However, the extension of the generated artifact is .run, not .exe.
      I found a way to change the extension to .exe (setting CPACK_IFW_PACKAGE_FILE_EXTENSION in CMake),
      but this only renames the file, the actual content of the artifact is not changed.
      So I cannot run this .exe file on Windows.
      Is there a proper solution to this problem?

      Thanks,
      Lajos Gurzo

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @devdevdev
      Hello and welcome.

      Does Qt IFW support building a Windows installer from Linux? Surely the .run file is a Linux executable or script file?

      D 1 Reply Last reply
      0
      • JonBJ JonB

        @devdevdev
        Hello and welcome.

        Does Qt IFW support building a Windows installer from Linux? Surely the .run file is a Linux executable or script file?

        D Offline
        D Offline
        devdevdev
        wrote on last edited by devdevdev
        #3

        @JonB
        Thanks for the reply.

        Does Qt IFW support building a Windows installer from Linux?

        This is what I want to find out.

        Surely the .run file is a Linux executable or script file?

        If the host platform is Linux, Qt IFW will generate a .run file at the end (executable file on Linux), regardless of the target platform.
        Would be great to say the following: if the target platform is Windows, generate and .exe, otherwise generate a .run file.

        Is it possible to do?

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi,

          Just guessing but I would say no.

          Beside that, did you cross-compile your application for Windows as well ?

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

          1 Reply Last reply
          0

          • Login

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