make: *** 没有规则可制作目标“install-headers”。 停止。
时间: 2023-05-29 09:03:08 浏览: 207
这个错误通常表示你缺少一个必需的目标或规则,或者你的Makefile文件中存在语法错误。你可以检查Makefile文件,确保所有目标和规则都正确,或者尝试运行“make”命令来生成缺少的目标。如果问题仍然存在,请参考Makefile文档或寻求更多帮助。
相关问题
make: *** [Makefile:260: install-pkgconfig] Error 1
根据引用\[1\]和引用\[3\]的内容,出现"make: *** \[Makefile:260: install-pkgconfig\] Error 1"的错误可能是由于缺少安装基本工具或者编译过程中的其他问题导致的。解决方法可以参考引用\[3\]中提到的安装基本工具的步骤,即使用以下命令安装基本工具:
sudo apt install -y g++
sudo apt install -y cmake
sudo apt install -y make
sudo apt install -y wget
sudo apt install -y unzip
另外,根据引用\[1\]中提到的解决方法,如果使用make -i8命令出现错误,可以尝试使用sudo make -j8命令来编译。
对于引用\[2\]中提到的"fatal error: stdlib.h:没有那个文件或目录"错误,可以尝试在cmake命令中添加-DENABLE_PRECOMPILED_HEADERS = OFF参数来解决。
综上所述,您可以尝试按照上述方法解决make: *** \[Makefile:260: install-pkgconfig\] Error 1的问题。
#### 引用[.reference_title]
- *1* *2* [Ubuntu20.04编译安装opencv3.2和opencv_contrib-3.2](https://blog.csdn.net/qq_41721951/article/details/124047966)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [【C++版Opencv】【Ubuntu】VScode配置Opencv](https://blog.csdn.net/wss794/article/details/124850094)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
如何解决cc1: some warnings being treated as errors make[2]: *** [/usr/src/linux-headers-6.1.0-kali9-common/scripts/Makefile.build:255:/root/桌面/rtl8821CU/os_dep/osdep_service.o] 错误 1 make[1]: *** [/usr/src/linux-headers-6.1.0-kali9-common/Makefile:2037:/root/桌面/rtl8821CU] 错误 2 make[1]: 离开目录“/usr/src/linux-headers-6.1.0-kali9-amd64” make: *** [Makefile:2217:modules] 错误 2
这个错误提示指出了编译过程中出现了一些警告,并且这些警告被视为错误。要解决这个问题,可以尝试在编译命令中添加参数" -Wno-error" 来忽略警告。
具体来说,可以将编译命令修改为:
```
make -j4 CFLAGS="-Wno-error" && sudo make install
```
其中,"-j4" 参数用于指定编译并行数,可以根据实际情况进行调整。
如果这个方法不能解决问题,可能需要进一步检查编译环境和依赖库是否正确安装,并尝试查看编译日志以了解更多详细信息。
阅读全文
相关推荐
















