Skip to content
This repository has been archived by the owner on Nov 18, 2018. It is now read-only.

Guide for installing all the dependencies on Ubuntu 14.04 #215

Open
SuicSoft opened this issue Jul 2, 2016 · 7 comments
Open

Guide for installing all the dependencies on Ubuntu 14.04 #215

SuicSoft opened this issue Jul 2, 2016 · 7 comments
Assignees

Comments

@SuicSoft
Copy link

SuicSoft commented Jul 2, 2016

Can you add the steps to installing the dependencies on Ubuntu

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@plfiorini
Copy link
Member

Good call, I'm going to check the status of Qt on Ubuntu 14.04

@plfiorini plfiorini added this to the Version 0.8.0 milestone Jul 2, 2016
@plfiorini plfiorini self-assigned this Jul 2, 2016
@plfiorini
Copy link
Member

Apparently Ubuntu 14.04 has a too old Qt version (5.2.1), you need Qt 5.6.0 at least.
You can try downloading the Qt binary distribution here: http://www.qt.io/download-open-source/ or build from sources: http://doc.qt.io/qt-5/linux-building.html
There's also a PPA for 14.04: https://launchpad.net/~beineri/+archive/ubuntu/opt-qt561-trusty

@plfiorini
Copy link
Member

Might seem a paradox but Debian SID is probably a better choice for Qt development, Ubuntu does not update it too often.

@SuicSoft
Copy link
Author

SuicSoft commented Jul 3, 2016

@plfiorini So how about the instructions for installing the dependencies on Debian SID

I can use a Virtual Machine

@plfiorini
Copy link
Member

Ok Gonna grab a VM and note things down.

@plfiorini
Copy link
Member

plfiorini commented Jul 3, 2016

This is how I built it on Debian:

  • I use virt-manager for virtualization, it's the only free alternative to VMware that is going to work with Wayland. VirtualBox doesn't fully support it.
  • Grab a netinst ISO: http://cdimage.debian.org/debian-cd/8.5.0/amd64/iso-cd/debian-8.5.0-amd64-netinst.iso
  • Boot and install. I have used the graphical installer. it's fairly easy even for me that I don't touch Debian in years.
  • I left Debian Desktop on the software selection so I have a GUI.
  • Say yes to install grub and select /dev/vda
  • Once you booted the system edit /etc/apt/sources.list and replace jessie with testing
  • Open a terminal
  • su -
  • apt-get update
  • apt-get -u dist-upgrade
  • Reboot
  • apt-get install qt5-default git cmake extra-cmake-modules pkg-config build-essential libdrm-dev libgbm-dev libqt5svg5-dev libqt5waylandclient5-dev qmlscene libnput-dev libxcb-cursor-dev libxcb-composite0-dev libxcursor-dev qtbase5-private-dev qtbase5-dev qtdeclarative5-dev qtdeclarative5-private-dev libqt5opengl5-dev libwayland-dev libegl1-mesa-dev libsystemd-dev libfontconfig1-dev libglib2.0-dev libxkbcommon-dev wayland-protocols libgles2-mesa
  • logout
  • git clone https://github.com/greenisland/greenisland
  • cd greenisland
  • mkdir build
  • cd build
  • cmake -DCMAKE_INSTALL_PREFIX=/opt/hawaii -DLIB_INSTALL_DIR=lib ..
  • make
  • su -c 'make install'

@plfiorini plfiorini removed this from the Version 0.8.0 milestone Aug 2, 2016
@zoecarver
Copy link

Thank you so much for making this guide! I have one question though. when I run cmake I get this error:

CMake Error at CMakeLists.txt:81 (find_package):
  Could not find a configuration file for package "Qt5" that is compatible
  with requested version "5.6.0".

  The following configuration files were considered but not accepted:

    /usr/lib/x86_64-linux-gnu/cmake/Qt5/Qt5Config.cmake, version: 5.5.1



-- Configuring incomplete, errors occurred!
See also "/home/ze/greenisland/build/CMakeFiles/CMakeOutput.log".

Thank you again!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants