Cannot COMPILE now
aawsadeel opened this issue · 2 comments
when i compile it getting errors kindly update the code or help me so i can compile it
Build command failed.
Error while executing process C:\Users\DELL\AppData\Local\Android\Sdk\cmake\3.10.2.4988404\bin\ninja.exe with arguments {-C D:_PROJECTS\AntiDebugandMemoryDump\app.cxx\cmake\debug\armeabi-v7a native-lib}
ninja: Entering directory `D:_PROJECTS\AntiDebugandMemoryDump\app.cxx\cmake\debug\armeabi-v7a'
[0/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: D:/_PROJECTS/AntiDebugandMemoryDump/app/.cxx/cmake/debug/armeabi-v7a
[1/1] Linking C shared library D:_PROJECTS\AntiDebugandMemoryDump\app\build\intermediates\cmake\debug\obj\armeabi-v7a\http://libnative-lib.so
FAILED: D:/_PROJECTS/AntiDebugandMemoryDump/app/build/intermediates/cmake/debug/obj/armeabi-v7a/libnative-lib.so
cmd.exe /C "cd . && C:\Users\DELL\AppData\Local\Android\Sdk\ndk\25.1.8937393\toolchains\llvm\prebuilt\windows-x86_64\bin\clang.exe --target=armv7-none-linux-androideabi23 --sysroot=C:/Users/DELL/AppData/Local/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/windows-x86_64/sysroot -fPIC -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -march=armv7-a -mthumb -Wformat -Werror=format-security -fno-limit-debug-info -static-libstdc++ -Wl,--build-id=sha1 -Wl,--no-rosegment -Wl,--fatal-warnings -Wl,--gc-sections -Wl,--no-undefined -Qunused-arguments -shared -Wl,-soname,http://libnative-lib.so -o D:_PROJECTS\AntiDebugandMemoryDump\app\build\intermediates\cmake\debug\obj\armeabi-v7a\http://libnative-lib.so CMakeFiles/native-lib.dir/native-lib.c.o -llog -latomic -lm && cmd.exe /C "cd /D D:_PROJECTS\AntiDebugandMemoryDump\app.cxx\cmake\debug\armeabi-v7a && C:\Users\DELL\AppData\Local\Android\Sdk\ndk\25.1.8937393\toolchains\llvm\prebuilt\windows-x86_64\bin\arm-linux-androideabi-strip -R .comment -g -S -d --strip-unneeded D:/_PROJECTS/AntiDebugandMemoryDump/app/src/main/c/../../../build/intermediates/cmake/Debug/obj/armeabi-v7a/libnative-lib.so""
'C:\Users\DELL\AppData\Local\Android\Sdk\ndk\25.1.8937393\toolchains\llvm\prebuilt\windows-x86_64\bin\arm-linux-androideabi-strip' is not recognized as an internal or external command,
operable program or batch file.
ninja: build stopped: subcommand failed.
CMake Warning at C:/Users/DELL/AppData/Local/Android/Sdk/ndk/25.1.8937393/build/cmake/android-legacy.toolchain.cmake:415 (message):
An old version of CMake is being used that cannot automatically detect
compiler attributes. Compiler identification is being bypassed. Some
values may be wrong or missing. Update to CMake 3.19 or newer to use
CMake's built-in compiler identification.
Call Stack (most recent call first):
C:/Users/DELL/AppData/Local/Android/Sdk/ndk/25.1.8937393/build/cmake/android.toolchain.cmake:54 (include)
D:/_PROJECTS/AntiDebugandMemoryDump/app/.cxx/cmake/debug/armeabi-v7a/CMakeFiles/3.10.2/CMakeSystem.cmake:6 (include)
CMakeLists.txt
You can comment out the strip command. When you build the app, there is a gradle task to strip native libs automatically.