Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#58040 closed defect (fixed)

wxWidgets-3.2: builds on 10.7 but requires `--with-macosx-sdk` set to 10.8 SDK

Reported by: kencu (Ken) Owned by: mojca (Mojca Miklavec)
Priority: Normal Milestone:
Component: ports Version:
Keywords: lion Cc:
Port: wxWidgets-3.2

Description (last modified by kencu (Ken))

According to the official website, wxWidgets-3.2 will run on 10.7+, but when building on 10.7, it fails due to 10.8 - specific SDK features (log attached).

Passing in the path to the 10.8 SDK on 10.7 does fix the build.

I thought ${developer_dir}/SDKs/MacOSX10.8.sdk should be the path, but it turns out that is not correct on 10.7 at least. The following worked:

--with-macosx-sdk=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk \
--with-macosx-version-min=${macosx_deployment_target} \

Attachments (1)

wxWidgets-3.2-10.7-main-log-fail.log (333.3 KB) - added by kencu (Ken) 5 years ago.

Download all attachments as: .zip

Change History (9)

Changed 5 years ago by kencu (Ken)

comment:1 Changed 5 years ago by kencu (Ken)

Worth noting I think that the MacOSX10.8.sdk is I believe pre-installed in the Xcode for 10.7, so nothing actually needs to be physically added.

comment:2 Changed 5 years ago by kencu (Ken)

Cc: mojca removed
Owner: set to mojca
Status: newassigned

comment:3 Changed 5 years ago by kencu (Ken)

Description: modified (diff)

comment:4 Changed 5 years ago by kencu (Ken)

Description: modified (diff)

comment:5 Changed 5 years ago by mojca (Mojca Miklavec)

Thanks a lot. I thought 10.7 was sufficient, but I didn't test the latest version. Yes, 10.8 is preinstalled in the last couple of Xcode versions shipped for 10.7 (only the earlier versions included the SDK for 10.6). I thought we have a more straightforward way to specify the SDK than to hardcode the full path, but maybe I'm wrong.

Are you willing to commit the patch yourself?

Just for fun I would check whether compiling against 10.8 is also needed for dependent port, but I assume/hope not.

comment:6 Changed 5 years ago by kencu (Ken)

closed by [15a8f434cad82f465ddb7977d4dcb26d686540fe/macports-ports].

For interest, wxWidgets-3.2 also builds on 10.6.8 against the 10.8 SDK with some minor tweaking of the install names afterwards. I generally only use 10.6.8 / libc++ , so I haven't tested other builds as yet.

Not extensively tested just yet, but perhaps this might be useful.

<https://github.com/kencu/SnowLeopardPorts/commit/e863c742e3d8edfd2ff6f1dc21a4d179ee422bc7>.

comment:7 Changed 5 years ago by kencu (Ken)

Resolution: fixed
Status: assignedclosed

comment:8 Changed 5 years ago by mojca (Mojca Miklavec)

Thanks a lot.

Note: See TracTickets for help on using tickets.