Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Any way to cross compile from Windows to FreeBSD?
Forum Update on Monday, May 27th 2025

Any way to cross compile from Windows to FreeBSD?

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 3 Posters 1.3k 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.
  • jronaldJ Offline
    jronaldJ Offline
    jronald
    wrote on last edited by
    #1

    I mean code on Windows, run it on FreeBSD server, thanks.
    Alternatively, code on Linux, run on FreeBSD, is also acceptable.
    Thanks.

    K jsulmJ 2 Replies Last reply
    0
    • jronaldJ jronald

      I mean code on Windows, run it on FreeBSD server, thanks.
      Alternatively, code on Linux, run on FreeBSD, is also acceptable.
      Thanks.

      K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      @jronald

      Yes, this is a cross-compilation. If you like to do on windows you need the cross-compilation tools kit for your target system. It is basically the same procedure as compiling for an embedded board. However, you need to search the internet for the fitting tool chain. Qt libs need to be cross-compiled in order to have the complete kit.

      On linux, it is probably dependent. If you have something compatible with FreeBSD you may be able to save the cross-compilation. Probably safer is to there also a cross-compilation.

      Both ways are workable and have been done. I have researched the possibility of cross-compilation for an embedded linux on windows. However, I had decided quickly to go to linux and do the cross-compilation there. Out of personal experience, the more different stuff you throw into a pot and stirr up, the more problems will boil up. Therefore, if you are interested to do the cross-compilation on windows, do it from there. If you have to get it done, probably the start from linux is easier.

      Vote the answer(s) that helped you to solve your issue(s)

      jronaldJ 1 Reply Last reply
      3
      • jronaldJ jronald

        I mean code on Windows, run it on FreeBSD server, thanks.
        Alternatively, code on Linux, run on FreeBSD, is also acceptable.
        Thanks.

        jsulmJ Online
        jsulmJ Online
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @jronald To add to @koahnig : I would just set up a virtual machine with FreeBSD and build there. It would be much easier than setting up a cross compilation environment on Windows.

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

        jronaldJ 1 Reply Last reply
        4
        • K koahnig

          @jronald

          Yes, this is a cross-compilation. If you like to do on windows you need the cross-compilation tools kit for your target system. It is basically the same procedure as compiling for an embedded board. However, you need to search the internet for the fitting tool chain. Qt libs need to be cross-compiled in order to have the complete kit.

          On linux, it is probably dependent. If you have something compatible with FreeBSD you may be able to save the cross-compilation. Probably safer is to there also a cross-compilation.

          Both ways are workable and have been done. I have researched the possibility of cross-compilation for an embedded linux on windows. However, I had decided quickly to go to linux and do the cross-compilation there. Out of personal experience, the more different stuff you throw into a pot and stirr up, the more problems will boil up. Therefore, if you are interested to do the cross-compilation on windows, do it from there. If you have to get it done, probably the start from linux is easier.

          jronaldJ Offline
          jronaldJ Offline
          jronald
          wrote on last edited by jronald
          #4

          @koahnig @jsulm Thanks.

          1 Reply Last reply
          0
          • jsulmJ jsulm

            @jronald To add to @koahnig : I would just set up a virtual machine with FreeBSD and build there. It would be much easier than setting up a cross compilation environment on Windows.

            jronaldJ Offline
            jronaldJ Offline
            jronald
            wrote on last edited by
            #5
            This post is deleted!
            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