Closed Ashwani270292 closed 3 years ago
Just downloaded the repo and trying to run the code, getting error:
> Task :app:externalNativeBuildDebug FAILED Build native-lib_arm64-v8a ninja: Entering directory `C:\Users\ashwani.pandey\Downloads\DetectFrida-master\app\.cxx\cmake\debug\arm64-v8a' [1/2] Building C object CMakeFiles/native-lib.dir/native-lib.c.o FAILED: CMakeFiles/native-lib.dir/native-lib.c.o C:\Users\ashwani.pandey\Downloads\DetectFrida-master\app\src\main\c\..\..\..\..\..\build\bin\clang --target=aarch64-none-linux-android21 --gcc-toolchain=E:/android_sdk/ndk/21.0.6113669/toolchains/llvm/prebuilt/windows-x86_64 --sysroot=E:/android_sdk/ndk/21.0.6113669/toolchains/llvm/prebuilt/windows-x86_64/sysroot -D_64_BIT -Dnative_lib_EXPORTS -IC:/Users/ashwani.pandey/Downloads/DetectFrida-master/app/src/main/c/arch/arm64-v8a -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -mllvm -sub -mllvm -bcf -mllvm -fla -O0 -fno-limit-debug-info -fPIC -MD -MT CMakeFiles/native-lib.dir/native-lib.c.o -MF CMakeFiles\native-lib.dir\native-lib.c.o.d -o CMakeFiles/native-lib.dir/native-lib.c.o -c C:/Users/ashwani.pandey/Downloads/DetectFrida-master/app/src/main/c/native-lib.c CreateProcess failed: The system cannot find the file specified. ninja: build stopped: subcommand failed. FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:externalNativeBuildDebug'. > Build command failed. Error while executing process E:\android_sdk\cmake\3.10.2.4988404\bin\ninja.exe with arguments {-C C:\Users\ashwani.pandey\Downloads\DetectFrida-master\app\.cxx\cmake\debug\arm64-v8a native-lib} ninja: Entering directory `C:\Users\ashwani.pandey\Downloads\DetectFrida-master\app\.cxx\cmake\debug\arm64-v8a' [1/2] Building C object CMakeFiles/native-lib.dir/native-lib.c.o FAILED: CMakeFiles/native-lib.dir/native-lib.c.o C:\Users\ashwani.pandey\Downloads\DetectFrida-master\app\src\main\c\..\..\..\..\..\build\bin\clang --target=aarch64-none-linux-android21 --gcc-toolchain=E:/android_sdk/ndk/21.0.6113669/toolchains/llvm/prebuilt/windows-x86_64 --sysroot=E:/android_sdk/ndk/21.0.6113669/toolchains/llvm/prebuilt/windows-x86_64/sysroot -D_64_BIT -Dnative_lib_EXPORTS -IC:/Users/ashwani.pandey/Downloads/DetectFrida-master/app/src/main/c/arch/arm64-v8a -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -mllvm -sub -mllvm -bcf -mllvm -fla -O0 -fno-limit-debug-info -fPIC -MD -MT CMakeFiles/native-lib.dir/native-lib.c.o -MF CMakeFiles\native-lib.dir\native-lib.c.o.d -o CMakeFiles/native-lib.dir/native-lib.c.o -c C:/Users/ashwani.pandey/Downloads/DetectFrida-master/app/src/main/c/native-lib.c CreateProcess failed: The system cannot find the file specified. ninja: build stopped: subcommand failed.
I have not built ollvm for windows. That's the reason for this error. If you can build the ollvm for windows successfully, it will be great.. PRs welcome
Refer CMakelists to build non-obfuscated builds
Just downloaded the repo and trying to run the code, getting error: