hushaojie04 / libgdx

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

Build & Compile for Mac Snow Leopard 10.6.5 64bit #91

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This is my Mac
Darwin MacBook-Pro.local 10.5.0 Darwin Kernel Version 10.5.0: Fri Nov  5 
23:20:39 PDT 2010; root:xnu-1504.9.17~1/RELEASE_I386 i386

The goal is to make the ant script can build universal Mac dynamic library: 
libgdx.dylib & libgdx-64.dylib. (Both are universal).

Two new build files are added to do compile & link. 

I tested it on my Mac and it works fine. The resulting libgdx.dylib can support 
all test cases except those related with Shaders. I think it may be a bug in 
other places.

Original issue reported on code.google.com by to.wan...@gmail.com on 7 Jan 2011 at 4:22

Attachments:

GoogleCodeExporter commented 9 years ago
thanks this is awesome. the inly problem is i can't actually compile all this 
on our current setup. would you be interested in becoming the maintainer of tue 
mac port? it would just involve rebuilding the mac natives and commiting them 
to svn so the ci server can pick them up. you'd get svn access of course. drop 
me a mail at contact at badlogicgames dot com

Original comment by badlogicgames on 7 Jan 2011 at 4:27

GoogleCodeExporter commented 9 years ago
Hm, you seem to have enabled mpg123 in the patch as well and added a new native 
method. i'm afraid i can't include that change into mainline at the moment. 
Statically linking to mpg123 is probhibited since it is LGPL licensed. 

Original comment by badlogicgames on 7 Jan 2011 at 4:40

GoogleCodeExporter commented 9 years ago
ok, one more update. the mac mini i compile and test this on has the following 
config

Darwin mini.local 10.3.0 Darwin Kernel Version 10.3.0, 
xnu-1504.3.12~1/RELEASE_I386 i386

I'm now building with "-arch ppc -arch i386 -arch x86_64" which should produce 
a universal binary from what i understood. gdx-natives.jar as well as the 
gdx/mac/libgdx.dylib are updated. Could you test this on your 64-bit 10.6 
machine?

Original comment by badlogicgames on 7 Jan 2011 at 5:04

GoogleCodeExporter commented 9 years ago
Final note: the "bug" with shader related tests are most likely the precision 
modifiers. The tests should throw exceptions with shader compiler error 
messages. I fixed all this and tested it on a machine i could reproduce the 
problem. 

Original comment by badlogicgames on 7 Jan 2011 at 5:32

GoogleCodeExporter commented 9 years ago
It's my honor to join such a great project and can contribute my little 
strength to it.  I'm very happy to be on board and I will not only maintain the 
Mac port but also contribute other codes to it. Thanks very much!

For the mpg123, my plan is to make it capable of playing packaged mp3 in APK 
file so that it can replace android native SoundPool. It will provide better 
performance that it. I don't notice its license type is LGPL. Sadly we can't 
modify and link it in this project.

I updated the source tree and test the new universal libgdx.dylib on my Mac. It 
works fine except two test cases. I attached the log here. For the "-arch ppt", 
I'm sorry I forgot those Mac users. Now it's really universal.

Original comment by to.wan...@gmail.com on 8 Jan 2011 at 4:09

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by badlogicgames on 9 Jan 2011 at 2:58