Skip to content

Instantly share code, notes, and snippets.

@jakecraige
Last active November 16, 2015 15:53
Show Gist options
  • Save jakecraige/50c122c8ae860f7595a4 to your computer and use it in GitHub Desktop.
Save jakecraige/50c122c8ae860f7595a4 to your computer and use it in GitHub Desktop.
QT5 on CircleCI
machine:
post:
- ./$CIRCLE_PROJECT_REPONAME/bin/ci/install_qt5.sh
#!/bin/sh
# Based on: https://gist.github.com/ryanong/ad6e7570e3f72b22c0e4
# Exit if any subcommand fails
set -e
if [ ! -d "/opt/qt55" ]; then
echo "Installing QT 5..."
yes y | sudo add-apt-repository ppa:beineri/opt-qt551
sudo apt-get update
sudo apt-get update -o Dir::Etc::sourcelist="sources.list.d/beineri-opt-qt551-precise.list" -o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0"
sudo apt-get install qt55webkit libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev qt55declarative qt55location qt55sensors
echo "QT 5 installed."
fi
echo "source /opt/qt55/bin/qt55-env.sh" >> ~/.circlerc
@seanpdoyle
Copy link

@JakeCraig

Unfortunately, I'm still failing:

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    /home/ubuntu/.rvm/rubies/ruby-2.2.3/bin/ruby -r ./siteconf20151116-13094-1fugb5x.rb extconf.rb
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
    --with-opt-dir
    --without-opt-dir
    --with-opt-include
    --without-opt-include=${opt-dir}/include
    --with-opt-lib
    --without-opt-lib=${opt-dir}/lib
    --with-make-prog
    --without-make-prog
    --srcdir=.
    --curdir
    --ruby=/home/ubuntu/.rvm/rubies/ruby-2.2.3/bin/$(RUBY_BASE_NAME)
    --with-gl-dir
    --without-gl-dir
    --with-gl-include
    --without-gl-include=${gl-dir}/include
    --with-gl-lib
    --without-gl-lib=${gl-dir}/lib
    --with-zlib-dir
    --without-zlib-dir
    --with-zlib-include
    --without-zlib-include=${zlib-dir}/include
    --with-zlib-lib
    --without-zlib-lib=${zlib-dir}/lib
Command '/usr/lib/x86_64-linux-gnu/qt5/bin/qmake ' not available

extconf failed, exit code 1

Gem files will remain installed in /home/ubuntu/dome/vendor/bundle/ruby/2.2.0/gems/capybara-webkit-1.7.1 for inspection.
Results logged to /home/ubuntu/dome/vendor/bundle/ruby/2.2.0/extensions/x86_64-linux/2.2.0/capybara-webkit-1.7.1/gem_make.out
Installing actionpack 4.2.4
An error occurred while installing capybara-webkit (1.7.1), and Bundler cannot
continue.
Make sure that `gem install capybara-webkit -v '1.7.1'` succeeds before

bundle check --path=vendor/bundle || bundle install --path=vendor/bundle --jobs=4 --retry=3  returned exit code 5

@seanpdoyle
Copy link

Command '/usr/lib/x86_64-linux-gnu/qt5/bin/qmake ' not available

when does this file get created?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment