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)
Change History (10)
Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)
Attachment: | qt4-mac-main.log.bz2 added |
---|
comment:1 Changed 10 years ago by devernay (Frédéric Devernay)
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:5 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | trg818@… added |
---|
Has duplicate #43948.
comment:6 follow-up: 7 Changed 10 years ago by wtogami@…
https://trac.macports.org/attachment/ticket/43746/qt4-mac.diff 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.
comment:7 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?
comment:8 Changed 9 years ago by michaelld (Michael Dickens)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Done in r141285.
would that do the trick?
https://qt.gitorious.org/qt/mumble-developers-qt/commit/0a6c959e31635ba779c6a07e4b0d176493afd9c4?diffmode=sidebyside