{ "id": "176007", "key": "AC-6671", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": null, "resolutiondate": null, "created": "2021-01-30T22:53:06.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2021-01-30T23:43:58.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "Hi guys,\r\n\r\nI'm crazy sinces few days with a problem i can't understand, i really need help.\r\n\r\nI have two computers : One MacBook and one Windows 10 PC,\r\nI started to code my app on the MacBook, and since more than one year i use the PC.\r\n\r\nMy app includes a native Android module, which was working well till now. Everything started to change when i wanted to update the Titanium SDK.\r\n\r\nSDK 9.0.0.GA : \r\n- The module still compiles fine on the macBook\r\n- The module don't compile on the PC due tot C++ errors (*edit : i posted a comment below with the error logs*)\r\n\r\nSDK 9.3.1.GA :\r\n- The module compile fine on the PC, but when i look closely at the generated files on the .aar, i see that the .so library file generated for armeabi-v7a have not the good size, and it result that the app fails with an exception on armeabi-v7a devices (tested). The app works well on other architectures devices.\r\n- The module compile fine on the MacBook and all the .so have the correct size, the app is running on armeabi devices !\r\n\r\nWhy the hell appcelerator is not building the \".so\" file in the \"jni\" folder correctly for armeabi-v7a architecture ? And why the hell the module compiles fine and runs fine if compiled with the macBook with 9.0.0.GA / 9.3.1.GA and not in the PC ?\r\n\r\nThank you in advance if you can help me !\r\nRegards", "attachment": [], "flagged": false, "summary": "Android module dont work on armeabi-v7a", "creator": { "name": "libanez", "key": "libanez", "displayName": "libanez", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "libanez", "key": "libanez", "displayName": "libanez", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK 9.3.1.GA", "comment": { "comments": [ { "id": "458120", "author": { "name": "libanez", "key": "libanez", "displayName": "libanez", "active": true, "timeZone": "America/Los_Angeles" }, "body": "For more information, this is the error i get when i try to compile the app with 9.0.0.GA SDK on the windows 10 PC :\r\n\r\n{code:java}\r\n[ERROR] [GRADLE]\r\n[ERROR] [GRADLE] FAILURE: Build failed with an exception.\r\n[ERROR] [GRADLE]\r\n[ERROR] [GRADLE] * What went wrong:\r\n[ERROR] [GRADLE] Execution failed for task ':module:externalNativeBuildRelease'.\r\n[ERROR] [GRADLE] > Build command failed.\r\n[ERROR] [GRADLE] Error while executing process C:\\Users\\libanez\\AppData\\Local\\Android\\Sdk\\ndk\\android-ndk-r21e\\ndk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=C:\\SVN_files\\CLIENT_NEPTING\\branches\\DEV\\iziApp\\ucube_client\\appc\\allpos-lib-modules\\android\\build\\module\\src\\main\\jni\\Android.mk APP_ABI=armeabi-v7a NDK_ALL_ABIS=armeabi-v7a NDK_DEBUG=0 APP_PLATFORM=android-19 NDK_OUT=C:/SVN_files/CLIENT_NEPTING/branches/DEV/iziApp/ucube_client/appc/allpos-lib-modules/android/build/module/build/intermediates/ndkBuild/release/obj NDK_LIBS_OUT=C:\\SVN_files\\CLIENT_NEPTING\\branches\\DEV\\iziApp\\ucube_client\\appc\\allpos-lib-modules\\android\\build\\module\\build\\intermediates\\ndkBuild\\release\\lib APP_CPPFLAGS+=-std=c++11 APP_STL:=c++_shared -j8 C:/SVN_files/CLIENT_NEPTING/branches/DEV/iziApp/ucube_client/appc/allpos-lib-modules/android/build/module/build/intermediates/ndkBuild/release/obj/local/armeabi-v7a/libcom.nepting.allpos.lib.so}\r\n[ERROR] [GRADLE] Android NDK: WARNING:C:\\SVN_files\\CLIENT_NEPTING\\branches\\DEV\\iziApp\\ucube_client\\appc\\allpos-lib-modules\\android\\build\\module\\src\\main\\jni\\Android.mk:com.nepting.allpos.lib: non-system libraries in linker flags: -lkroll-v8\r\n[ERROR] [GRADLE] Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES\r\n[ERROR] [GRADLE] Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the\r\n[ERROR] [GRADLE] Android NDK: current module\r\n[ERROR] [GRADLE] [armeabi-v7a] Prebuilt : libc++_shared.so <= /sources/cxx-stl/llvm-libc++/libs/armeabi-v7a/\r\n[ERROR] [GRADLE] [armeabi-v7a] Compile++ thumb: com.nepting.allpos.lib <= TiModuleBootstrap.cpp\r\n[ERROR] [GRADLE] [armeabi-v7a] Compile++ thumb: com.nepting.allpos.lib <= com.nepting.mpos.lib.NeptingModule.cpp\r\n[ERROR] [GRADLE] [armeabi-v7a] SharedLibrary : libcom.nepting.allpos.lib.so\r\n[ERROR] [GRADLE]\r\n[ERROR] [GRADLE] C:/Users/libanez/AppData/Local/Android/Sdk/ndk/android-ndk-r21e/build//../toolchains/llvm/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\\ld: error: cannot open C:/SVN_files/CLIENT_NEPTING/branches/DEV/iziApp/ucube_client/appc/allpos-lib-modules/android/build/module/build/intermediates/ndkBuild/release/obj/local/armeabi-v7a/objs/com.nepting.allpos.lib/__/__/__/build/ti-generated/jni/com.nepting.mpos.lib.NeptingModule.o: No such file or directory\r\n[ERROR] [GRADLE] C:/SVN_files/CLIENT_NEPTING/branches/DEV/iziApp/ucube_client/appc/allpos-lib-modules/android/build/module/build/intermediates/ndkBuild/release/obj/local/armeabi-v7a/objs/com.nepting.allpos.lib/__/__/__/build/ti-generated/jni/TiModuleBootstrap.o:TiModuleBootstrap.cpp:titanium::bindings::TiModuleBindings::lookupGeneratedInit(char const*, unsigned int)::binds: error: undefined reference to 'com::nepting::allpos::lib::NeptingModule::bindProxy(v8::Local, v8::Local)'\r\n[ERROR] [GRADLE] C:/SVN_files/CLIENT_NEPTING/branches/DEV/iziApp/ucube_client/appc/allpos-lib-modules/android/build/module/build/intermediates/ndkBuild/release/obj/local/armeabi-v7a/objs/com.nepting.allpos.lib/__/__/__/build/ti-generated/jni/TiModuleBootstrap.o:TiModuleBootstrap.cpp:titanium::bindings::TiModuleBindings::lookupGeneratedInit(char const*, unsigned int)::binds: error: undefined reference to 'com::nepting::allpos::lib::NeptingModule::dispose(v8::Isolate*)'\r\n[ERROR] [GRADLE] clang++: error: linker command failed with exit code 1 (use -v to see invocation)\r\n[ERROR] [GRADLE] make: *** [C:/Users/libanez/AppData/Local/Android/Sdk/ndk/android-ndk-r21e/build//../build/core/build-binary.mk:725: C:/SVN_files/CLIENT_NEPTING/branches/DEV/iziApp/ucube_client/appc/allpos-lib-modules/android/build/module/build/intermediates/ndkBuild/release/obj/local/armeabi-v7a/libcom.nepting.allpos.lib.so] Error 1\r\n[ERROR] [GRADLE]\r\n[ERROR] [GRADLE]\r\n[ERROR] [GRADLE] * Try:\r\n[ERROR] [GRADLE] Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.\r\n[ERROR] [GRADLE]\r\n[ERROR] [GRADLE] * Get more help at https://help.gradle.org\r\n[ERROR] [GRADLE]\r\n[ERROR] [GRADLE] BUILD FAILED in 1m 10s\r\n{code}\r\n", "updateAuthor": { "name": "libanez", "key": "libanez", "displayName": "libanez", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-01-30T23:22:41.000+0000", "updated": "2021-01-30T23:22:41.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }