Opened 5 months ago

Last modified 5 months ago

#61076 assigned defect

wxWidgets-3.2 @3.1.4: error: use of undeclared identifier 'LSCopyDefaultApplicationURLForContentType'

Reported by: programmingkidx Owned by: mojca (Mojca Miklavec)
Priority: Normal Milestone:
Component: ports Version:
Keywords: tiger leopard snowleopard lion mountainlion mavericks Cc: programmingkidx
Port: wxWidgets-3.2

Description

When I was trying to install py38-wxpython-4.0, an error appeared saying that wxWidgets 3.2 failed to build.

Attachments (1)

main.log (307.7 KB) - added by programmingkidx 5 months ago.

Download all attachments as: .zip

Change History (7)

Changed 5 months ago by programmingkidx

Attachment: main.log added

comment:1 Changed 5 months ago by programmingkidx

Cc: programmingkidx added

comment:2 Changed 5 months ago by programmingkidx

The error:

:info:build ../src/osx/core/mimetype.cpp:434:32: error: use of undeclared identifier 'LSCopyDefaultApplicationURLForContentType'
:info:build     wxCFRef<CFURLRef> appUrl = LSCopyDefaultApplicationURLForContentType( cfuti, kLSRolesAll, NULL);

I found out that LSCopyDefaultApplicationURLForContentType first appears on Mac OS 10.10. Source: https://developer.apple.com/documentation/coreservices/1447734-lscopydefaultapplicationurlforco?language=objc

Last edited 5 months ago by ryandesign (Ryan Schmidt) (previous) (diff)

comment:3 Changed 5 months ago by ryandesign (Ryan Schmidt)

Keywords: tiger leopard snowleopard lion mountainlion mavericks added; wxWidgets removed
Owner: set to mojca
Port: wxWidgets-3.2 added; py38-wxpython-4.0 removed
Status: newassigned
Summary: wxWidgets 3.2 fails to build on Mac OS 10.8wxWidgets-3.2 @3.1.4: error: use of undeclared identifier 'LSCopyDefaultApplicationURLForContentType'

Then unfortunately you will not be able to build wxWidgets-3.2 on OS X 10.8. Sorry.

comment:4 Changed 5 months ago by programmingkidx

Could an error message be displayed on unsupported versions of Mac OS X that tell the user this software cannot installed on the current operating system? It would be much more helpful.

comment:5 Changed 5 months ago by kencu (Ken)

Or you could look at the same file in a previous version of wxWidgets, see what exactly changed, and come up with some workaround that would be used on earlier systems.

Almost anything is possible, depending on your motivation and available time...

comment:6 Changed 5 months ago by mojca (Mojca Miklavec)

See https://github.com/wxWidgets/wxWidgets/pull/1929

I don't really know, but I suspect it will become increasingly difficult to keep the patches for older versions of OS X around unless you volunteer to join the wxWidgets development team and reach the agreement to actively support older versions.

Note: See TracTickets for help on using tickets.