2013-05-16 72 views
0

我試圖編譯我的nme項目爲android,但直到這一刻它已經不可能爲我。我得到的錯誤信息是用nme,haxe和flashdevelop構建我的項目的android版本

Running process: C:\Program Files (x86)\FlashDevelop\Tools\fdbuild\fdbuild.exe "C:\Users\Andrés\Documents\myOP\project.hxproj" -ipc cf7bbe3a-8e0c-47e5-aac3-4d442ae964f2 -version "2.10" -compiler "C:\Motion-Twin\Haxe" -notrace -library "C:\Program Files (x86)\FlashDevelop\Library" -target "android" Building project haxelib run nme build "C:\Users\Andrés\Documents\myOP\project.nmml" android haxelib run hxcpp Build.xml haxe -Dactuate -Dandroid -Dcpp -Dfullscreen -Dhaxe_208 -Dhaxe_209 -Dhaxe_210 -Dmobile -Dnme -Dnme_install_tool -Dsys -Dtrue Creating obj/android/pch/haxe/hxcpp.h.gch... arm-linux-androideabi-g++ -Iinclude --sysroot=C:\Users\Andrés\Documents\AndroidNDK/platforms/android-5/arch-arm -IC:\Users\Andrés\Documents\AndroidNDK/sources/cxx-stl/gnu-libstdc++/4.4.3/include -IC:\Users\Andrés\Documents\AndroidNDK/sources/cxx-stl/gnu-libstdc++/4.4.3/libs/armeabi/include -DHXCPP_VISIT_ALLOCS -Dhaxe_210 -IC:\Motion-Twin\Haxe\lib\hxcpp\3,0,1//include -Iinclude -fpic -fvisibility=hidden -ffunction-sections -funwind-tables -fstack-protector -fno-short-enums -D__ARM_ARCH_5 -D__ARM_ARCH_5T__ -D__ARM_ARCH_5E__ -D__ARM_ARCH_5TE__ -D_LINUX_STDDEF_H -Wno-psabi -march=armv5te -mtune=xscale -msoft-float -fomit-frame-pointer -fexceptions -fno-strict-aliasing -finline-limit=10000 -DANDROID -Wa,--noexecstack -O2 -DNDEBUG -c -frtti -o obj/android/__pch/haxe/hxcpp.h.gch C:\Motion-Twin\Haxe\lib\hxcpp\3,0,1//include/hxcpp.h C:\Motion-Twin\Haxe\lib\hxcpp\3,0,1//include/hxcpp.h:14:20: error: typeinfo: No such file or directory In file included from C:\Motion-Twin\Haxe\lib\hxcpp\3,0,1//include/hxcpp.h:193: C:\Motion-Twin\Haxe\lib\hxcpp\3,0,1//include/Array.h:205:21: error: algorithm: No such file or directory In file included from C:\Motion-Twin\Haxe\lib\hxcpp\3,0,1//include/hxcpp.h:185: C:\Motion-Twin\Haxe\lib\hxcpp\3,0,1//include/hx/Object.h: In member function 'void hx::ObjectPtr::CastPtr(hx::Object*)': C:\Motion-Twin\Haxe\lib\hxcpp\3,0,1//include/hx/Object.h:143: error: must #include before using typeid In file included from C:\Motion-Twin\Haxe\lib\hxcpp\3,0,1//include/hxcpp.h:193: C:\Motion-Twin\Haxe\lib\hxcpp\3,0,1//include/Array.h: In member function 'void Array_obj::sort(Dynamic)': C:\Motion-Twin\Haxe\lib\hxcpp\3,0,1//include/Array.h:401: error: 'stable_sort' is not a member of 'std' In file included from C:\Motion-Twin\Haxe\lib\hxcpp\3,0,1//include/hxcpp.h:194: C:\Motion-Twin\Haxe\lib\hxcpp\3,0,1//include/Class.h: In function 'bool hx::TCanCast(hx::Object*)': C:\Motion-Twin\Haxe\lib\hxcpp\3,0,1//include/Class.h:154: error: must

include before using typeid Called from ? line 1 Called from BuildTool.hx line 1529 Called from BuildTool.hx line 673 Called

from BuildTool.hx line 708 Called from BuildTool.hx line 842 Called from BuildTool.hx line 885 Called from BuildTool.hx line 194 Uncaught exception - Error creating pch: 1 - build cancelled Error : Build failed Build halted with errors (haxelib.exe). Done(1)

沒問題。我已經使用了nme setup android命令。我的.hxcpp_config.xml文件:

ANDROID_SDK:C:\用戶\安德烈斯\文件\蝕+機器人\ SDK

ANDROID_SETUP值=真

ANDROID_NDK_ROOT:C:\用戶\安德烈斯\文件\ AndroidNDK

ANT_HOME:C:\開發\ Apache Ant的

JAVA_HOME值:C:\ Program Files文件\的Java \ jdk1.7.0_11

最後我驗證了我的環境變量。他們來了。用戶變量

HAXEPATH:C:\的Motion-雙牀\ haXe的\

NEKO_INSTPATH:C:\的Motion-雙牀\ネ

路徑:;%HAXEPATH%;%NEKO_INSTPATH%

系統變量

路徑:窗口\ system32;%JAVA_HOME%\ bin中

我添加; C:\的Motion-雙牀\ haXe的\; C:\的Motion-雙牀\ネ到系統路徑變量,而不更迭。 我使用nme 3.5.5,haxe 2.10和flashdevelop 4.4.1。我已經使用haxelib升級命令,所以我更新了。 你能告訴我我錯過了什麼嗎?

回答

1

嘗試重新配置android框架。

刪除hxcpp配置文件。

現在運行命令

nme setup android 

然後從列表框中目標選擇Android和它應該工作。

+0

對不起,但我該怎麼做才能做到這一點? –

0

嘿,只是爲了讓你知道。我發現了問題!你會看到flashdevelop正在尋找C:\ Users \Andrés\ Documents \ AndroidNDK/sources/cxx-stl/gnu-libstdC++/4.4.3/include中的haxe文件,所以我朝這個方向發展, .3文件夾丟失了,所以,我創建了它,並將所有文件格式爲C:\ Users \Andrés\ Documents \ AndroidNDK/sources/cxx-stl/gnu-libstdC++ /放入4.4.3文件夾並完成。希望這可以幫助某人

相關問題