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. Best way to crosscompile from Linux to Windows?
Forum Update on Monday, May 27th 2025

Best way to crosscompile from Linux to Windows?

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
5 Posts 2 Posters 1.2k Views
  • 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.
  • alsaA Offline
    alsaA Offline
    alsa
    wrote on last edited by
    #1

    Title already explains: using Qt on Ubuntu how can I cross compile for use my app in Windows 10? It's a Desktop application...

    jsulmJ 1 Reply Last reply
    0
    • alsaA alsa

      Title already explains: using Qt on Ubuntu how can I cross compile for use my app in Windows 10? It's a Desktop application...

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @alsa See here: http://stackoverflow.com/questions/2033997/how-to-compile-for-windows-on-linux-with-gcc-g
      But I think it would be easier to set up a Windows machine (can be a virtual machine) than doing it this way.

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

      1 Reply Last reply
      0
      • alsaA Offline
        alsaA Offline
        alsa
        wrote on last edited by
        #3

        My question starts from an app developed to print a PDF file; using the QPDFWRITER library I noticed the version compiled using QT on Linux works fine, while making the same in Qt for Windows something goes wrong. In particular, using this app I printed a text file in PDF format: the version under Linux allows me to edit words when the PDF is done, while version under Windows seems to use fonts not editable using Adobe Acrobat.
        Any idea?

        jsulmJ 1 Reply Last reply
        0
        • alsaA alsa

          My question starts from an app developed to print a PDF file; using the QPDFWRITER library I noticed the version compiled using QT on Linux works fine, while making the same in Qt for Windows something goes wrong. In particular, using this app I printed a text file in PDF format: the version under Linux allows me to edit words when the PDF is done, while version under Windows seems to use fonts not editable using Adobe Acrobat.
          Any idea?

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @alsa Sorry, I don't understand this: "while version under Windows seems to use fonts not editable using Adobe Acrobat". What does this mean? Do you use the same version of this library on Linux and Windows? And how is this problem related to your original question?

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

          1 Reply Last reply
          0
          • alsaA Offline
            alsaA Offline
            alsa
            wrote on last edited by
            #5

            I don't know if it's related, but I would try to cross compile from linux To Windows in order to check if problem is solved. All start from a application that print a text document in PDf format using ARIAL font: sometimes I need to correct the date and this is possible editing the file with Adobe Acrobat. Well, this is possible only if I compile my app using Qt from Linux (Arial font still remains the same), while using QT from Windows Arial font seems to have a different feature that doesn't allow to edit it directly.

            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