No rule to make target `all'.是怎么回事?

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了No rule to make target `all'.是怎么回事?相关的知识,希望对你有一定的参考价值。

参考技术A 这两天也刚刚遇到这个问题,在编译一个国际象棋,在环境变量里把NDK的路径设置好以后,在project-->jni下进行ndk-build,直接会报错!直接在project下,直接进行ndk-build编译,就成功编译过来了!你可以试试!祝你好运!

make[2]: *** No rule to make target `/root/.pyenv/versions/anaconda3-2.4.0/lib/libpython3.5m.so'

当出现No rule to make target ,肯定是Makefile有问题。

有的makefile是脚本生成的,你得看脚本的配置文件对不对。

我的是这个脚本生成的。发现是Pythondir的配置不对:

PYTHON_DIR=/home/zgq/anaconda3
cmake \
-DPYTHON_LIBRARY=$PYTHON_DIR/lib/libpython3.5m.so \
-DPYTHON_INCLUDE_DIR=$PYTHON_DIR/include/python3.5m \
-DPYTHON_INCLUDE_DIR2=$PYTHON_DIR/include \
-DBoost_INCLUDE_DIR=/usr/local/include \
-DBoost_NumPy_INCLUDE_DIR=/usr/local/include \
-DBoost_NumPy_LIBRARY_DIR=/usr/local/lib \
-DOpenCV_DIR=/usr/local/share/OpenCV \
-Wno-dev \
. && make

改过来就OK了











以上是关于No rule to make target `all'.是怎么回事?的主要内容,如果未能解决你的问题,请参考以下文章

出现make: *** No rule to make target `all'. Stop.解决办法

No rule to make target all'初学者求教

No rule to make target,怎么解决啊,求大神指点

新安装CCS 后编译出现问题:gmake:No rule to make target clean

No rule to make target `all'.是怎么回事?

Android NDK, No rule to make target