Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation: Describe How to Build macOS Universal Binary #304

Open
wants to merge 5 commits into
base: 2.4
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 8 additions & 11 deletions README.MacOSX
Original file line number Diff line number Diff line change
@@ -67,21 +67,18 @@ library and header search paths in this project file appropriately.

Download the latest version of GLEW from
https://github.com/nigels-com/glew/releases. Extract the package, and then
build it with the following commands (WARNING: this will remove all shared
libraries for GLEW under /usr/local, even older versions you may have
installed; this is necessary because it appears there is currently no way to
configure GLEW to build without shared libraries):

$ export MACOSX_DEPLOYMENT_TARGET=10.7
$ export GLEW_DEST=/usr/local
$ make glew.lib
$ sudo make install
$ sudo rm /usr/local/lib/libGLEW*.dylib
build it with the following commands:

$ export MACOSX_DEPLOYMENT_TARGET=10.9 GLEW_DEST=/usr/local
$ make SYSTEM=darwin-universal glew.lib.static
$ sudo make install.include
$ sudo mkdir -p /usr/local/lib
$ sudo cp lib/libGLEW.a /usr/local/lib/

Download the latest version of c-ares from http://c-ares.haxx.se.
Extract the package, and then build it with the following commands:

$ export MACOSX_DEPLOYMENT_TARGET=10.7
$ export MACOSX_DEPLOYMENT_TARGET=10.9 CFLAGS='-arch x86_64 -arch arm64'
$ ./configure --disable-shared
$ make
$ sudo make install