back soft

مطالب مرتبط با «create android native service» در back soft | نویسنده: استخدام کار

Create native android activity via command line only (makefile)

Vote count: 0 Creating a native activity in android: via vim & Makefile only no use of gradle, ant, maven, android.mk and all that other stuff I already created a (java-native) android apk via makefile that works well on my Samsung S7. When I try to run the app, it crashes. My gut feeling says I haven't compiled/linked the android_native_app_glue.c --> libandroid_native_app_glue.a with main.cpp --> libnative-activity.so properly. It works fine with Google's pre-compiled armeabi-v7a libnative-activity.so I create the static app-glue first as: aarch64-linux-android-gcc -march=armv8-a -c android_native_app_glue.c -o native_app_glue.o aarch64-linux-android-ar rcs libandroid_native_app_glue.a native_app_glue.o Then I compile and link main.cpp with: aarch64-linux-android-c++ -march=armv8-a -std=c++11 -fPIC -c main.cpp -o main.o aarch64-linux-android-c++ -shared -llog -landroid -lEGL -lGLESv1_CM -lnative_app_glue main.o -o libnative-activity.a 08-28 14:41:19.019 3089...

ادامه مطلب