I got error when i were testing my project on android.(I am a new HaxeFlixel developer.)



  • Hi! I got error like that:

    "C:/HaxeToolkit/haxe/lib/hxcpp/3,3,49/include/hxcpp.h:19:23: fatal error: typeinfo: No such file or directory
    #include <typeinfo>
    compilation terminated.
    Error: error running arm-linux-androideabi-g++ -Iinclude --sysroot=C:\Users\FEYYAZ\Desktop\Feyyaz\cocosfiles\newfile\AndroidNDK/platforms/android-9/arch-arm -IC:\Users\FEYYAZ\Desktop\Feyyaz\cocosfiles\newfile\AndroidNDK/sources/cxx-stl/gnu-libstdc++/4.9/include -IC:\Users\FEYYAZ\Desktop\Feyyaz\cocosfiles\newfile\AndroidNDK/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi/include -DHXCPP_VISIT_ALLOCS -DHXCPP_API_LEVEL=321 -IC:/HaxeToolkit/haxe/lib/hxcpp/3,3,49/include -Iinclude -fpic -fvisibility=hidden -ffunction-sections -funwind-tables -fstack-protector -fno-short-enums "-D_LINUX_STDDEF_H " -Wno-psabi -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -fomit-frame-pointer -fexceptions -fno-strict-aliasing -finline-limit=10000 -DANDROID=ANDROID -DHX_ANDROID -DHXCPP_ANDROID_PLATFORM=9 -Wa,--noexecstack -O2 -DNDEBUG -c -Wno-invalid-offsetof -frtti -o "C:/Users/FEYYAZ/Documents/Haxe Projects/Pong/export/android/obj/obj/android-v7/__pch/haxe/hxcpp.h.gch" C:/HaxeToolkit/haxe/lib/hxcpp/3,3,49/include/hxcpp.h
    Build halted with errors."

    Sorry, error is so long. I did not understand.
    Thanks.

    Edit:I am a new developer on HaxeFlixel and it is my first testing :)



  • Have you tried running haxelib install hxcpp in the terminal?

    I'm not sure, but I would give it a try given this error : "C:/HaxeToolkit/haxe/lib/hxcpp/3,3,49/include/hxcpp.h:19:23: fatal error: typeinfo: No such file or directory

    It seems like that's what you're missing.

    http://old.haxe.org/doc/start/cpp



  • I already have install hxcpp but did not work. thanks for your help :)



  • I don't know the answers, but it might help someone else--can you post the results of running the command haxelib list?



  • Try this guide: http://www.openfl.org/learn/resources/advanced-setup/android/
    (HaxeFlixel uses OpenFl under the hood)



  • I tried that guide but did not change.

    Here haxelib list:

    • actuate: 1.8.6
    • androidhx: 0.1.0
    • basisAndroid: 0.1.0-alpha
    • box2d: 1.2.3
    • extension-admob: 1.5.0
    • extension-android-support-v4: 1.0.0
    • extension-googleplayservices-lib: 1.1.0
    • flixel-addons: 2.0.0
    • flixel-demos: 2.1.0
    • flixel-templates: 2.0.1
    • flixel-tools: 1.1.3
    • flixel-ui: 2.0.0
    • hxcpp: 3.2.205 [3.3.49]
    • layout: 1.2.1
    • lime-samples: 2.6.0
    • lime: 2.9.1
    • nme: 5.6.4
    • openfl-samples: 3.3.1
    • openfl: 3.6.1
    • swf: 2.2.0


  • BTW, you don't have flixel installed, according to the list.



  • What should i do ?
    But flixel-addons, flixel-demons, flixel-templates, flixel-tools, flixel-ui are installed.



  • I installed flixel but didn't change anything.

    Errors:
    C:/Users/FEYYAZ/openfl/hxcpp/3,3,49/include/hxcpp.h:19:23: fatal error: typeinfo: No such file or directory
    #include <typeinfo>
    ^
    compilation terminated.
    Error: error running arm-linux-androideabi-g++ -Iinclude --sysroot=C:\Development\AndroidNDK/platforms/android-9/arch-arm -IC:\Development\AndroidNDK/sources/cxx-stl/gnu-libstdc++/4.9/include -IC:\Development\AndroidNDK/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi/include -DHXCPP_VISIT_ALLOCS -DHXCPP_API_LEVEL=321 -IC:/Users/FEYYAZ/openfl/hxcpp/3,3,49/include -Iinclude -fpic -fvisibility=hidden -ffunction-sections -funwind-tables -fstack-protector -fno-short-enums "-D_LINUX_STDDEF_H " -Wno-psabi -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -fomit-frame-pointer -fexceptions -fno-strict-aliasing -finline-limit=10000 -DANDROID=ANDROID -DHX_ANDROID -DHXCPP_ANDROID_PLATFORM=9 -Wa,--noexecstack -O2 -DNDEBUG -c -Wno-invalid-offsetof -frtti -o "C:/Users/FEYYAZ/Documents/Haxe Projects/Pong/export/android/obj/obj/android-v7/__pch/haxe/hxcpp.h.gch" C:/Users/FEYYAZ/openfl/hxcpp/3,3,49/include/hxcpp.h
    Build halted with errors.

    Error log :
    *hxcpp.h

    • line: 19
    • description: 23:fatal error: typeinfo: No such file or directory
    • file: hxcpp.h
    • path: C:\Users\Feyyaz\openfl\hxcpp\3,3,49\include


  • The file 'typeinfo' should come with the C++ compiler. I have several of them in NDK folder, for example, here: D:\build\androidndk-lime\sources\cxx-stl\gnu-libstdc++\4.6\include


Log in to reply
 

Looks like your connection to HaxeFlixel was lost, please wait while we try to reconnect.