Hi,

I'm wanting to get the native OpenGL context on macOS but when including
<QtPlatformHeaders/QCocoaNativeContext> I get the following error:


In file included from
.../qt-5.12.7/qtbase/include/QtPlatformHeaders/QCocoaNativeContext:1:
.../qt-5.12.7/qtbase/include/QtPlatformHeaders/qcocoanativecontext.h:1:
In file included from
.../qt-5.12.7/qtbase/include/QtPlatformHeaders/../../src/platformheaders/nativecontexts/qcocoanativecontext.h:44:
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSOpenGL.h:8:
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKitDefines.h:11:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:492:1:
error: expected unqualified-id
@class NSString, Protocol;


Looks like it's including Objective-C stuff that the compiler doesn't like.

This is in a Xcode (11.3) project that was created by CMake. How do I make this
work?

Glenn

_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest

Reply via email to