# Ld: symbol(s) not found for architecture arm64 on Mac M1

**URL:** <https://discourse.glfw.org/t/ld-symbol-s-not-found-for-architecture-arm64-on-mac-m1/2488>\
**Category:** support\
**Created:** [November 11, 2023, 1:27pm UTC](https://discourse.glfw.org/t/ld-symbol-s-not-found-for-architecture-arm64-on-mac-m1/2488 "2023-11-11T13:27:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kunxl-gg](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.glfw.org/kunxl-gg/32/829_2.png) [@kunxl-gg](https://discourse.glfw.org/u/kunxl-gg)\
**Post date:** [November 11, 2023, 1:27pm UTC](https://discourse.glfw.org/t/ld-symbol-s-not-found-for-architecture-arm64-on-mac-m1/2488/1 "2023-11-11T13:27:15Z")

</div>

I am using a Mac M1. I have been trying to use GLFW using visual studio code for very long. These are the steps that I have used:

1. Downloaded the Source code from Github
2. Used cmake to make project files and finally make the binaries. The commands I used were

> cmake -DCMAKE\_OSX\_ARCHITECTURES=arm64 …/  
> make && sudo make install

This has generated the include and src folder in usr/local/ for glfw and I am able to use the library in vscode and get the intellisense. Only If I try to compile the code, I get an error.

Currently my folder structure for glfw looks like this. I don’t have the .dylib file which I had previously when I had installed the pre-compiled binaries

├── include  
│ └── GLFW  
│ ├── glfw3.h  
│ └── glfw3native.h  
└── lib  
├── cmake  
│ └── glfw3  
│ ├── glfw3Config.cmake  
│ ├── glfw3ConfigVersion.cmake  
│ ├── glfw3Targets-noconfig.cmake  
│ └── glfw3Targets.cmake  
├── libglfw3.a  
└── pkgconfig  
└── glfw3.pc

I have even tried to use the pre-compiled binaries but I got the same error. Please can someone give a blog/doc for me to read about how can setup GLFW on my system. I have almost tried every possible solution.

If it has worked for someone, please tell me how did you do it. I am pasting the exact error screenshot here.

 ![Screenshot 2023-11-11 at 6.56.41 PM](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/838fd0375f30001369e4b7bbd50b6b3c9c31bacb.jpeg)

---

<div class="post-metadata">

**Author:** ![dougbinks](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.glfw.org/dougbinks/32/39_2.png) [@dougbinks](https://discourse.glfw.org/u/dougbinks)\
**Post date:** [November 11, 2023, 1:46pm UTC](https://discourse.glfw.org/t/ld-symbol-s-not-found-for-architecture-arm64-on-mac-m1/2488/2 "2023-11-11T13:46:46Z")

</div>

I don’t have enough time to read through the image, but could you first try this:

> **[GitHub - juliettef/GLFW-CMake-starter: Use CMake to create a project with GLFW...](https://github.com/juliettef/GLFW-CMake-starter)**
>
> Use CMake to create a project with GLFW - Multi-platform Windows, Linux and MacOS. - GitHub - juliettef/GLFW-CMake-starter: Use CMake to create a project with GLFW - Multi-platform Windows, Linux a...

This should work on an M1 Mac, though I don’t have one to test with.
