➜ jni /Users/chrisfosterelli/Library/Android/sdk/ndk-bundle/ndk-build
[arm64-v8a] Compile++ : wrapper <= wrapper.cpp
In file included from /Users/chrisfosterelli/workspace/android/jni/wrapper.cpp:9:
In file included from ../prebuild/include/valhalla/meili/universal_cost.h:7:
In file included from ../prebuild/include/valhalla/sif/dynamiccost.h:4:
In file included from ../prebuild/include/valhalla/baldr/directededge.h:5:
../prebuild/include/valhalla/baldr/graphconstants.h:432:11: warning: 21 enumeration values not handled in switch: 'kRoad', 'kRamp', 'kTurnChannel'... [-Wswitch]
switch (use) {
^
1 warning generated.
[arm64-v8a] SharedLibrary : libwrapper.so
/Users/chrisfosterelli/Library/Android/sdk/ndk-bundle/toolchains/aarch64-linux-android-4.9/prebuilt/darwin-x86_64/lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin/ld: /Users/chrisfosterelli/workspace/android/jni/../prebuild/libvalhalla_meili.a(libvalhalla_meili_la-map_matcher_factory.o): Relocations in generic ELF (EM: 62)
[...above message repeated many times...]
/Users/chrisfosterelli/workspace/android/jni/../prebuild/libvalhalla_meili.a: error adding symbols: File in wrong formatclang++: error: linker command failed with exit code 1 (use -v to see invocation)make: *** [/Users/chrisfosterelli/workspace/android/obj/local/arm64-v8a/libwrapper.so] Error 1➜ jni ls /Users/chrisfosterelli/Library/Android/sdk/ndk-bundle/
root@eacbdb1c0e46:/meili/meili2/newtest# ar x libvalhalla_meili.a
root@eacbdb1c0e46:/meili/meili2/newtest# file libvalhalla_meili_la-map_matcher_factory.o
libvalhalla_meili_la-map_matcher_factory.o: ELF 64-bit LSB relocatable, ARM aarch64, version 1 (SYSV), not stripped
root@eacbdb1c0e46:/meili/meili2/newtest#
APP_STL := c++_staticAPP_CPPFLAGS := -frtti -std=gnu++11 -D_GLIBCXX_USE_C99APP_CPPFLAGS += -fexceptionsNDK_TOOLCHAIN_VERSION := clangAPP_LDFLAGS := -latomicAPP_PLATFORM := android-21APP_ABI := arm64-v8a
LOCAL_PATH := $(call my-dir)
# static library infoinclude $(CLEAR_VARS)LOCAL_MODULE := libvalhalla_meiliLOCAL_SRC_FILES := ../prebuild/libvalhalla_meili.aLOCAL_EXPORT_C_INCLUDES := ../prebuild/includeinclude $(PREBUILT_STATIC_LIBRARY)
# wrapper infoinclude $(CLEAR_VARS)LOCAL_C_INCLUDES += ../prebuild/includeLOCAL_MODULE := wrapperLOCAL_SRC_FILES := wrapper.cppLOCAL_STATIC_LIBRARIES := libvalhalla_meiliinclude $(BUILD_SHARED_LIBRARY)
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk+unsubscribe@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
Visit this group at https://groups.google.com/group/android-ndk.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/17c7e27d-e77d-4b76-b748-0f00a7a863f1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
root@eacbdb1c0e46:/meili/meili2/newtest# nm -C libvalhalla_meili.a | grep "\.o"
libvalhalla_meili_la-universal_cost.o:
libvalhalla_meili_la-routing.o:
libvalhalla_meili_la-candidate_search.o:
libvalhalla_meili_la-map_matching.o:
libvalhalla_meili_la-geojson_reader.o:
libvalhalla_meili_la-map_matcher.o:
libvalhalla_meili_la-map_matcher_factory.o:
libvalhalla_meili_la-match_route.o:
libvalhalla_meili_la-traffic_segment_matcher.o:
root@eacbdb1c0e46:/meili/meili2/newtest#
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk+unsubscribe@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
Visit this group at https://groups.google.com/group/android-ndk.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/e62a2852-1a00-4e3b-b7e3-1b541f53391e%40googlegroups.com.