could not compile to mac ?!

hi all, I was trying to get my hands on Haxe and NME. While I can compile to flash and iphone, it could not compile to MAC !? Last time(yesterday I was able to compile to MAC) but something is going wrong here on my part I think. Could not fix it after …

Viewing 1 to 6 (6 Total)
could not compile to mac ?!

saumya

saumya
Total Posts: 56
Joined: November 19, 2011

hi all,
I was trying to get my hands on Haxe and NME.
While I can compile to flash and iphone, it could not compile to MAC !? Last time(yesterday I was able to compile to MAC) but something is going wrong here on my part I think. Could not fix it after creating 5 different projects also, its kind of same error. I am happy to see it compiles to iphone and I can run in iphone simulator from XCode.

Any suggestion would be a nice help.

I am on MAC, using HAXE 2.07, NME 3.0.1
Iam doing : haxelib run nme test study_02.nmml mac

thanks

Tags:
Posted on November 20, 2011 at 4:00 AM

saumya

saumya
Total Posts: 56
Joined: November 19, 2011

Re: could not compile to mac ?!

hi all,
I found that it runs if I compile to neko !
haxelib run nme test study02.nmml neko

But compiling to cpp or mac is not working!

It does not compile to html5!
haxelib run nme test study02.nmml html5

Any suggestion would be a nice help.

Posted on November 20, 2011 at 4:29 AM

singmajesty

singmajesty
Total Posts: 2140
Joined: August 25, 2011

Re: could not compile to mac ?!

To compile for the Mac, unless you have the 10.5 SDK installed, you probably need <set name="MAC_USE_CURRENT_SDK" value="1" /> in your ~/.hxcpp_config.xml file.

NME 3.0.1 did not support HTML5. You might try using the RC2 installer to update to Haxe 2.08, NME 3.1.0 RC2 and also have Jeash installed (which is required for HTML5 output)

Posted on November 20, 2011 at 10:11 AM

saumya

saumya
Total Posts: 56
Joined: November 19, 2011

Re: could not compile to mac ?!

hey singmajesty,
thanks for the reply.
I am running on Mac 10.6.8. I hope that should be fine for it.

Thanks again for the HTML5 info.
I am running on jeash 0.8.6 and yes, nme 3.0.1. Is the RC install is the same process as normal update or there is any particular settings.

If my app works fine with NME, is it safe to distribute or I have to tell that the user need to install NME before running my app?

thanks a lot.

Posted on November 20, 2011 at 11:20 AM

singmajesty

singmajesty
Total Posts: 2140
Joined: August 25, 2011

Re: could not compile to mac ?!

The version of NME you have is mostly compatible with Jeash. The NME command-line tools won't be able to publish for HTML5 automatically, but it can be done by hand (though it does require some conditional code, with that version)

If you want to try the new version, you could download the ZIP and use the "haxelib test" command to use it. I think you would be better off with haxe 2.08, though, so using the automated install may be the easiest, because it can update everything all at once

Posted on November 20, 2011 at 11:23 AM

saumya

saumya
Total Posts: 56
Joined: November 19, 2011

Re: could not compile to mac ?!

thanks singmajesty for the quick reply.
I will wait till final release an update it automatically, while trying to publish it manual now.

So the cpp version should compile?
The question regarding NME version of mac app, is it ok to distribute as a MAC app or I have to say that the user must have NME to run my App?

thanks

Posted on November 20, 2011 at 11:37 AM