Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Installing Qt 5.4 dev packages in Travis CI
Qt 6.12 LTS is out! See what's new in the release blog

Installing Qt 5.4 dev packages in Travis CI

Scheduled Pinned Locked Moved Installation and Deployment
16 Posts 6 Posters 14.6k Views 5 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #4

    You're welcome !

    Since you have Travis running, please update the thread title prepending [solved] so other forum users may know a solution has been found :)

    Interested in AI ? www.idiap.ch
    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #5

      By "that's exactly it", I meant "that are the docs that describe installing deps on Travis". I know how to set up Travis, my problem is that I don't have Qt 5.4 dev packages. The ubuntu ppa I found so far has only Qt 5.0, and the SDK installer requires that you click on some buttons, making it unsuitable for this.

      Sorry for the misunderstanding, I didn't realize how my answer would be interpreted.

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #6

        In that case why not just use git to clone Qt's repositories ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • ? Offline
          ? Offline
          A Former User
          wrote on last edited by
          #7

          Yes, I could clone Qt and compile it in Travis, but that would make the CI jobs very slow and CPU intensive. Travis doesn't keep state between builds, so it would have to be compiled every time.

          I could perhaps also create my own packages, but that would take a lot of time on my part, and I'm not sure if it's worth it. Are there really no existing dev packages for 5.4?

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #8

            Maybe talking with the responsible of "this":https://launchpad.net/~beineri/+archive/ubuntu/opt-qt54-trusty might help

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • P Offline
              P Offline
              pbe
              wrote on last edited by
              #9

              Are there any news on this topic? I'd also need Qt 5.4 on Travis. ^_^

              1 Reply Last reply
              0
              • E Offline
                E Offline
                equalsraf
                wrote on last edited by
                #10

                This seems to be stuck on multiple fronts:

                1. Ubuntu precise lacks the packages, there are a couple of ppa: flying around e.g. ubuntu-sdk-tem
                2. Keep in mind that the current ppa/packages need to be whitelisted to work in the new Travis container infrastructure (here) - added a request please add more for missing qt development packages
                3. Sadly the Qt installers dont work for a headless installation yet - but this is essential for deployment in Windows continuous integration systems.
                • Travis supports OSX, how do we deploy there? No building is no an option.

                True we can just tar an existing installation and host somewhere for CI deployments. But I kind of miss having tarballs of the Qt releases :)

                1 Reply Last reply
                0
                • E Offline
                  E Offline
                  equalsraf
                  wrote on last edited by
                  #11

                  Just in case anyone is interested semaphoreci.com is a Travis alternative that runs Ubuntu 14.04, that should make it easier to find PPA sources for Qt 5.4.

                  1 Reply Last reply
                  0
                  • A Offline
                    A Offline
                    agarny
                    wrote on last edited by agarny
                    #12

                    I just came across this thread while searching some updated information on Travis CI + Qt 5.5. Anyway, because I already use Travis CI + Qt on Linux and OS X, I thought I would share my experience...

                    Linux: Travis CI still uses Ubuntu 12.04 LTS (rather than Ubuntu 14.04 LTS, which is what I would have expected and liked to see). Regarding Qt, the only ppa I have found is for Qt 5.4.1 (see here. Unfortunately (although understandably), Stephan Binner, the author of the ppa, doesn't seem to provide newer versions of Qt for Ubuntu 12.04 LTS (as can be seen here), so we are effectively limited to Qt 5.4.1 on Linux on Travis CI.

                    OS X: I personally use brew to install whatever version of Qt 5.x that is supported by brew.

                    .travis.yml: personally, I set things up as shown here.

                    1 Reply Last reply
                    1
                    • A Offline
                      A Offline
                      agarny
                      wrote on last edited by
                      #13

                      FWIW, I have contacted Stephan Binner and he's currently working on getting a PPA for Qt 5.5, and he reckons it should be ok to get one for Ubuntu 12.04 LTS (and therefore Travis CI).

                      Regarding OS X on Travis CI, I have seen that there is ongoing work on getting brew to support Qt 5.5, so it should be matter of days at most for OS X.

                      1 Reply Last reply
                      0
                      • P Offline
                        P Offline
                        pbe
                        wrote on last edited by pbe
                        #14

                        I finally managed to get QT5.4 with qmake on Ubuntu 12.04 up and running on Travis!
                        https://github.com/pbek/QOwnNotes/blob/develop/.travis.yml

                        Thank you for the good leads, @agarny!

                        1 Reply Last reply
                        0
                        • A Offline
                          A Offline
                          agarny
                          wrote on last edited by
                          #15

                          You are welcome. Otherwise, you may be interested to know that Stephan Binner (the person behind the PPA) has released a Qt 5.5 version of his PPA that can be used with Travis CI. However, it doesn't include QtWebEngine since it apparently requires gcc 4.7 or above while Ubuntu 12.04 LTS ships with gcc 4.6 only.

                          1 Reply Last reply
                          1
                          • ? A Former User

                            I want to set up CI for my project that uses Qt 5.4, so I need some ppa for Ubuntu 12.04 with dev packages, or some way to install the SDK without human intervention.

                            See http://docs.travis-ci.com/user/build-configuration/ for more info on Travis.

                            H Offline
                            H Offline
                            hipersayan_x
                            wrote on last edited by
                            #16

                            In case other people are struggling with the same problem, i left here the template for using latest version of Qt with Travis:

                            sudo: required
                            dist: trusty
                            
                            before_install:
                              - sudo add-apt-repository --yes ppa:beineri/opt-qt551-trusty
                              - sudo apt-get update -qq
                            
                            install:
                              - sudo apt-get -y install qt55[QTPACKAGE]
                            
                            script:
                              - source /opt/qt55/bin/qt55-env.sh
                              - /opt/qt55/bin/qmake
                              - make
                            

                            In case Travis upgrade their build system, just change the dist: trusty to whatever distro they upgrade to.

                            1 Reply Last reply
                            2

                            • Login

                            • Login or register to search.
                            • First post
                              Last post
                            0
                            • Categories
                            • Recent
                            • Tags
                            • Popular
                            • Users
                            • Groups
                            • Search
                            • Get Qt
                            • Unsolved