After alias nme
sudo haxelib run nme setup
Got this error:
Called from native/media/SoundChannel.hx line 138
sudo haxelib run nme setup
Got this 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 to fixed it.
sudo haxelib run nme rebuild mac
All steps:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# @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 |
[ref]
沒有留言:
張貼留言