2014-09-09 29 views
7

Travis CI'yi bir Qt5 projesiyle kullanmaya çalışıyorum, ancak yapının geçmesini sağlayamıyorum. Hata günlüğününQt5 projesi için Travis CI

Benim .travis.yml

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

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

Son bölüm:

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. 

Tam günlüğü: http://pastebin.ubuntu.com/8296581/

bu resmi bir paket olmama bir ilgisi var mı?

+0

Burada bazı kendini promosyon: [at travis_cpp_tutorial GitHub] (https://github.com/richelbilderbeek/travis_cpp_tutorial) düzinelerce Travis CI kurulumunu bulabilirsiniz. [travis_qmake_gcc_cpp14_qt5] (https://github.com/richelbilderbeek/travis_qmake_gcc_cpp14_qt5) sorunuzu yanıtlayan en az bir örnek veren oyundur. – richelbilderbeek

cevap

11

Sen apt doğru depoyu ve güncelleştirme eklemem gerekiyor:

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

Sizin .travis.yml sonra gibi görünecektir:

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 

bkz: 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)

İlgili konular