Error running GLFW GLEW setup

  • fcarrillo98
    Likes 0

    Problem Description

    I followed the setup video: https://www.youtube.com/watch?v=Tz0dq2krCW8&list=PLRtjMdoYXLf6zUMDJVRZYV-6g6n62vet8

    and the code builds fine, but whenever I run the code, I get the following error message:

    dyld: Library not loaded: /usr/local/opt/glfw/lib/libglfw.3.dylib

      Referenced from: /Users/user1/Library/Developer/Xcode/DerivedData/Setup-evnuofndfnrhdcfthxvheugegjjw/Build/Products/Debug/Setup

      Reason: no suitable image found.  Did find:

        /usr/local/opt/glfw/lib/libglfw.3.dylib: code signature in (/usr/local/opt/glfw/lib/libglfw.3.dylib) not valid for use in process using Library Validation: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed.

        /usr/local/Cellar/glfw/3.3/lib/libglfw.3.3.dylib: code signature in (/usr/local/Cellar/glfw/3.3/lib/libglfw.3.3.dylib) not valid for use in process using Library Validation: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed.

     

    I’m not sure how to continue, I’ve tried setting it all up again, checking for mistakes during the setup or installation, and searching for similar issues online but I’ve gotten nowhere. I’m hoping you might have an answer to the issue

  • fcarrillo98
    Likes 0

    Found a solution, (you can open the site in Google Chrome and have it translated): https://blog.csdn.net/Niall_L/article/details/101468571

    You have to go to Project → Signing capabilities → then remove the Hardened Runtime section

  • Sonar Systems admin
    Likes 0

    Awesome buddy

Login to reply