Skip to content

Instantly share code, notes, and snippets.

@wwwins
Last active December 14, 2015 20:08
Show Gist options
  • Save wwwins/5141435 to your computer and use it in GitHub Desktop.
Save wwwins/5141435 to your computer and use it in GitHub Desktop.
Upgrade NME and Haxe3.
# @author flashisobar http://flashisobar.blogspot.com/
# first install haxe3
# http://haxe.org/file/haxe-3.0.0-rc-osx.tar.gz
# backup haxe2
sudo mv /usr/lib/haxe /usr/lib/haxe.bak
unzip haxe-3.0.0-rc-osx.tar.gz
sudo mv haxe-3.0.0-rc-osx /usr/lib/haxe
mkdir /usr/lib/haxe/lib
chmod 777 /usr/lib/haxe/lib
ln -s /usr/bin/haxe /usr/lib/haxe/haxe
ln -s /usr/bin/haxelib /usr/lib/haxe/haxelib
ln -s /usr/bin/haxedoc /usr/lib/haxe/haxedoc
# install neko 2.0.0
# http://nekovm.org/_media/neko-2.0.0-osx.tar.gz
# backup neko
sudo mv /usr/lib/neko /usr/lib/neko.bak
unzip neko-2.0.0-osx.tar.gz
sudo mv neko-2.0.0-osx /usr/lib/neko
cp libneko.dylib /usr/lib
ln -s /usr/bin/neko /usr/lib/neko/neko
ln -s /usr/bin/nekoc /usr/lib/neko/nekoc
ln -s /usr/bin/nekotools /usr/lib/neko/nekotools
git clone git://github.com/haxenme/NME.git
haxelib dev nme /Users/user_name/github/NME
haxelib install format
haxelib install hxcpp
haxelib install svg
haxelib install swf
haxelib install xfl
# install nmedev library
haxelib git nmedev https://github.com/haxenme/nmedev.git
# alias nme
sudo haxelib run nme setup
############################
# error:
# Called from native/media/SoundChannel.hx line 138
# Called from native/Loader.hx line 63
# Called from C:\Program Files (x86)\HaxeFoundation\haxe/std/neko/Lib.hx line 30
# Uncaught exception - load.c(357) : Primitive not found : /usr/lib/haxe/lib/nmedev/3,6,0//ndll/Mac/nme@nme_sound_channel_set_position(2)
############################
# you need to rebuild native library for Mac.
sudo haxelib run nme rebuild mac
# try again.
sudo haxelib run nme setup
# try to rebuild tools...
nme rebuild tools, clean, ios
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment