yolov4调试总结
本机环境:ubuntu16.04,cuda9.0
1. cmake error:
卸载旧版本cmake:
sudo apt-get remove cmake
重新安装cmake
https://blog.youkuaiyun.com/qq_38196982/article/details/102819749
卸载源码安装的cmake:
进入安装cmake的工作目录,有文件install_manifest.txt文件,记录着安装的文件,全部删除即可,执行
cat install_manifest.txt | sudo xargs rm
2. cmake Cannot create package registry file:
Qt下设置
CMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON
CMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON
3. string sub-command REGEX, mode REPLACE needs at least 6 arguments total to command.
将
string(REGEX REPLACE "-O0" "-Og" CMAKE_CXX_FLAGS_DEBUG ${CMAKE_CXX_FLAGS_DEBUG})
替换为
string(REGEX REPLACE "-O0" "-Og" CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG}")
This application failed to start because it could not find or load the Qt platform plugin “xcb” in “”.
有可能是系统安装了两个OpenCV版本,在CMakeLists下面添加
SET(OpenCV_DIR /usr/local/share/OpenCV)
find_package(OpenCV REQUIRED)
在Qt下运行通过