gpt4 book ai didi

qt5 - Qt5 项目的 Travis CI

转载 作者:行者123 更新时间:2023-12-04 06:37:10 24 4
gpt4 key购买 nike

我正在尝试将 Travis CI 与 Qt5 项目一起使用,但无法通过构建。

我的 .travis.yml

install:
- sudo apt-get update
- sudo apt-get install qt5-default qttools5-dev-tools

script:
- qmake -project
- qmake Ultron.pro
- make

错误日志的最后一段:
0.58s$ sudo apt-get install qt5-default qttools5-dev-tools
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package qt5-default
E: Unable to locate package qttools5-dev-tools
The command "sudo apt-get install qt5-default qttools5-dev-tools" failed and exited with 100 during .
Your build has been stopped.

完整日志: http://pastebin.ubuntu.com/8296581/

这是否与它不是官方软件包有关?

最佳答案

您需要添加正确的存储库并更新 apt:

sudo add-apt-repository --yes ppa:ubuntu-sdk-team/ppa
sudo apt-get update -qq

您的 .travis.yml然后看起来像:
before_install:
- sudo add-apt-repository --yes ppa:ubuntu-sdk-team/ppa
- sudo apt-get update -qq
- sudo apt-get install qtbase5-dev qtdeclarative5-dev libqt5webkit5-dev libsqlite3-dev
- sudo apt-get install qt5-default qttools5-dev-tools

script:
- qmake -project
- qmake Ultron.pro
- make

见: Travis CI config to build against Qt5.0 on Ubuntu 12.04. Requires installing a PPA and certain packages for qt5 support. (jreese / gist:6207161)

关于qt5 - Qt5 项目的 Travis CI,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25737062/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com