It was missing framework flags.
It changes link flags on linux too, so needs to be tested there.
I'm not totally sure but using 1 for thumbnails might work
Differential D13997
macOS: allow building blender-thumbnailer Authored by Ankit Meel (ankitm) on Feb 2 2022, 7:19 PM.
Details
It was missing framework flags. It changes link flags on linux too, so needs to be tested there. I'm not totally sure but using 1 for thumbnails might work
Diff Detail
Event TimelineComment Actions @Campbell Barton (campbellbarton) this fixes the linker error.. do we want to enable the thumbnailer ? I can look into quicklook preview generation from thumbnail. Comment Actions I'd prefer to leave building this off by default, since it doesn't actually integrate with macOS thumbnails in this state. To actually make this work I guess we need to follow this: But it's not clear to me if that would be part of the existing Blender executable, or a separate library or executable. Comment Actions agreed
Sadly this "QuickLook Thumbnailing" framework is available on 10.15 onwards.. for 10.13, 10.14 https://developer.apple.com/documentation/quicklook/previews_or_thumbnail_images_for_macos_10_14_or_earlier?language=objc should be used I think. deprecated but still usable.
I'll have to check but .qlgenerator as a separate package can work too. blender-thumbnailer would still be useful since it outputs an image which is way better than trying to draw with Obj-C APIs. Comment Actions I don't think we should spend time implementing a deprecated API to make old macOS versions work, that we will stop supporting anyway. |