You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
../../../../../../../../sources/main.cpp:203:55: error: no type named 'MakeGL' in 'GrDirectContext'
sk_sp<GrDirectContext> grContext(GrDirectContext::MakeGL(interface));
~~~~~~~~~~~~~~~~~^
../../../../../../../../sources/main.cpp:203:37: warning: parentheses were disambiguated as a function declaration [-Wvexing-parse]
sk_sp<GrDirectContext> grContext(GrDirectContext::MakeGL(interface));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../../../../../../sources/main.cpp:203:38: note: add a pair of parentheses to declare a variable
sk_sp<GrDirectContext> grContext(GrDirectContext::MakeGL(interface));
^
(
1 warning and 1 error generated.
[2/49] Building CXX object externals/skia/out/cmake/CMakeFiles/skia.dir/__/__/src/core/SkDeferredDisplayList.cpp.o
Let's see the skia code snippet:
#ifdef SK_GL
/** * Creates a GrDirectContext for a backend context. If no GrGLInterface is provided then the * result of GrGLMakeNativeInterface() is used if it succeeds.*/static sk_sp<GrDirectContext> MakeGL(sk_sp<const GrGLInterface>, const GrContextOptions&);
static sk_sp<GrDirectContext> MakeGL(sk_sp<const GrGLInterface>);
static sk_sp<GrDirectContext> MakeGL(const GrContextOptions&);
static sk_sp<GrDirectContext> MakeGL();
#endif
Apparently the SK_GL flag is not being set correctly. My workaround was just adding -DCMAKE_CXX_FLAGS="-DSK_GL" to my build script.
The text was updated successfully, but these errors were encountered:
During the compilation of the application I realized that
GrDirectContext
andGrContext
hasn't type namedMakeGL
. The skia build flags were these:This was the error log:
Let's see the skia code snippet:
Apparently the
SK_GL
flag is not being set correctly. My workaround was just adding-DCMAKE_CXX_FLAGS="-DSK_GL"
to my build script.The text was updated successfully, but these errors were encountered: