qtc_launch_gallery cannot find examples

Bug #1551261 reported by Jamie Strandboge on 2016-02-29
This bug affects 4 people
Affects Status Importance Assigned to Milestone
One Hundred Papercuts
qtcreator-plugin-ubuntu (Ubuntu)
ubuntu-sdk-ide (Ubuntu)

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

I have ubuntu-ui-toolkit-examples installed:
$ dpkg -L ubuntu-ui-toolkit-examples

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/

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)

Jamie Strandboge (jdstrand) wrote :
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in qtcreator-plugin-ubuntu (Ubuntu):
status: New → Confirmed
Changed in qtcreator-plugin-ubuntu (Ubuntu):
importance: Undecided → Medium
Changed in hundredpapercuts:
status: New → Confirmed
importance: Undecided → Medium
fcole90 (fcole90) on 2016-04-15
Changed in ubuntu-sdk-ide (Ubuntu):
status: New → Confirmed
Changed in ubuntu-sdk-ide (Ubuntu):
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers