Reputation: 6989
I have a Windows program that writen in QT using C++. May I know whether those code wrote for Windows platform are convertible to Mac? Is it 100% of the code are convertible or none of it are convertible?
Upvotes: 0
Views: 3873
Reputation: 7778
Go for the brute force approach, IMO.
Install, open the project, compile.
If it fails, check the code for platform specific stuff.
It's not "smart" but it's effective since you will need to download the SDK anyway if you plan on coding for mac.
(Note that this is not a cross-compiler, I'm assuming you have a mac to develop on)
Upvotes: 8
Reputation: 6329
There are a couple of things that are different on the Mac
So my conclusion would be: While it is possible to write clean Qt code which can be 100% ported from one OS to another, usually, programmers fail to do it 100% clean and thus there will be some porting work to be done.
As hexa recommends, go ahead, compile the stuff and try to sort the errors into categories. Once you have these categories, make your decision on how to proceed.
Upvotes: 7