make: *** 没有指明目标并且找不到 makefile。 停止。

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了make: *** 没有指明目标并且找不到 makefile。 停止。相关的知识,希望对你有一定的参考价值。

liuxu@ubuntu:~$ cd 下载
liuxu@ubuntu:~/下载$ cd pidgin-lwqq-master
liuxu@ubuntu:~/下载/pidgin-lwqq-master$ mkdir build
liuxu@ubuntu:~/下载/pidgin-lwqq-master$ cd build
liuxu@ubuntu:~/下载/pidgin-lwqq-master/build$ cmake -DCMAKE_INSTALL_PREFIX=/usr ..
-- The C compiler identification is GNU 4.7.2
-- The CXX compiler identification is GNU 4.7.2
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.26")
-- checking for module 'purple'
-- found purple, version 2.10.6
-- checking for module 'glib-2.0'
-- found glib-2.0, version 2.34.1
-- checking for module 'mozjs185'
-- package 'mozjs185' not found
CMake Error at /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:279 (message):
A required package was not found
Call Stack (most recent call first):
/usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:333 (_pkg_check_modules_internal)
CMakeLists.txt:19 (pkg_check_modules)

CMake Warning at CMakeLists.txt:20 (find_package):
By not providing "FindEV.cmake" in CMAKE_MODULE_PATH this project has asked
CMake to find a package configuration file provided by "EV", but CMake did
not find one.

Could not find a package configuration file provided by "EV" with any of
the following names:

EVConfig.cmake
ev-config.cmake

Add the installation prefix of "EV" to CMAKE_PREFIX_PATH or set "EV_DIR" to
a directory containing one of the above files. If "EV" provides a separate
development package or SDK, be sure it has been installed.

libpurple version:2.10.6
-- Found Gettext: /usr/bin/msgmerge (found version "0.18.1")
CMake Warning (dev) at CMakeLists.txt:94 (add_subdirectory):
The source directory

/home/liuxu/下载/pidgin-lwqq-master/liblwqq

does not contain a CMakeLists.txt file.

CMake does not support this case but it used to work accidentally and is
being allowed for compatibility.

Policy CMP0014 is not set: Input directories must have CMakeLists.txt. Run
"cmake --help-policy CMP0014" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.

/usr/share/
===============================================
-- With Libev (Option) : 0
-- Native Language Support : true
-- Install Path : /usr/lib/purple-2
===============================================
-- Configuring incomplete, errors occurred!
liuxu@ubuntu:~/下载/pidgin-lwqq-master/build$ make
make: *** 没有指明目标并且找不到 makefile。 停止。

参考技术A -- checking for module 'mozjs185'
-- package 'mozjs185' not found
装了mozjs185再说本回答被提问者采纳

MinGW make:复制:找不到命令

【中文标题】MinGW make:复制:找不到命令【英文标题】:MinGW make: copy: command not found 【发布时间】:2019-07-30 14:08:23 【问题描述】:

我正在尝试使用 MinGW 在 Windows 10 上编译 hp2xx。我的 makefile 是 make 目录中 dosdjgpp.mak 文件的直接副本。我在路径中有 c:\MinGW\bin 和 C:\MinGW\msys\1.0\bin。

make 操作在第一次复制时失败。它失败的 makefile 行是

pbuf.o: picbuf.o
    copy picbuf.o pbuf.o

错误是

copy picbuf.o pbuf.o
make: copy: Command not found
make: *** [pbuf.o] Error 127

在同一个命令提示符下我可以使用copy OK,为什么找不到呢?

【问题讨论】:

【参考方案1】:

我相信mingw/bin包含linux风格的复制命令cp所以试试

pbuf.o: picbuf.o
    cp picbuf.o pbuf.o

如果尚未包含,您可能需要添加 windows 复制路径

【讨论】:

谢谢,已经完成了——我在makefile中用“cp”替换了“copy”,这个错误就消失了。现在我有新的错误要调查:) 如果它是另一个 windows/linux 命令,您可能想学习 linux 变体 s.. 或 windows bin 路径:o

以上是关于make: *** 没有指明目标并且找不到 makefile。 停止。的主要内容,如果未能解决你的问题,请参考以下文章

make: *** 没有指明目标并且找不到 makefile。 停止

源码编译nginx的时候,出现“make: *** 没有指明目标并且找不到 makefile。 停止“。的报错的解决方法

make: *** 没有指明目标并且找不到 makefile。 停止。

make: *** 没有指明目标并且找不到 makefile. 停止.

make: *** 没有指明目标并且找不到 makefile。 停止

make: *** 没有指明目标并且找不到 makefile。 停止。