Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Compiling a Qt application for Mac OS X on Linux

I'm developing a Qt application and I need to support Linux, Windows and Mac OS X. The only problem however is that I do not own a Mac. Is it possible to compile my application for Mac OS X on Linux and package it in a .dmg file?

I'm also worried with the fact that my application depends on OpenSSL, can I compile OpenSSL for Mac OS X on my Linux machine?

Thank you.

like image 460
Raphael Avatar asked Dec 03 '10 02:12

Raphael


1 Answers

How do you want to support Mac if you can't even test if your software works?

Cross-compilation for OS X: I doubt there is any solution out there (I'd love to learn about it if it is), you'd need the whole SDK and toolchain for that. For the .dmg file creation part, there is another question here:

How to build a dmg Mac OS X file (on a non-Mac platform)?

There should be no need to bundle openssl, as it's part of every OS X installation.

If you want to support Mac you need to Mac, access to one (remote, rented etc.), or someone who does it for you. I don't think you have another choice.

As the accepted answer in

How to Compile for OS X in Linux or Windows?

suggests, you can go for Macports in case you develop free software. It does the compiling on the user's machine (think FreeBSD ports or Gentoo's emerge). Still, that will require testing.

like image 172
Frank Osterfeld Avatar answered Sep 20 '22 13:09

Frank Osterfeld