verygoodgraphics / vgg_runtime

The official implementation of VGG Specs with cross-platform vector graphics and user interfaces.
https://verygoodgraphics.com
Other
57 stars 5 forks source link

Failed to compile test viewer under macos #396

Closed harry75369 closed 2 months ago

harry75369 commented 2 months ago

Detailed description

test/render/viewer.cpp failed to compile because of lack of vulkan headers under macos

Detailed error:

In file included from /Users/harry/Workspace/vgg/vgg_runtime/test/render/viewer.cpp:22:
In file included from /Users/harry/Workspace/vgg/vgg_runtime/lib/skia/include/gpu/GrBackendSurface.h:26:
In file included from /Users/harry/Workspace/vgg/vgg_runtime/lib/skia/include/gpu/vk/GrVkTypes.h:13:
In file included from /Users/harry/Workspace/vgg/vgg_runtime/lib/skia/include/gpu/vk/VulkanTypes.h:12:
/Users/harry/Workspace/vgg/vgg_runtime/lib/skia/include/private/gpu/vk/SkiaVulkan.h:20:10: fatal error: 'vulkan/vulkan_core.h' file not found
#include <vulkan/vulkan_core.h>
         ^~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [test/render/CMakeFiles/viewer.dir/viewer.cpp.o] Error 1
make[1]: *** [test/render/CMakeFiles/viewer.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

Expected behavior

It compiles.

Actual behavior

Failed to compile.

Steps to reproduce

In build directory,

cmake ..
make viewer

Additional information

No response