参考资料:
Linux —— linuxdeployqt源码编译与打包(含出错解决)
linux cp指令报错:cp: -r not specified; cp: omitting directory ‘xxx‘(需要加-r递归拷贝)
CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Qt5/Qt5Config.cmake:28 (find_package): Could not fi
通过github下载linuxdeployqt
下载
根据参考资料1中继续,修改main.cpp还有修改pro文件,添加一下Qt+=widgets就和,都设置好,遇到Could not find a package configuration file provided by “QT” with any of the following names
Qt6Config.cmake
qt6-config.cmake
Qt5Config.cmake
qt5-config.cmake
安装相关文件:
之后
然后
最后cp到bin文件夹下