New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #35372 (closed defect: wontfix)

Opened 10 months ago

Last modified 8 months ago

wxWidgets fails in Mountain Lion

Reported by: seanmmills@… Owned by: jwa@…
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: mountainlion Cc:
Port: wxWidgets

Description (last modified by ryandesign@…) (diff)

Error: org.macports.build for port wxWidgets returned: command execution failed
Error: Failed to install wxWidgets

Attachments

main.log (58.9 KB) - added by seanmmills@… 10 months ago.

Change History

Changed 10 months ago by seanmmills@…

comment:1 Changed 10 months ago by ryandesign@…

  • Owner changed from macports-tickets@… to jwa@…
  • Keywords mountainlion added; wxWidgets mountain lion removed
  • Description modified (diff)

Yup, sorry. It's up to the developers of wxWidgets to release a new version that's compatible with Lion and Mountain Lion. Try the wxWidgets-devel port for now.

comment:2 follow-up: ↓ 3 Changed 10 months ago by jwa@…

  • Status changed from new to closed
  • Resolution set to wontfix

On Lion, wxWidgets builds and runs fine. On Mountain Lion, however, one has to use -devel that builds ok (just checked). If there are problems with wxWidgets-devel on ML, please do another ticket. Currently stable wxWidgets, 2.8.12, depends on Carbon support that has been dropped here.

comment:3 in reply to: ↑ 2 Changed 10 months ago by frederic.devernay@…

Actually, wxWidgets 2.9 is not 100% compatible with 2.8 (see the wxWidgets doc, http://docs.wxwidgets.org/2.9.4/overview_changes_since28.html ), so it may still be necessary to have wxWidgets 2.8 availablefor some applications.

Carbon support was not dropped from 10.8! only the 10.6 SDK was removed from Xcode 4.4 (it was still there in 4.3), and Carbon applications compiled against the 10.6 SDK still run fine under 10.8.

I managed to compile it on Mountain Lion by getting the 10.6 SDK from my time machine at /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platformDeveloper/SDKs/MacOSX10.6.sdk and then adding the following section in the Portfile (after the "platform darwin 11" section).

It should also be possible to get the 10.6 SDK from the Xcode 3.2.6 distribution (there's a package for that in the dmg). It would be great if macports could have a prt that installs the 10.6 SDK.

Note that several ports seem to use the 10.6 SDK (plus all the ones which require wxWidgets):

fgrep -r MacOSX10.6.sdk /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports
platform darwin 12 {
	pre-configure {
		if {![file exists ${developer_dir}/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk]} {
			return -code error "\n********************\n${name} requires Mac OS X 10.6 SDK, please get it from XCode 3.2.6\n********************"
		}
	}
    configure.args-append \
        --with-macosx-version-min=10.6 \
        --with-macosx-sdk=${developer_dir}/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk
}

comment:4 Changed 10 months ago by jwa@…

Yes, 2.9 and 2.8 are not compatible, but picking an SDK from a previous version of Xcode to the current will never be a supported configuration. It could be tempting, but Carbon support is gone and hacking it in place is a bad idea.

comment:5 Changed 8 months ago by ryandesign@…

Has duplicate #36125.

comment:6 Changed 8 months ago by and.damore@…

Has duplicate #36086 too.

Note: See TracTickets for help on using tickets.