Opened 10 years ago

Closed 9 years ago

#43746 closed defect (fixed)

qt4-mac @4.8.6: kCFURLIsHiddenKey and CFURLCopyResourcePropertyForKey not declared in this scope

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: michaelld (Michael Dickens)
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: leopard haspatch Cc: dgonyier (Dwaine Gonyier), trg818 (Thomas Ruedas)
Port: qt4-mac

Description

qt4-mac 4.8.5 installed successfully on Leopard, but 4.8.6 fails with:

dialogs/qfiledialog_mac.mm: In function ‘BOOL -[QNSOpenSavePanelDelegate isHiddenFile:isDir:](QNSOpenSavePanelDelegate*, objc_selector*, NSString*, BOOL)’:
dialogs/qfiledialog_mac.mm:300: error: ‘kCFURLIsHiddenKey’ was not declared in this scope
dialogs/qfiledialog_mac.mm:300: error: ‘CFURLCopyResourcePropertyForKey’ was not declared in this scope
make[1]: *** [.obj/release-shared/qfiledialog_mac.o] Error 1

Indeed Apple documentation shows that kCFURLIsHiddenKey and CFURLCopyResourcePropertyForKey are not available until Mac OS X 10.6.

Attachments (2)

qt4-mac-main.log.bz2 (25.0 KB) - added by ryandesign (Ryan Carsten Schmidt) 10 years ago.
qt4-mac.diff (1.4 KB) - added by ryandesign (Ryan Carsten Schmidt) 10 years ago.
proposed patch

Download all attachments as: .zip

Change History (10)

Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: qt4-mac-main.log.bz2 added

comment:2 Changed 10 years ago by michaelld (Michael Dickens)

Those patches will likely do the trick. Can somebody with OSX 10.5 try the patches out (please)?

comment:3 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: haspatch added

Yes, that works.

The second part of the patch seemed to be already applied so only the first part was needed.

Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: qt4-mac.diff added

proposed patch

comment:4 Changed 10 years ago by dgonyier (Dwaine Gonyier)

Cc: dgonyier@… added

Cc Me!

comment:5 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: trg818@… added

Has duplicate #43948.

comment:6 Changed 10 years ago by wtogami@…

This proposed patch successfully fixed the build on OSX 10.6.8 with /usr/bin/g++-4.2 -c -pipe -Os -Xarch_i386 -mmacosx-version-min=10.5

Please add the patch.

Last edited 10 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:7 in reply to:  6 Changed 10 years ago by dgonyier (Dwaine Gonyier)

Replying to wtogami@…:

This proposed patch successfully fixed the build on OSX 10.6.8 with /usr/bin/g++-4.2 -c -pipe -Os -Xarch_i386 -mmacosx-version-min=10.5

Please add the patch.

I'm seeing similar compiler issues on a PowerBook 4 runing OS X 10.5.8. I assume this compile string will need the -Xarch argument modified to handle PPC systems?

Last edited 10 years ago by dgonyier (Dwaine Gonyier) (previous) (diff)

comment:8 Changed 9 years ago by michaelld (Michael Dickens)

Resolution: fixed
Status: newclosed

Done in r141285.

Note: See TracTickets for help on using tickets.