← Back to team overview

ubuntu-sdk-bugs team mailing list archive

[Bug 1551261] [NEW] qtc_launch_gallery cannot find examples

 

Public bug reported:

On xenial, if I go to Tools/Ubuntu/Showcase Gallery in QtCreator, I see:

/usr/share/qtcreator/ubuntu/scripts/qtc_launch_gallery finished with
code 1

If I launch /usr/share/qtcreator/ubuntu/scripts/qtc_launch_gallery from a terminal, I see:
$ /usr/share/qtcreator/ubuntu/scripts/qtc_launch_gallery
Could not find the ubuntu-ui-toolkit examples, please make sure they are installed
[1]

I have ubuntu-ui-toolkit-examples installed:
$ dpkg -L ubuntu-ui-toolkit-examples
...
/usr/lib/x86_64-linux-gnu/qt5/examples/ubuntu-ui-toolkit/examples/ubuntu-ui-toolkit-gallery/UbuntuListViews.qml

Looking at /usr/share/qtcreator/ubuntu/scripts/qtc_launch_gallery, I see:
if [[ `dirname $0` =~ ubuntu-sdk-ide ]]; then
  echo Run from IDE
  EXAMPLES_PATH="$(/usr/ubuntu-sdk-dev/bin/qmake -query QT_INSTALL_EXAMPLES)/ubuntu-ui-toolkit/examples"
  export LD_LIBRARY_PATH=/usr/ubuntu-sdk-dev/lib/
  QMLSCENE="/usr/ubuntu-sdk-dev/bin/qmlscene"
else
  EXAMPLES_PATH="/usr/lib/ubuntu-ui-toolkit/examples"
  QMLSCENE="/usr/bin/qmlscene"
fi


Looking at 'ps auxww|grep qtc' output, I see:
$ ps auxww|grep qtc
jamie     5977  3.4  4.9 2034464 396284 ?      Sl   08:35   0:22 qtcreator

Therefore, the 'else' is using and it sets EXAMPLES_PATH to /usr/lib
/ubuntu-ui-toolkit/examples, but it should be set to /usr/lib/x86_64
-linux-gnu/qt5/examples/ubuntu-ui-toolkit/examples by looking at what
ubuntu-ui-toolkit-examples ships.

WORKAROUND: adjust
/usr/share/qtcreator/ubuntu/scripts/qtc_launch_gallery to have:
EXAMPLES_PATH="/usr/lib/x86_64-linux-gnu/qt5/examples/ubuntu-ui-
toolkit/examples"

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: qtcreator-plugin-ubuntu-common 3.5.0+16.04.20160225-0ubuntu1
ProcVersionSignature: Ubuntu 4.4.0-8.23-generic 4.4.2
Uname: Linux 4.4.0-8-generic x86_64
ApportVersion: 2.20-0ubuntu3
Architecture: amd64
CurrentDesktop: Unity
Date: Mon Feb 29 08:41:48 2016
InstallationDate: Installed on 2015-06-13 (260 days ago)
InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Release amd64 (20150422)
PackageArchitecture: all
SourcePackage: qtcreator-plugin-ubuntu
UpgradeStatus: Upgraded to xenial on 2016-01-12 (48 days ago)

** Affects: qtcreator-plugin-ubuntu (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug xenial

-- 
You received this bug notification because you are a member of Ubuntu
SDK bug tracking, which is subscribed to qtcreator-plugin-ubuntu in
Ubuntu.
https://bugs.launchpad.net/bugs/1551261

Title:
  qtc_launch_gallery cannot find examples

Status in qtcreator-plugin-ubuntu package in Ubuntu:
  New

Bug description:
  On xenial, if I go to Tools/Ubuntu/Showcase Gallery in QtCreator, I
  see:

  /usr/share/qtcreator/ubuntu/scripts/qtc_launch_gallery finished with
  code 1

  If I launch /usr/share/qtcreator/ubuntu/scripts/qtc_launch_gallery from a terminal, I see:
  $ /usr/share/qtcreator/ubuntu/scripts/qtc_launch_gallery
  Could not find the ubuntu-ui-toolkit examples, please make sure they are installed
  [1]

  I have ubuntu-ui-toolkit-examples installed:
  $ dpkg -L ubuntu-ui-toolkit-examples
  ...
  /usr/lib/x86_64-linux-gnu/qt5/examples/ubuntu-ui-toolkit/examples/ubuntu-ui-toolkit-gallery/UbuntuListViews.qml

  Looking at /usr/share/qtcreator/ubuntu/scripts/qtc_launch_gallery, I see:
  if [[ `dirname $0` =~ ubuntu-sdk-ide ]]; then
    echo Run from IDE
    EXAMPLES_PATH="$(/usr/ubuntu-sdk-dev/bin/qmake -query QT_INSTALL_EXAMPLES)/ubuntu-ui-toolkit/examples"
    export LD_LIBRARY_PATH=/usr/ubuntu-sdk-dev/lib/
    QMLSCENE="/usr/ubuntu-sdk-dev/bin/qmlscene"
  else
    EXAMPLES_PATH="/usr/lib/ubuntu-ui-toolkit/examples"
    QMLSCENE="/usr/bin/qmlscene"
  fi

  
  Looking at 'ps auxww|grep qtc' output, I see:
  $ ps auxww|grep qtc
  jamie     5977  3.4  4.9 2034464 396284 ?      Sl   08:35   0:22 qtcreator

  Therefore, the 'else' is using and it sets EXAMPLES_PATH to /usr/lib
  /ubuntu-ui-toolkit/examples, but it should be set to /usr/lib/x86_64
  -linux-gnu/qt5/examples/ubuntu-ui-toolkit/examples by looking at what
  ubuntu-ui-toolkit-examples ships.

  WORKAROUND: adjust
  /usr/share/qtcreator/ubuntu/scripts/qtc_launch_gallery to have:
  EXAMPLES_PATH="/usr/lib/x86_64-linux-gnu/qt5/examples/ubuntu-ui-
  toolkit/examples"

  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: qtcreator-plugin-ubuntu-common 3.5.0+16.04.20160225-0ubuntu1
  ProcVersionSignature: Ubuntu 4.4.0-8.23-generic 4.4.2
  Uname: Linux 4.4.0-8-generic x86_64
  ApportVersion: 2.20-0ubuntu3
  Architecture: amd64
  CurrentDesktop: Unity
  Date: Mon Feb 29 08:41:48 2016
  InstallationDate: Installed on 2015-06-13 (260 days ago)
  InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Release amd64 (20150422)
  PackageArchitecture: all
  SourcePackage: qtcreator-plugin-ubuntu
  UpgradeStatus: Upgraded to xenial on 2016-01-12 (48 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qtcreator-plugin-ubuntu/+bug/1551261/+subscriptions


Follow ups