Can't Complile Interface Linux Ubuntu 15.04 Issue


#1

@OmegaHeron I have followed the instructions at:
http://docs.highfidelity.com/v1.0/docs/ubuntu-1410-compile

I get the exact same error on both 1410 and the new 15.04 below:
CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Qt5/Qt5Config.cmake:26 (find_package):
  Could not find a package configuration file provided by “Qt5XmlPatterns”
  with any of the following names:

Qt5XmlPatternsConfig.cmake
    qt5xmlpatterns-config.cmake

Add the installation prefix of “Qt5XmlPatterns” to CMAKE_PREFIX_PATH or set
  “Qt5XmlPatterns_DIR” to a directory containing one of the above files.  If
  “Qt5XmlPatterns” provides a separate development package or SDK, be sure it
  has been installed.
Call Stack (most recent call first):
  cmake/macros/SetupHifiLibrary.cmake:29 (find_package)
  libraries/ui/CMakeLists.txt:4 (setup_hifi_library)

– Configuring incomplete, errors occurred!
See also “/home/design/source/compile/CMakeFiles/CMakeOutput.log”.
See also “/home/design/source/compile/CMakeFiles/CMakeError.log”.

When i touched base with @thoys he stated that I might not have a CMAKE path set properly any ideas so that I can compile the interface? Thanks.


#2

CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Qt5LinguistTools/Qt5LinguistToolsConfig.cmake:22 (message):
The package “Qt5LinguistTools” references the file

 "/usr/lib/x86_64-linux-gnu/qt5/bin/lrelease"

but this file does not exist. Possible reasons include:

  • The file was deleted, renamed, or moved to another location.

  • An install or uninstall procedure did not complete successfully.

  • The installation package was faulty and contained

    “/usr/lib/x86_64-linux-gnu/cmake/Qt5LinguistTools/Qt5LinguistToolsConfig.cmake”

but not all the files it references.

Call Stack (most recent call first):
/usr/lib/x86_64-linux-gnu/cmake/Qt5LinguistTools/Qt5LinguistToolsConfig.cmake:38 (_qt5_LinguistTools_check_file_exists)
interface/CMakeLists.txt:14 (find_package)

– Configuring incomplete, errors occurred!
See also “/home/design/source/compile/CMakeFiles/CMakeOutput.log”


#3

Please try to install the following packages on Ubuntu Vivid 15.04:

sudo apt-get install git build-essential cmake qt5-default qtscript5-dev libssl-dev qttools5-dev qttools5-dev-tools qtmultimedia5-dev libqt5svg5-dev libqt5webkit5-dev libsdl2-dev libasound2 libxmu-dev libxi-dev freeglut3-dev libasound2-dev libjack-jackd2-dev libxrandr-dev libqt5xmlpatterns5-dev libqt5xmlpatterns5 libqt5xmlpatterns5-private-dev

The first posted error is probably due to a missing libqt5xmlpatterns5-dev package. The second error is probably due to a missing qttools5-dev-tools package.

Please see our discussion at https://alphas.highfidelity.io/t/streamlined-ubuntu-14-10-build-process/1462/12 for additional info.


#4

@rcantada Thank you that did compile interface however now when i run ./interface it does not load up the graphics window and just hangs in the terminal.

design@Design:~/source/compile/interface$ ./interface
hifi.shared: Settings thread started.
hifi.networking: Asynchronously looking up IP address for hostname “stun.highfidelity.io” - lookup ID is 1
hifi.networking: NodeList socket is listening on 56008
hifi.networking: Changed socket “send” buffer size from 212992 to 212992 bytes
hifi.networking: Changed socket “receive” buffer size from 212992 to 212992 bytes
hifi.networking: Local socket is 192.168.2.9:56008
Time zone: EDT
[DEBUG] [06/16 10:32:46] [VERSION] Build sequence:  dev
[WARNING] [06/16 10:32:46] Couldn’t open bookmarks file for reading
[DEBUG] [06/16 10:32:46] AccountManager URL for authenticated requests has been changed to https://metaverse.highfidelity.com
[DEBUG] [06/16 10:32:46] The default audio input device is “”
[DEBUG] [06/16 10:32:46] Logging activity “launch”
[DEBUG] [06/16 10:32:46] The default audio output device is “”
[DEBUG] [06/16 10:32:46] No valid access token present. Bailing on invoked request to “/api/v1/user_activities” that requires authentication
[DEBUG] [06/16 10:32:46] Unable to set up audio input because of a problem with input format.
[DEBUG] [06/16 10:32:46] The closest format available is QAudioFormat(-1Hz, -1bit, channelCount=-1, sampleType=Unknown, byteOrder=LittleEndian, codec="")
[DEBUG] [06/16 10:32:46] Unable to set up audio output because of a problem with output format.
[DEBUG] [06/16 10:32:46] The closest format available is QAudioFormat(-1Hz, -1bit, channelCount=-1, sampleType=Unknown, byteOrder=LittleEndian, codec="")
[DEBUG] [06/16 10:32:46] Created Display Window.
[DEBUG] [06/16 10:32:46] GL Version:  “3.0 Mesa 10.5.2”
[DEBUG] [06/16 10:32:46] GL Shader Language Version:  “1.30”
[DEBUG] [06/16 10:32:46] GL Vendor:  “X.Org
[DEBUG] [06/16 10:32:46] GL Renderer:  “Gallium 0.4 on AMD CAICOS”
[DEBUG] [06/16 10:32:46] Initialized Display.
[WARNING] [06/16 10:32:46] QSGContext::initialize: depth buffer support missing, expect rendering errors
[WARNING] [06/16 10:32:46] QSGContext::initialize: stencil buffer support missing, expect rendering errors
[DEBUG] [06/16 10:32:46] Offscreen UI resizing to  1855 x 1056  with pixel ratio  1
[WARNING] [06/16 10:32:46]  QUrl( “file:///home/design/source/compile/interface/resources/qml/RootMenu.qml” )  2 file:///home/design/source/compile/interface/resources/qml/RootMenu.qml:2:1: module “QtQuick.Controls” is not installed
     import QtQuick.Controls 1.3
     ^
[WARNING] [06/16 10:32:46]  QUrl( “file:///home/design/source/compile/interface/resources/qml/VrMenu.qml” )  4 file:///home/design/source/compile/interface/resources/qml/VrMenu.qml:4:1: module “QtQuick.Controls.Styles” is not installed
     import QtQuick.Controls.Styles 1.3
     ^
[WARNING] [06/16 10:32:46]  QUrl( “file:///home/design/source/compile/interface/resources/qml/VrMenu.qml” )  3 file:///home/design/source/compile/interface/resources/qml/VrMenu.qml:3:1: module “QtQuick.Controls” is not installed
     import QtQuick.Controls 1.3
     ^
[WARNING] [06/16 10:32:46]  QUrl( “file:///home/design/source/compile/interface/resources/qml/VrMenu.qml” )  4 file:///home/design/source/compile/interface/resources/qml/VrMenu.qml:4:1: module “QtQuick.Controls.Styles” is not installed
     import QtQuick.Controls.Styles 1.3
     ^
[WARNING] [06/16 10:32:46]  QUrl( “file:///home/design/source/compile/interface/resources/qml/VrMenu.qml” )  3 file:///home/design/source/compile/interface/resources/qml/VrMenu.qml:3:1: module “QtQuick.Controls” is not installed
     import QtQuick.Controls 1.3
     ^
[DEBUG] [06/16 10:32:46] Initialized Offscreen UI.
[DEBUG] [06/16 10:32:46] First call to Menu::getInstance() - initing menu.
[WARNING] [06/16 10:32:46] appmenu-qt: registerWindow 206 “File”
[WARNING] [06/16 10:32:46] appmenu-qt: registerWindow 206 “Edit”
[WARNING] [06/16 10:32:46] appmenu-qt: registerWindow 206 “Tools”
[WARNING] [06/16 10:32:46] appmenu-qt: registerWindow 206 “Avatar”
[WARNING] [06/16 10:32:46] appmenu-qt: registerWindow 206 “View”
[WARNING] [06/16 10:32:46] appmenu-qt: registerWindow 206 “Developer”
[WARNING] [06/16 10:32:46] appmenu-qt: registerWindow 206 “Help”
[DEBUG] [06/16 10:32:49] Oculus SDK 0.5.0.1
[DEBUG] [06/16 10:32:49] Logging activity “connected_device”
[DEBUG] [06/16 10:32:49] No valid access token present. Bailing on invoked request to “/api/v1/user_activities” that requires authentication
Error: [Context] Unable to obtain x11 visual from context
[DEBUG] [06/16 10:32:49] Trying to go to URL “hifi://entry”
[DEBUG] [06/16 10:32:49] Loaded settings
[DEBUG] [06/16 10:32:49] Waiting for inital public socket from STUN. Will not send domain-server check in.
[DEBUG] [06/16 10:32:49] init() complete.
[DEBUG] [06/16 10:32:49] Startup time: 3.15 seconds.


#5

newest issue have @OmegaHeron or @rcantada come across this?
Error: [Context] Unable to obtain x11 visual from context

design@Design:~/source/compile/interface$ ./interface
hifi.shared: Settings thread started.
hifi.networking: Asynchronously looking up IP address for hostname “stun.highfidelity.io” - lookup ID is 1
hifi.networking: NodeList socket is listening on 56622
hifi.networking: Changed socket “send” buffer size from 212992 to 212992 bytes
hifi.networking: Changed socket “receive” buffer size from 212992 to 212992 bytes
hifi.networking: Local socket is 192.168.2.9:56622
Time zone: EDT
[DEBUG] [06/16 13:32:37] [VERSION] Build sequence:  dev
[WARNING] [06/16 13:32:37] Couldn’t open bookmarks file for reading
[DEBUG] [06/16 13:32:38] AccountManager URL for authenticated requests has been changed to https://metaverse.highfidelity.com
[DEBUG] [06/16 13:32:38] The default audio input device is “”
[DEBUG] [06/16 13:32:38] Logging activity “launch”
[DEBUG] [06/16 13:32:38] The default audio output device is “”
[DEBUG] [06/16 13:32:38] No valid access token present. Bailing on invoked request to “/api/v1/user_activities” that requires authentication
[DEBUG] [06/16 13:32:38] Unable to set up audio input because of a problem with input format.
[DEBUG] [06/16 13:32:38] The closest format available is QAudioFormat(-1Hz, -1bit, channelCount=-1, sampleType=Unknown, byteOrder=LittleEndian, codec="")
[DEBUG] [06/16 13:32:38] Unable to set up audio output because of a problem with output format.
[DEBUG] [06/16 13:32:38] The closest format available is QAudioFormat(-1Hz, -1bit, channelCount=-1, sampleType=Unknown, byteOrder=LittleEndian, codec="")
[DEBUG] [06/16 13:32:38] Created Display Window.
[DEBUG] [06/16 13:32:38] GL Version:  “3.0 Mesa 10.5.2”
[DEBUG] [06/16 13:32:38] GL Shader Language Version:  “1.30”
[DEBUG] [06/16 13:32:38] GL Vendor:  “X.Org
[DEBUG] [06/16 13:32:38] GL Renderer:  “Gallium 0.4 on AMD CAICOS”
[DEBUG] [06/16 13:32:38] Initialized Display.
[WARNING] [06/16 13:32:38] QSGContext::initialize: depth buffer support missing, expect rendering errors
[WARNING] [06/16 13:32:38] QSGContext::initialize: stencil buffer support missing, expect rendering errors
[DEBUG] [06/16 13:32:38] Offscreen UI resizing to  1855 x 1056  with pixel ratio  1
[DEBUG] [06/16 13:32:38] Initialized Offscreen UI.
[DEBUG] [06/16 13:32:38] First call to Menu::getInstance() - initing menu.
[WARNING] [06/16 13:32:38] QQmlComponent: Created graphical object was not placed in the graphics scene.
[WARNING] [06/16 13:32:38] QQmlComponent: Created graphical object was not placed in the graphics scene.
[WARNING] [06/16 13:32:38] QQmlComponent: Created graphical object was not placed in the graphics scene.
[WARNING] [06/16 13:32:38] QQmlComponent: Created graphical object was not placed in the graphics scene.
[WARNING] [06/16 13:32:38] QQmlComponent: Created graphical object was not placed in the graphics scene.
[WARNING] [06/16 13:32:38] QQmlComponent: Created graphical object was not placed in the graphics scene.
[WARNING] [06/16 13:32:38] QQmlComponent: Created graphical object was not placed in the graphics scene.
[WARNING] [06/16 13:32:38] QQmlComponent: Created graphical object was not placed in the graphics scene.
[WARNING] [06/16 13:32:38] QQmlComponent: Created graphical object was not placed in the graphics scene.
[WARNING] [06/16 13:32:38] QQmlComponent: Created graphical object was not placed in the graphics scene.
[WARNING] [06/16 13:32:38] QQmlComponent: Created graphical object was not placed in the graphics scene.
[WARNING] [06/16 13:32:38] QQmlComponent: Created graphical object was not placed in the graphics scene.
[WARNING] [06/16 13:32:38] QQmlComponent: Created graphical object was not placed in the graphics scene.
[WARNING] [06/16 13:32:38] QQmlComponent: Created graphical object was not placed in the graphics scene.
[WARNING] [06/16 13:32:38] QQmlComponent: Created graphical object was not placed in the graphics scene.
[WARNING] [06/16 13:32:38] QQmlComponent: Created graphical object was not placed in the graphics scene.
[WARNING] [06/16 13:32:38] QQmlComponent: Created graphical object was not placed in the graphics scene.
[WARNING] [06/16 13:32:38] QQmlComponent: Created graphical object was not placed in the graphics scene.
[WARNING] [06/16 13:32:38] QQmlComponent: Created graphical object was not placed in the graphics scene.
[WARNING] [06/16 13:32:38] QQmlComponent: Created graphical object was not placed in the graphics scene.
[WARNING] [06/16 13:32:38] QQmlComponent: Created graphical object was not placed in the graphics scene.
[WARNING] [06/16 13:32:38] QQmlComponent: Created graphical object was not placed in the graphics scene.
[WARNING] [06/16 13:32:38] QQmlComponent: Created graphical object was not placed in the graphics scene.
[WARNING] [06/16 13:32:38] QQmlComponent: Created graphical object was not placed in the graphics scene.
[WARNING] [06/16 13:32:38] QQmlComponent: Created graphical object was not placed in the graphics scene.
[WARNING] [06/16 13:32:38] QQmlComponent: Created graphical object was not placed in the graphics scene.
[WARNING] [06/16 13:32:38] QQmlComponent: Created graphical object was not placed in the graphics scene.
[WARNING] [06/16 13:32:38] appmenu-qt: registerWindow 206 “File”
[WARNING] [06/16 13:32:38] appmenu-qt: registerWindow 206 “Edit”
[WARNING] [06/16 13:32:38] appmenu-qt: registerWindow 206 “Tools”
[WARNING] [06/16 13:32:38] appmenu-qt: registerWindow 206 “Avatar”
[WARNING] [06/16 13:32:38] appmenu-qt: registerWindow 206 “View”
[WARNING] [06/16 13:32:38] appmenu-qt: registerWindow 206 “Developer”
[WARNING] [06/16 13:32:38] appmenu-qt: registerWindow 206 “Help”
[DEBUG] [06/16 13:32:41] Oculus SDK 0.5.0.1
[DEBUG] [06/16 13:32:41] Logging activity “connected_device”
[DEBUG] [06/16 13:32:41] No valid access token present. Bailing on invoked request to “/api/v1/user_activities” that requires authentication
Error: [Context] Unable to obtain x11 visual from context
[DEBUG] [06/16 13:32:41] Trying to go to URL “hifi://entry”
[DEBUG] [06/16 13:32:41] Loaded settings
[DEBUG] [06/16 13:32:41] Waiting for inital public socket from STUN. Will not send domain-server check in.
[DEBUG] [06/16 13:32:42] init() complete.
[DEBUG] [06/16 13:32:42] Startup time: 5.01 seconds.


#6

For the QtQuick.Controls.Styles issue try to install qml-module-qtquick-controls:

sudo apt-get install qml-module-qtquick-controls

In addition it seems that your graphic card is a Radeon wih OpenGl 3.0

DEBUG] [06/16 10:32:46] GL Version:  “3.0 Mesa 10.5.2”
[DEBUG] [06/16 10:32:46] GL Shader Language Version:  “1.30”
[DEBUG] [06/16 10:32:46] GL Vendor:  “X.Org
[DEBUG] [06/16 10:32:46] GL Renderer:  “Gallium 0.4 on AMD CAICOS”

This discussion states that OpenGL 4.1 is supported, but it has been reported to work with 3.5: https://alphas.highfidelity.io/t/what-version-of-opengl-is-required/4710

See also https://alphas.highfidelity.io/t/current-minimum-graphics-driver-support/4964 .

I don’t know much about AMD Radeon cards to be of help in your display issues. I’m using NVIDIA GTX 970 with 352.09 driver from PPA-xorg-edgers and it has OpenGL 4.5.0:

[DEBUG] [06/17 09:59:08] Output Buffer capacity in frames:  3
[DEBUG] [06/17 09:59:08] Created Display Window.
[DEBUG] [06/17 09:59:08] GL Version:  “4.5.0 NVIDIA 352.09”
[DEBUG] [06/17 09:59:08] GL Shader Language Version:  “4.50 NVIDIA”
[DEBUG] [06/17 09:59:08] GL Vendor:  “NVIDIA Corporation”
[DEBUG] [06/17 09:59:08] GL Renderer:  “GeForce GTX 970/PCIe/SSE2”
[DEBUG] [06/17 09:59:08] Initialized Display.

I compiled the interface again today with the latest git version successfully with the following results in hifi hq:


#7

Error: [Context] Unable to obtain x11 visual from context

That particular error message comes from LibOVR and seems to be a GLX issue – see https://worklist.net/20542 for possible workarounds.


#8

@rcantada I did attempt to install qml-module-qtquick-controls however it was already installed.

@humbletim I was unable to find the exact lines and code in the Application.cpp in the interface/src directory.
The problem goes away if I comment out lines 2100 to 2015 in Application.cpp, which is the following paragraph

OculusManager::connect();

if (OculusManager::isConnected()) {

    QMetaObject::invokeMethod(Menu::getInstance()->getActionForOption(MenuOption::Fullscreen),

        "trigger",

        Qt::QueuedConnection);

} 

#9

IT WORKS!!!

I have completed all of the above and want to thank the below for their hard work on the Ubuntu side of this!

@rcantada @humbletim @thoys


#10

hi @rcantada I am unable to have audio and I have installed:
apt-get install git build-essential cmake qt5-default qtscript5-dev
libssl-dev qttools5-dev qttools5-dev-tools qtmultimedia5-dev
libqt5svg5-dev libqt5webkit5-dev libsdl2-dev libasound2 libxmu-dev
libxi-dev freeglut3-dev libasound2-dev libjack-jackd2-dev libxrandr-dev
libqt5xmlpatterns5-dev libqt5xmlpatterns5 libqt5xmlpatterns5-private-dev
qtquickcontrols qtweb*

When I login the audio controls are disabled (greyed out) is there a lib i need to enable audio?


#11

Sorry, I have not tested audio yet. But menu>tools>audio and developer>audio, and the mic button in the mirror are available (not greyed out). I’m on UbuntuStudio where all the jack stuff are installed by default. Some of the jack stuff in my ubuntustudio by synaptic search are:
jackd
jackd2
jackd2-firewire
laitools
libasound2-plugins
libjack-jackd2-0
libjack-jackd2-dev
librtaudio5
librtmidi2
pulseaudio-module-jack
qjackctl
a2jmidid
alsa-tools-gui
zita-ajbridge
zita-at1
zita-lrx
zita-mu1
zita-rev1
zynjacku

The interface logs related to audio says:


[DEBUG] [07/12 08:07:34] The audio input device  “alsa_input.pci-0000_00_1b.0.analog-stereo” is available.
[DEBUG] [07/12 08:07:34] The format to be used for audio input is QAudioFormat(24000Hz, 16bit, channelCount=1, sampleType=SignedInt, byteOrder=LittleEndian, codec=“audio/pcm”)
[DEBUG] [07/12 08:07:34] No resampling required for audio input to match desired network format.
[DEBUG] [07/12 08:07:34] Logging activity “launch”
[DEBUG] [07/12 08:07:34] No valid access token present. Bailing on invoked request to “/api/v1/user_activities” that requires authentication
[DEBUG] [07/12 08:07:34] The default audio output device is “alsa_output.pci-0000_00_1b.0.analog-stereo”
[DEBUG] [07/12 08:07:34] The audio output device  “alsa_output.pci-0000_00_1b.0.analog-stereo” is available.
[DEBUG] [07/12 08:07:34] The format to be used for audio output is QAudioFormat(24000Hz, 16bit, channelCount=2, sampleType=SignedInt, byteOrder=LittleEndian, codec=“audio/pcm”)
[DEBUG] [07/12 08:07:34] No resampling required for network output to match actual output format.
[DEBUG] [07/12 08:07:34] Output Buffer capacity in frames:  3

[DEBUG] [07/12 08:07:36] Done downloading script at: “http://s3.amazonaws.com/hifi-public/scripts/selectAudioDevice.js

[DEBUG] [07/12 08:07:36] Added “Audio Mixer” (M) {b7d2afdd-a7c8-407d-82ba-dfd9cdb45f10} 54.215.97.188:43159 / 10.249.135.145:43159

DEBUG] [07/12 08:07:38] Starting QAudioOutput for local injector QAudioOutput(0x7fa004011770)

[DEBUG] [07/12 08:07:45] Starting QAudioOutput for local injector QAudioOutput(0x7f9ff8011770)

[DEBUG] [07/12 08:08:11] Killed “Audio Mixer” (M) {b7d2afdd-a7c8-407d-82ba-dfd9cdb45f10} 54.215.97.188:43159 / 10.249.135.145:43159

[DEBUG] [07/12 08:08:14] Starting QAudioOutput for local injector QAudioOutput(0x7f9ffc011770)
[DEBUG] [07/12 08:08:14] Starting QAudioOutput for local injector QAudioOutput(0x7f9ff0011770)
[WARNING] [07/12 08:08:14] Got a buffer underflow!
[DEBUG] [07/12 08:08:14] Packet hash mismatch on 35 - Sender QUuid("{93448f12-3c4c-4492-8fef-69a8f788530e}")
[DEBUG] [07/12 08:08:15] Starting QAudioOutput for local injector QAudioOutput(0x7fa0f802e2a0)

Also check if you have
libqt5multimedia5
libqt5multimedia5-plugins

I also have
libqt5multimediaquick-p5
libqt5multimediawidgets5


#12

@rcantada can you provide a FULL list of apt-get files you used in detail for Ubuntu Studio 64 bit? I want to completely replicate your process.


#13

For StackManager

sudo apt-get install libquazip-qt5-dev libquazip-dev libquazip-headers libquazip-qt5-1 libquazip1 libquazip-doc libqt5widgets5 libqt5gui5 libqt5svg5 libqt5svg5-dev libqt5core5a libqt5network5 libqt5webkit5-dev libqt5webkit5 zlib1g-dev

For HiFi

sudo apt-get install git build-essential cmake qt5-default qtscript5-dev libssl-dev qttools5-dev qttools5-dev-tools qtmultimedia5-dev libqt5svg5-dev libqt5webkit5-dev libsdl2-dev libasound2 libxmu-dev libxi-dev freeglut3-dev libasound2-dev libjack-jackd2-dev libxrandr-dev libqt5xmlpatterns5-dev libqt5xmlpatterns5 libqt5xmlpatterns5-private-dev qml-module-qtquick-controls

Please see my synaptic markings and some settings at https://www.dropbox.com/s/u7k97288lr8sewk/synapticmarkings.zip?dl=0