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. Cross compilation from OS X to Windows
Forum Update on Monday, May 27th 2025

Cross compilation from OS X to Windows

Scheduled Pinned Locked Moved Qt Creator and other tools
9 Posts 4 Posters 6.0k 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.
  • mzimmersM Offline
    mzimmersM Offline
    mzimmers
    wrote on last edited by
    #1

    ...not sure which flavor of Windows yet, but for the purposes of this question, it probably doesn't matter.

    I'm trying to learn how to do this. I've looked through this page:

    "Cross-platform etc.":http://doc.qt.nokia.com/4.7/developing-with-qt.html

    and I haven't found anything that tells me how to actually do this. Can someone point me to an appropriate document?

    Thank you.

    1 Reply Last reply
    0
    • G Offline
      G Offline
      goetz
      wrote on last edited by
      #2

      Cross-Platform in the context of the mentioned web page means that the source code is compatible with all platforms and can be compiled everywhere without changes.

      Cross-Compiling is a different beast, it means to create object code or executables for one platform with all the tools installed on another platform. If you can so, I'd recommend avoiding this. It causes all sort of subtle problems regarding library paths and so on.

      A good alternative is installing a development environment in a virtual machine (you can install Windows on a VM on OS X without problems). This is what I regularly do.

      http://www.catb.org/~esr/faqs/smart-questions.html

      1 Reply Last reply
      0
      • mzimmersM Offline
        mzimmersM Offline
        mzimmers
        wrote on last edited by
        #3

        OK, I can do that. I just tried installing an old copy of Virtual PC, and discovered it doesn't run on Intel-based Macs. So, what's the hot, modern way of getting Windows running on my Mac?

        1 Reply Last reply
        0
        • G Offline
          G Offline
          goetz
          wrote on last edited by
          #4

          You can use VMWare Fusion from http://www.vmware.com or Parallels Desktop from http://www.parallels.com

          Which one you use is mostly a matter of taste. I personally went the VMWare way. I have the impression that there are slightly more VM ware images out there (test appliances for example) than for parallels.

          http://www.catb.org/~esr/faqs/smart-questions.html

          1 Reply Last reply
          0
          • L Offline
            L Offline
            loopole
            wrote on last edited by
            #5

            also,
            "http://www.virtualbox.org/":http://www.virtualbox.org/
            free alternative, from Oracle.

            1 Reply Last reply
            0
            • mzimmersM Offline
              mzimmersM Offline
              mzimmers
              wrote on last edited by
              #6

              That VirtualBox is an interesting app. How do you go about installing Windows into it, though? I have a copy of XP Pro that I could use with it. When I start the session, I get a black screen with "FATAL: No bootable medium found! System halted." message.

              1 Reply Last reply
              0
              • L Offline
                L Offline
                loopole
                wrote on last edited by
                #7

                If I remember right, you have to set your CD on the virtual machine before booting... something like that.... but it sure is possible as it is meant for this.

                1 Reply Last reply
                0
                • mzimmersM Offline
                  mzimmersM Offline
                  mzimmers
                  wrote on last edited by
                  #8

                  Thanks for the reply. It turned out that one must have CD/DVD sharing enabled for VirtualBox to allow you to install. If sharing is disabled, it gives a very subtle error message, followed by futility.

                  1 Reply Last reply
                  0
                  • G Offline
                    G Offline
                    giesbert
                    wrote on last edited by
                    #9

                    You can map you local CD drive to the VM or use an iso immage.

                    Create the virtual machine

                    right click --> properties (or similar, I have a german one :-) )

                    Hard disk --> IDE controller

                    select empty slot and then CD/DVD drive --> host

                    you could activate Passthrough or leave the check box out...

                    Nokia Certified Qt Specialist.
                    Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

                    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