i'm trying compile pugixml library android ndk; says on website possible, download doesn't contain android makefile , haven't used ndk before (the docs don't help!)
i'm getting error:
/pugiconfig.o: file not recognized: file format not recognized collect2.exe: error: ld returned 1 exit status
i getting error because ndk couldn't find #include <iterator>
, i'm not sure i've correctly resolved this. tried following this stackoverflow q/a , ended error shown above.
my current android.mk looks this:
local_path := $(call my-dir) include $(clear_vars) local_module := webface local_cpp_extension := .hpp .cpp local_src_files := ../pugiconfig.hpp ../pugixml.hpp ../pugixml.cpp include $(build_shared_library)
and current application.mk looks this:
app_abi := app_stl := stlport_shared
i'd suggest removing pugixml.cpp local_src_files.
also, note if have issues can compile pugixml_no_stl (by adding -dpugixml_no_stl cxxflags).
Comments
Post a Comment