styluslabs / nanovgXC

Lightweight vector graphics library implementing exact-coverage antialiasing in OpenGL
Other
139 stars 6 forks source link

Failed to compile skia-test on my mingw64 #5

Closed THZthz closed 1 year ago

THZthz commented 1 year ago

I was trying to compile skia-test on my mingw, but get linking errors like: webp error Those functions seems to be declared on src/webp/mux.h. And I don't know anything else.

I am not familiar with skia and just install it using pacman -S mingw-w64-x86_64-skia (the skia version is mingw-w64-x86_64-skia-108.0.5359.95-2).

Here's my compile command:

g++ glad.c SkiaSDLTest.cpp -lskia -lopengl32 -lglfw3 -lskia -lgdi32 -lSDL2 -lole32 -loleaut32 -ladvapi32 -lsetupapi -limm32 -lwebp -lpng -ljpeg -I./ -IC:\\Workspace\\msys64\\mingw64\\include\\skia g++ glad.c SkiaSDLTest.cpp -lskia -lopengl32 -lglfw3 -lskia -lgdi32 -lSDL2 -lole32 -loleaut32 -ladvapi32 -lsetupapi -limm32 -lwebp -lpng -ljpeg -I./ -IC:\\Workspace\\msys64\\mingw64\\include\\skia

Here's the look of the folder (I copied neccessary headers here):

# ls
glad.c  GrGLDefines.h  SkiaSDLTest.cpp  SkTraceEventCommon.h
glad.h  khrplatform.h  nanosvg.h        SkTraceEvent.h

How to compile it correctly ?


add repository skia-test