nightkidfifa / poly2tri

Automatically exported from code.google.com/p/poly2tri
Other
0 stars 0 forks source link

Compilation fails on Mac OS X 10.7 #50

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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 commented 8 years ago

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

GoogleCodeExporter commented 8 years ago
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 commented 8 years ago
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 commented 8 years ago
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 commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
-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