Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Cross compilation from OS X to Windows

    Tools
    4
    9
    5388
    Loading More Posts
    • 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.
    • mzimmers
      mzimmers last edited by

      ...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 Reply Quote 0
      • G
        goetz last edited by

        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 Reply Quote 0
        • mzimmers
          mzimmers last edited by

          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 Reply Quote 0
          • G
            goetz last edited by

            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 Reply Quote 0
            • L
              loopole last edited by

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

              1 Reply Last reply Reply Quote 0
              • mzimmers
                mzimmers last edited by

                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 Reply Quote 0
                • L
                  loopole last edited by

                  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 Reply Quote 0
                  • mzimmers
                    mzimmers last edited by

                    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 Reply Quote 0
                    • G
                      giesbert last edited by

                      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 Reply Quote 0
                      • First post
                        Last post