2013-05-16 5 views
0

nme 프로젝트를 안드로이드 용으로 컴파일하려고하는데, 지금까지는 불가능했습니다. 오류 메시지는 다음과 같습니다.nme, haxe, flashdevelop로 내 프로젝트의 안드로이드 버전을 만들 수 없습니다.

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 : \ 개발 \ 아파치 개미

JAVA_HOME 값 : C : \ 프로그램 파일 \ 자바 \ 마침내

과 jdk1.7.0_11 환경 변수를 확인했습니다. 여기 있습니다. 사용자 변수

HAXEPATH : C : \ 모션 트윈 \ haxe

\ NEKO_INSTPATH ​​: C : \ 모션 트윈 \ 네코

경로 :; % HAXEPATH의 %; %의 NEKO_INSTPATH ​​%의

시스템 변수

경로 : WINDOWS \ system32를; % JAVA_HOME % \ BIN

I 첨가; C : \ 모션 트윈 \ haxe \; C : succes에없는 시스템 경로 변수 \ 모션 트윈 \의 네코. nme 3.5.5, haxe 2.10 및 flashdevelop 4.4.1을 사용하는 임. 이미 haxelib 업그레이드 명령을 사용 했으므로 업데이트되었습니다. 제가 누락 된 부분을 말씀해 주시겠습니까?

답변

1

android 프레임 워크를 다시 설정하십시오.

hxcpp 설정 파일을 삭제하십시오.

지금

nme setup android 

그런 다음 대상 목록 상자에서 안드로이드를 선택 명령을 실행하고 그것을 작동합니다.

+0

미안하지만, 그렇게하기 위해 어떻게해야합니까 ?? –

0

안녕하세요. 나는 그 문제를 발견했다! flashdevelop가 C : \ Users \ Andrés \ Documents \ AndroidNDK/sources/cxx-stl/gnu-libstdC++/4.4.3/include에있는 haxe 파일을 찾고있는 것을 보았습니다. 그래서 나는 그 방향으로 놀랐습니다. 4.4 .3 폴더가 없어서 C : \ Users \ Andrés \ Documents \ AndroidNDK/sources/cxx-stl/gnu-libstdC++ /의 모든 파일을 4.4.3 폴더에 넣고 완료했습니다. 이것이 누군가를 도울 수 있기를 바랍니다.