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

Compilation fails on Mac OS X 10.7 #50

Open
GoogleCodeExporter opened this issue Oct 24, 2015 · 6 comments
Open

Compilation fails on Mac OS X 10.7 #50

GoogleCodeExporter opened this issue Oct 24, 2015 · 6 comments

Comments

@GoogleCodeExporter
Copy link

I've tried to compile poly2tri on OS X 10.7 Lion, but it with this error 
message:

ld: library not found for -lOpenGL

I've attached a patch which fixes the problem by using the OpenGL and Cocoa 
frameworks.

Original issue reported on code.google.com by jha...@gmail.com on 27 May 2012 at 2:14

Attachments:

@GoogleCodeExporter
Copy link
Author

Original comment by mason.gr...@gmail.com on 9 Jul 2012 at 10:39

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

I compiled and installed glfw 2.7.6, which adds support for joysticks. I had to 
to also add the IOKit framework to the list of frameworks to link against. So 
the last hunk in the diff looks like this for me:

+  if sys.platform == 'darwin':
+    conf.env.FRAMEWORK = ['OpenGL', 'Cocoa', 'IOKit']

Thanks for a great library!

Original comment by ovi...@gmail.com on 20 Sep 2012 at 9:33

@GoogleCodeExporter
Copy link
Author

How do you apply the patch? 

Also when I try to include the poly2tri.h I get a semantic issue:

Use of undeclared identifier 'isinf'


Original comment by bernardo...@gmail.com on 25 Feb 2014 at 8:49

@GoogleCodeExporter
Copy link
Author

Try

patch -p2 < framework.patch

(Change the 2 to 1 or 0 if this doesn't work, I always forget what to use)

Original comment by jha...@gmail.com on 25 Feb 2014 at 8:59

@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

-p1 worked for me, I also had to add the 'IOKit' in the wafscript to make it 
work.

Thanks!

Original comment by bernardo...@gmail.com on 25 Feb 2014 at 9:15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant