[kdeconnect] [Bug 446128] KDE connect builds for OSX has been broken.

idoitprone bugzilla_noreply at kde.org
Fri Nov 26 19:38:24 GMT 2021


https://bugs.kde.org/show_bug.cgi?id=446128

--- Comment #3 from idoitprone <monkeyboyted at yahoo.com> ---


This log might have a clue.

07:26:06  In file included from
/Users/packaging/Craft/BinaryFactory/macos-64-clang/build/libs/qt5/qtbase/work/qtbase-everywhere-src-5.15.2/src/plugins/platforms/cocoa/qiosurfacegraphicsbuffer.mm:40:
07:26:06 
/Users/packaging/Craft/BinaryFactory/macos-64-clang/build/libs/qt5/qtbase/work/qtbase-everywhere-src-5.15.2/src/plugins/platforms/cocoa/qiosurfacegraphicsbuffer.h:54:32:
error: unknown type name 'CGColorSpaceRef'; did you mean 'QColorSpace'?
07:26:06      void setColorSpace(QCFType<CGColorSpaceRef> colorSpace);
07:26:06                                 ^~~~~~~~~~~~~~~
07:26:06                                 QColorSpace
07:26:06 
/Users/packaging/Craft/BinaryFactory/macos-64-clang/build/libs/qt5/qtbase/work/qtbase-everywhere-src-5.15.2/include/QtCore/../../src/corelib/kernel/qmetatype.h:2090:1:
note: 'QColorSpace' declared here
07:26:06  QT_FOR_EACH_STATIC_GUI_CLASS(QT_FORWARD_DECLARE_STATIC_TYPES_ITER)
07:26:06  ^
07:26:06 
/Users/packaging/Craft/BinaryFactory/macos-64-clang/build/libs/qt5/qtbase/work/qtbase-everywhere-src-5.15.2/include/QtCore/../../src/corelib/kernel/qmetatype.h:178:24:
note: expanded from macro 'QT_FOR_EACH_STATIC_GUI_CLASS'
07:26:06      F(QColorSpace, 87, QColorSpace) \
07:26:06                         ^
07:26:06 
/Users/packaging/Craft/BinaryFactory/macos-64-clang/build/libs/qt5/qtbase/work/qtbase-everywhere-src-5.15.2/src/plugins/platforms/cocoa/qiosurfacegraphicsbuffer.mm:90:32:
error: out-of-line definition of 'setColorSpace' does not match any declaration
in 'QIOSurfaceGraphicsBuffer'
07:26:06  void QIOSurfaceGraphicsBuffer::setColorSpace(QCFType<CGColorSpaceRef>
colorSpace)
07:26:06                                 ^~~~~~~~~~~~~
07:26:06 
/Users/packaging/Craft/BinaryFactory/macos-64-clang/build/libs/qt5/qtbase/work/qtbase-everywhere-src-5.15.2/src/plugins/platforms/cocoa/qiosurfacegraphicsbuffer.h:54:24:
note: type of 1st parameter of member declaration does not match definition
('QCFType<QColorSpace>' vs 'QCFType<CGColorSpaceRef>')
07:26:06      void setColorSpace(QCFType<CGColorSpaceRef> colorSpace);
07:26:06                         ^
07:26:06  2 errors generated.
07:26:06  make[4]: *** [.obj/qiosurfacegraphicsbuffer.o] Error 1
07:26:06  make[4]: *** Waiting for unfinished jobs....
07:26:09  make[3]: *** [sub-cocoa-make_first] Error 2
07:26:09  make[2]: *** [sub-platforms-make_first] Error 2
07:26:09  make[1]: *** [sub-plugins-make_first] Error 2
07:26:09  make: *** [sub-src-make_first] Error 2
07:26:09  Command ['/usr/bin/make', '-j', '4'] failed with exit code 2
07:26:09  Action: compile for libs/qt5/qtbase:5.15.2-6 FAILED
07:26:09  *** Craft all failed: libs/qt5/qtbase after 25 minutes 49 seconds ***
07:26:09  fatal error: package libs/qt5/qtbase all failed


https://github.com/microsoft/vcpkg/issues/21055
https://github.com/bitcoin/bitcoin/pull/23580/files
https://code.qt.io/cgit/qt/qtbase.git/commit/src/plugins/platforms/cocoa?id=dece6f5840463ae2ddf927d65eb1b3680e34a547

It seems like Apple refactored something and qt needs to add an header. 

diff --git a/src/plugins/platforms/cocoa/qiosurfacegraphicsbuffer.h
b/src/plugins/platforms/cocoa/qiosurfacegraphicsbuffer.h
index 5d4b6d6a71..cc7193d8b7 100644
--- a/src/plugins/platforms/cocoa/qiosurfacegraphicsbuffer.h
+++ b/src/plugins/platforms/cocoa/qiosurfacegraphicsbuffer.h
@@ -43,6 +43,7 @@
 #include <qpa/qplatformgraphicsbuffer.h>
 #include <private/qcore_mac_p.h>

+#include <CoreGraphics/CGColorSpace.h>
 #include <IOSurface/IOSurface.h>

 QT_BEGIN_NAMESPACE

-- 
You are receiving this mail because:
You are watching all bug changes.



More information about the kde-mac mailing list