os x building apps for older versions

Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
Post Reply
jdratlif1261
In need of some credit
In need of some credit
Posts: 4
Joined: Tue Sep 03, 2019 12:15 am

os x building apps for older versions

Post by jdratlif1261 » Fri Sep 13, 2019 11:32 pm

I've read that the next version of OS X will drop support for 32-bit, so I need to recompile my apps for modern versions of OS X. I haven't used Mac since Lion, but I have a Mac Book with Mojave.

I installed Xcode, but when I try to build wxMac, it tried to build with support for Lion, and it didn't find the SDK to do that. I added a configure parameter, something like -with-mac-osx-min-version=10.14 and it would build, but I think that will make it so that my apps will only work on Mojave and newer.

I'd like to target Yosemite and above (>= 10.10). I picked that one since it's what Chrome says is the oldest version it will run on.

The things I've read online have only confused me. Some say to use older SDKs, to get them from old versions of Xcode and stick them in my Xcode directory somehow. Some say I can use some kind of deployment version target to make sure it will work on older version of OS X (ignoring new features or whatever).

What do I need to do to build software with wxWidgets that is compatible with Mac OS X 10.10 Yosemite and later (including the upcoming 10.15 which won't have 32-bit support)?

Thanks.

User avatar
evstevemd
Part Of The Furniture
Part Of The Furniture
Posts: 2263
Joined: Wed Jan 28, 2009 11:57 am
Location: United Republic of Tanzania
Contact:

Re: os x building apps for older versions

Post by evstevemd » Mon Sep 16, 2019 1:22 pm

I think Mavericks is the default version supported by default on wxWidgets build (Am using CMake, so not sure bout other builds). So -with-mac-osx-min-version=10.9 should be OK.

About building for 10.15, it won't be possible I guess. Why not have two wxWidgets and then build two version of same app?
Chief Justice: We have trouble dear citizens!
Citizens: What it is his honor?
Chief Justice:Our president is an atheist, who will he swear to?
[Ubuntu 19.04/Windows 10 Pro/MacOS 10.13 - GCC/MinGW/Clang, CodeLite IDE]

Post Reply