Skip to content

Permission issues with symbolic link for tinyglTF #387

@SaschaWillems

Description

@SaschaWillems

Our Findtinygltf.cmake contains this snippet:

    # Create a symbolic link to make nlohmann/json.hpp available
    if(EXISTS "${tinygltf_SOURCE_DIR}/json.hpp")
      file(MAKE_DIRECTORY "${tinygltf_SOURCE_DIR}/nlohmann")
      file(CREATE_LINK "${tinygltf_SOURCE_DIR}/json.hpp" "${tinygltf_SOURCE_DIR}/nlohmann/json.hpp" SYMBOLIC)
    endif()

Which wants to create a symbolic link to the json headers. Prob. due to security reasons, this fails on my system with "a permission denied" error (sorry for the German):

CMake Error at V:/Vulkan-Docs-Site/Vulkan-Tutorial-review/attachments/simple_engine/CMake/Findtinygltf.cmake:80 (file):
  file failed to create symbolic link
  'V:/Vulkan-Docs-Site/Vulkan-Tutorial-review/attachments/sync2_engine/build/_deps/tinygltf-src/nlohmann/json.hpp':
  Dem Client fehlt ein erforderliches Recht.

The error "Dem Client fehlt ein erforderliches Recht." translates to "The client is lacking a required permission", which seems to be caused by not having administrative rights.

With this issue I can't build any of the tutorial code projects.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions