Adding new files in subdirectory deploy them in root directory with qmake template
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/
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-
ProcVersionSign
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-
UpgradeStatus: Upgraded to wily on 2014-10-31 (296 days ago)
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.