如何解决错误:smartMoveTargets (configparser.cpp:1538) 中发生内部错误
这是我第一次使用 cqtdeployer 来部署我的 qt 项目。我使用
从快照商店安装了cqtdeployersudo snap install cqtdeployer
然后我跑了
/mnt/NewVolume1/Qt/5.15.2/gcc_64/bin/qmake -config release
在发布模式下构建我的项目。
为了使用 cqtdeploy 部署我的应用程序,我运行了
cqtdeployer -bin ScreenOverLayMeextension -qmake /mnt/NewVolume1/Qt/5.15.2/gcc_64/bin/qmake -qmlDir ./
然后它告诉我这个错误
NewVolume1/Qt/5.15.2/gcc_64/bin/qmake -qmlDir ./
Info: Deploy ...
Info: The targetDir option is not used. CQtDeployer will use default target dir :/mnt/NewVolume1/main_file_folder/QtProjects/ScreenOverLayMeextension/DistributionKit
Info: Deploy only C/C++ libraries because all target applications do not depend on the Qt libraries
Error: Internal error ocurred in smartMoveTargets (configparser.cpp:1538).
Error: If you see this message please create a new issue about this problem on the official github page https://github.com/QuasarApp/CQtDeployer/issues/new/choose.
Error: Fail to copy targets
Error: The CQtDeployer fail to deploy application.
我做错了什么吗?或者这是一个错误?
解决方法
您尝试在 mnt 文件夹中部署您的应用程序。对于 snap 包,mnt 文件夹默认是关闭的。因此,您需要为 snap 包添加所需的权限。
添加所需的权限:
sudo snap connect cqtdeployer:process-control
sudo snap connect cqtdeployer:removable-media
sudo snap connect cqtdeployer:system-backup
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。