The binary built can't be run

Bug #1381312 reported by Leo Arias
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gallery-app (Ubuntu)
New
Low
Unassigned

Bug Description

The binary built contains a hardcoded path that points to the wrong place when run from the build directory.

To reproduce:

$ bzr branch lp:gallery-app trunk
$ cd trunk/
$ mkdir builddir
$ cd builddir/
$ cmake ../
$ make -j 8
$ ./src/gallery-ap

You will get an error like:
file:///home/elopio/workspace/canonical/gallery-app/trunk/builddir/rc/qml/GalleryApplication.qml: File not found

And an empty window.

Revision history for this message
Leo Arias (elopio) wrote :

The problem is in src/util/resource.cpp

QUrl Resource::getRcUrl(const QString& path)
{
    if (isClick() || isRunningInstalled()) {
        return QUrl::fromLocalFile(galleryDirectory() + "/rc/" + path);
    } else {
        return QUrl::fromLocalFile(galleryDirectory() + "/../rc/" + path);
    }
}

I guess isRunningInstalled is returning True. In this case, it should return False, but even the else clause would be wrong, as the rc file is not there inside the build directory.

affects: gallery-app → gallery-app (Ubuntu)
Changed in gallery-app (Ubuntu):
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.