Forked from vaiorabbit/Building libglfw.dylib on macOS (Apple Silicon)
Created
August 2, 2017 20:18
-
-
Save mattpetters/6ad05955b58e64fc050cef43f4eb13b4 to your computer and use it in GitHub Desktop.
Building libglfw.dylib on Mac OS X
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ wget http://downloads.sourceforge.net/project/glfw/glfw/3.0.1/glfw-3.0.1.zip | |
$ unzip glfw-3.0.1.zip | |
$ cd glfw-3.0.1/ | |
$ mkdir build | |
$ cd build | |
$ export MACOSX_DEPLOYMENT_TARGET=10.8 | |
$ cmake -D GLFW_NATIVE_API=1 -D CMAKE_OSX_ARCHITECTURES="i386;x86_64" -D BUILD_SHARED_LIBS=ON -D CMAKE_C_COMPILER=clang ../ | |
$ make | |
$ ls -l src/libglfw* | |
$ ls -l src/libglfw* | |
-rwxr-xr-x 1 foo staff 222008 8 11 22:29 src/libglfw.3.0.dylib | |
lrwxr-xr-x 1 foo staff 17 8 11 22:29 src/libglfw.3.dylib -> libglfw.3.0.dylib | |
lrwxr-xr-x 1 foo staff 15 8 11 22:29 src/libglfw.dylib -> libglfw.3.dylib |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment