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

update README.md for building on OSX #80

Merged
merged 3 commits into from
Jun 9, 2017
Merged

Conversation

timwr
Copy link
Contributor

@timwr timwr commented May 23, 2017

This should work on a fresh install of OSX.
Let me know if you see this error:

Configuring mettle for x86_64-apple-darwin
configure: WARNING: unrecognized options: --disable-shared
configure: error: cannot find install-sh, install.sh, or shtool in "/Users/user/dev/git/mettle/mettle" "/Users/user/dev/git/mettle/mettle/.." "/Users/user/dev/git/mettle/mettle/../.."
make: *** [/Users/user/dev/git/mettle/build/x86_64-apple-darwin/mettle/Makefile] Error 1

@tkmru
Copy link

tkmru commented May 24, 2017

make TARGET=x86_64-apple-darwin is no problem on El Capitan.

@timwr
Copy link
Contributor Author

timwr commented May 26, 2017

make TARGET=i386-apple-darwin should work now

@sempervictus
Copy link

So on OSX 10.9 (last version you can install on the core2duo iMacs), -framework CoreImage needs to be -framework QuartzCore, still fighting all sorts of weird xcode/compiler problems. It seems to hate not using clang and its native pieces, all sorts of weirdness about which gcc, which ld, shtool, etc. Good god OSX is a crazy mess :).

For reference:

ProductName:	Mac OS X
ProductVersion:	10.9.5
BuildVersion:	13F1808

and

diff --git a/make/Makefile.common b/make/Makefile.common
index e3da2dc..9c3ff9e 100644
--- a/make/Makefile.common
+++ b/make/Makefile.common
@@ -16,7 +16,7 @@ DEPS=$(ROOT)/deps
 OUTPUTDIR=$(BUILD)/data
 
 ifneq (,$(findstring darwin,$(TARGET)))
-    LDFLAGS:=$(LDFLAGS) -framework Foundation -framework AVFoundation -framework CoreMedia -framework CoreImage -framework CoreVideo
+    LDFLAGS:=$(LDFLAGS) -framework Foundation -framework AVFoundation -framework CoreMedia -framework QuartzCore -framework CoreVideo
     ifneq (,$(findstring iphone,$(TARGET)))
         export SDKROOT=$(shell xcrun --sdk iphoneos --show-sdk-path)
         LDFLAGS:=$(LDFLAGS) -framework UIKit -framework CoreGraphics

@busterb busterb merged commit 720f8c3 into rapid7:master Jun 9, 2017
busterb pushed a commit that referenced this pull request Jun 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants