Adding new files in subdirectory deploy them in root directory with qmake template

Bug #1488047 reported by Didier Roche-Tolomelli
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qtcreator-plugin-ubuntu (Ubuntu)
Triaged
Wishlist
Unassigned

Bug Description

Using only the IDE, the deployed application from the qmake template isn't executable as all files are shipped to the app directory.

1. Create a qmake application
2. add a subdirectory to the QML module like "components"
3. right click on QML -> Add New
-> select a file type (Qt/QML File for isntance)
4. name it something like "foo.qml" in the "components" subdirectory.
5. import it from Main.qml: import "components"

-> then, if you deploy this app to the phone, it won't run (fail at start). The issue is that the root .pro file contains:
DISTFILES += \
    component/foo.qml

which ships foo.qml next to Main.qml, and not in a component subdirectory, making the app not runnable.

ProblemType: Bug
DistroRelease: Ubuntu 15.10
Package: qtcreator-plugin-ubuntu 3.5.0+15.10.20150817-0ubuntu1
ProcVersionSignature: Ubuntu 4.1.0-3.3-generic 4.1.3
Uname: Linux 4.1.0-3-generic x86_64
ApportVersion: 2.18-0ubuntu7
Architecture: amd64
CurrentDesktop: Unity
Date: Mon Aug 24 12:50:41 2015
InstallationDate: Installed on 2012-05-28 (1182 days ago)
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425)
SourcePackage: qtcreator-plugin-ubuntu
UpgradeStatus: Upgraded to wily on 2014-10-31 (296 days ago)

Tags: devexp
Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :
Revision history for this message
Benjamin Zeller (zeller-benjamin) wrote :

Not sure how to handle this. This is default qmake behaviour. You need to add the files to the correct
install target, or they won't be installed into the right directory.

Changed in qtcreator-plugin-ubuntu (Ubuntu):
importance: Undecided → Wishlist
status: New → Triaged
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.