Skip to content

MGL Building issues #68

@redeemarr

Description

@redeemarr

FYI
Macos 13.0.1, XCode 14.1
Followed steps is BUILD.md, failed on build_external.sh -> hardcoded absolute paths for MGLContext.h and MGLRenderer.h in external/glfw/src/cocoa_platform.h and mgl_context.m

Xcode build of MGL failed, so I did the following:

  1. Commented out API_AVAILABLE and API_UNAVAILABLE declarations in MGL/include/pixel_utils.h

  2. Added the following after includes of MGL/src/shaders.c

GLSLANG_SHADER_VULKAN_RULES_RELAXED = 1 << 2;
void glslang_shader_set_options(glslang_shader_t*, int);
  1. From MGL/external/SPIRV-Tools/source/val added validate_mesh_shading.cpp and validate_ray_tracing_reorder.cpp to project (MGL/SPIRV-Tools)

After that MGL was built successfully.
Hope this will be helpful

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions