My favorites | Sign in
Project Home Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 139: No SDK 10.5 under Mac OS 10.7
2 people starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  ----
Closed:  Feb 2012


 
Reported by renaud.p...@gmail.com, Sep 21, 2011
** What steps will reproduce the problem? **
1. Try to compile even a simple haXe program (like at http://haxe.org/doc/start/cpp)

haxe Test.hx -cpp cpp -debug -main Test -D HXCPP_M64


** What is the expected output? What do you see instead? **

The executable should be built. 
It does not because the Mac OS 10.5 SDK cannot be found.

The 10.5 SDK is no more included in Xcode under 10.7 (and cannot be included).

** What version of the product are you using? On what operating system? **

Version 2,08,0.
The same issue must appear on the development version.

** Please provide any additional information below. **

On OS X, there is a distinction between:
- the Base SDK, which is the version of the SDK which is dynamically linked with the executable
- the Deployment Target, which is the minimum version of Mac OS X required to run the executable. I believe it only corresponds to a key in the Info.plist of an application, and therefore does not apply to simple executables. However, also it seems to be a parameter passed to gcc…

It is possible, and actually recommended, to build against the latest SDK, even if the app is deployed on an older OS. For instance, it permits to use new APIs provided by OS 10.7 when running on 10.7, while keeping the compatibility with OS 10.5. The drawback is you won't know if you use newest API under 10.5 until execution.

To come back to hxcpp: passing the MAC_USE_CURRENT_SDK parameter to haXe permits to build the executable. However, as far as I understand mac_toolchain.xml also sets the deployment target to the current SDK.

What I believe to be the best strategy is to:
- always link with the current SDK, so mac_toolchain.xml works on 10.7 as well as in 10.6.
- make the deployment target something like 10.4, so it's high enough for the SDL.


Feb 8, 2012
Project Member #1 gameh...@gmail.com
I found you can set the deployment target using an environment variable, so MAC_USE_CURRENT_SDK  is no longer needed.
Status: Fixed

Powered by Google Project Hosting