执行命令加固时报错系统找不到指定文件
prohack opened this issue · 1 comments
[D:\scoop\apps\cmake\3.27.1\bin\cmake, -HE:\jiagu\nmmp-master\nmm-protect\build\libs.\build\dex2c, -DCMAKE_TOOLCHAIN_FILE=C:\Users\Administrator\AppData\Local\Android\Sdk\ndk\25.2.9519653\build\cmake\android.toolchain.cmake, -DCMAKE_BUILD_TYPE=Release, -DANDROID_ABI=x86_64, -DANDROID_NDK=C:/Users/Administrator/AppData/Local/Android/Sdk/ndk/25.2.9519653, -DANDROID_PLATFORM=android-21, -DCMAKE_ANDROID_ARCH_ABI=x86_64, -DCMAKE_ANDROID_NDK=C:/Users/Administrator/AppData/Local/Android/Sdk/ndk/25.2.9519653, -DCMAKE_EXPORT_COMPILE_COMMANDS=ON, -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=E:\jiagu\nmmp-master\nmm-protect\build\libs.\build\obj\sym\x86_64, -DCMAKE_MAKE_PROGRAM=D:\scoop\apps\cmake\3.27.1\bin\ninja, -DCMAKE_SYSTEM_NAME=Android, -DCMAKE_SYSTEM_VERSION=21, -BE:\jiagu\nmmp-master\nmm-protect\build\libs.\build.cxx\cmake\Release\x86_64, -GNinja]
-- Configuring incomplete, errors occurred!
CMake Error at CMakeLists.txt:2 (project):
Running
'D:\scoop\apps\cmake\3.27.1\bin\ninja' '--version'
failed with:
绯荤粺鎵句笉鍒版寚瀹氱殑鏂囦欢銆?
Exception in thread "main" java.io.IOException: Cmd '[D:\scoop\apps\cmake\3.27.1\bin\cmake, -HE:\jiagu\nmmp-master\nmm-protect\build\libs.\build\dex2c, -DCMAKE_TOOLCHAIN_FILE=C:\Users\Administrator\AppData\Local\Android\Sdk\ndk\25.2.9519653\build\cmake\android.toolchain.cmake, -DCMAKE_BUILD_TYPE=Release, -DANDROID_ABI=x86_64, -DANDROID_NDK=C:/Users/Administrator/AppData/Local/Android/Sdk/ndk/25.2.9519653, -DANDROID_PLATFORM=android-21, -DCMAKE_ANDROID_ARCH_ABI=x86_64, -DCMAKE_ANDROID_NDK=C:/Users/Administrator/AppData/Local/Android/Sdk/ndk/25.2.9519653, -DCMAKE_EXPORT_COMPILE_COMMANDS=ON, -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=E:\jiagu\nmmp-master\nmm-protect\build\libs.\build\obj\sym\x86_64, -DCMAKE_MAKE_PROGRAM=D:\scoop\apps\cmake\3.27.1\bin\ninja, -DCMAKE_SYSTEM_NAME=Android, -DCMAKE_SYSTEM_VERSION=21, -BE:\jiagu\nmmp-master\nmm-protect\build\libs.\build.cxx\cmake\Release\x86_64, -GNinja]' exec failed
at com.nmmedit.apkprotect.BuildNativeLib.execCmd(BuildNativeLib.java:108)
at com.nmmedit.apkprotect.BuildNativeLib.build(BuildNativeLib.java:70)
at com.nmmedit.apkprotect.BuildNativeLib.generateNativeLibs(BuildNativeLib.java:54)
at com.nmmedit.apkprotect.ApkProtect.run(ApkProtect.java:122)
at com.nmmedit.protect.ApkMain.main(ApkMain.java:51)
at com.nmmedit.protect.Main.main(Main.java:24)
乱码的地方GBK,转换后的结果是 '系统找不到指定的文件'
我的cmake版本是3.27.1 不知道是不是和版本有关,但是我用scoop试图安装demo里的3.18.1时,提示没有这个版本... 有什么解决办法吗大大
我用AndroidStudio 下载cmake后找到了那个报错丢失的文件,现在正常编译了