Just to share my experience with compiling the interface on UbuntuStudio 15.10 (wily) using the offline installers of Qt. If failed with Qt 5.6.0 due to missing Qt5Webkit but compiled with the offline installer for 5.5.1.
Take note that this uses the offline binary installers and I did not compile qt from source. The test machine is a core i7 with gtx 980ti gpu.
Note that it has been reported elsewhere that there are issues with respect to missing qtwebchannel in the repo packages including ppa prevents use of the packages in compiling interface but it has been reported to work for the server.
This build instruction is for the interface .
Qt 5.6.0 runtime from http://www.qt.io/download-open-source/ produces the ff. error on compile of hifi due to missing Qt5WebKit.
CMake Warning at /opt/Qt5.6.0/5.6/gcc_64/lib/cmake/Qt5/Qt5Config.cmake:26 (find_package):
Could not find a package configuration file provided by "Qt5WebKitWidgets"
with any of the following names:
Add the installation prefix of “Qt5WebKitWidgets” to CMAKE_PREFIX_PATH or
set “Qt5WebKitWidgets_DIR” to a directory containing one of the above
files. If “Qt5WebKitWidgets” provides a separate development package or
SDK, be sure it has been installed.
Call Stack (most recent call first):
CMake Warning at interface/CMakeLists.txt:46 (find_package):
Found package configuration file:
but it set Qt5_FOUND to FALSE so package “Qt5” is considered to be NOT
FOUND. Reason given by package:
Failed to find Qt5 component “WebKitWidgets” config file at
1. Install QT using the offline installer
I used Qt 5.5.1 for Linux 64-bit with a filename qt-opensource-linux-x64-5.5.1.run from a qt mirror at something like http://mirror url/pub/qtproject/official_releases/qt/5.5/5.5.1/.
I found the mirror url on the (info) link from http://www.qt.io/download-open-source/ . Replace the url before /pub/qtproject/official_releases/qt/5.5/5.5.1/ .
2. Run qt installer as root in a terminal
This should open the installer. Skip the account creation. Install all.
If you installed it as root, it should install qt at /opt/Qt5.5.1/
3. At the end of the .bashrc file of your root folder insert:
For the root account
sudo root gedit /root/.bashrc
If you need to do this for your regular account
Check by issuing in terminal
and see if QT_CMAKE_PREFIX_PATH is set
Otherwise close the terminal and open it again.
4. Install packages
sudo apt-get install git build-essential cmake libssl-dev libsdl2-dev libasound2 libxmu-dev libxi-dev freeglut3-dev libasound2-dev libjack-jackd2-dev libxrandr-dev libglew-dev
5. Clone the repo.
git clone https://github.com/highfidelity/hifi.git
6. Make the build directory.
mkdir build cd build
7. Run cmake.
cmake (path to hifi source downloaded from github)
8. To build the interface inside build directory
sudo make interface
9. If you want to build server parts
sudo make assignment-client
sudo make domain-server
6. Run interface from a terminal with a regular account
sudo chown -R . build
As regular account
It successfully compiled and ran as of March 27, 2016 but I’ve experience segmentation fault when I open and close the additional menus and dialogue boxes.