编译Tensorflow的superresolution 项目时,提示
CMake '3.6.0' was not found in PATH or by cmake.dir property.
在local.properties文件中添加上cmake 3.6.0的安装路径
cmake.dir = D\:\\CMake
接着再次编译,又提示
Unexpected/unsupported CMake version 3.6.0. Try 3.7.0 or later.
换3.7版本,并且在build.gradle中修改cmake version参数,编译后还提示
CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
去build.gradle 中修改
//classpath 'com.android.tools.build:gradle:3.5.0'
classpath 'com.android.tools.build:gradle:4.1.3'
提示
NDK not configured. Download it with SDK manager. Preferred NDK version is '21.1.6352462'.
Install NDK '21.1.6352462' and sync project
安装完后,可以了。
从此可以看出,需要修改tools.build.gradle的版本。
|