Merge lp:~dpm/ubuntu-filemanager-app/fix-libname into lp:ubuntu-filemanager-app

Proposed by David Planella
Status: Merged
Approved by: Nicholas Skaggs
Approved revision: 163
Merged at revision: 162
Proposed branch: lp:~dpm/ubuntu-filemanager-app/fix-libname
Merge into: lp:ubuntu-filemanager-app
Diff against target: 38 lines (+7/-6)
2 files modified
apparmor.json (+4/-3)
src/plugin/folderlistmodel/CMakeLists.txt (+3/-3)
To merge this branch: bzr merge lp:~dpm/ubuntu-filemanager-app/fix-libname
Reviewer Review Type Date Requested Status
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Ubuntu File Manager Developers Pending
Review via email: mp+217007@code.launchpad.net

Commit message

Fix the library name to match that of the qmldir file, so that the app finds the plugin at runtime

Description of the change

Fix the library name to match that of the qmldir file, so that the app finds the plugin at runtime. In addition, there's also a trivial fix to the apparmor profile.

There are two possible options to test that this works:

1) Install the click package created from this branch and check that it runs on the device:
http://people.canonical.com/~dpm/click/com.ubuntu.filemanager_0.3_armhf.click

Alternatively:

2) Run the app on the device via Qt Creator:

- Start Qt Creator
- Open the top CMakeLists.txt file from this branch
- Ensure you select the UbuntuSDK armhf kit when prompted by Qt Creator (*)
- Modify the desktop file as a workaround for a Qt Creator bug. Change the Exec line to read:
  Exec=lib/arm-linux-gnueabihf/bin/@EXEC@
- Ensure you've got a device connected and that the armhf kit is selected
- Press the big green "Play" button or Ctrl+R
- The app should be deployed (unconfined) and be running on your device now

(*) If you don't have an armhf click kit, you'll need to create a click chroot first:

- Go to Tools > Options > Ubuntu > Click
- Click on Create Click Target
- Once created, you'll need to add the dependencies for the file manager app:
  - Click on the Maintain button on your chroot
  - On the terminal prompt that is started, type 'apt-get install libtag1-dev:armhf'
  - Close the terminal when the installation finishes
- Now you can either do a clean checkout and wait to be prompted by Qt Creator to add the armhf kit, or alternatively:
- Go to the Projects tab > Add kit and then select the UbuntuSDK armhf kit

To post a comment you must log in.
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Alan Pope 🍺🐧🐱 πŸ¦„ (popey) wrote :

Tested the click on my nexus 4 and it works well.

Revision history for this message
Alan Pope 🍺🐧🐱 πŸ¦„ (popey) wrote :

Also got it building and running on device..

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Nicholas Skaggs (nskaggs) wrote :

Apart from the file location, the version and name of the library were the other things I had in question. Glad you knew the answer!

Revision history for this message
David Planella (dpm) wrote :

Nick, would you know why Jenkins is failing on the second pass? Would it be
possible to retrigger the jobs?

On Thu, Apr 24, 2014 at 5:14 PM, Nicholas Skaggs <
<email address hidden>> wrote:

> Apart from the file location, the version and name of the library were the
> other things I had in question. Glad you knew the answer!
> --
>
> https://code.launchpad.net/~dpm/ubuntu-filemanager-app/fix-libname/+merge/217007
> You are the owner of lp:~dpm/ubuntu-filemanager-app/fix-libname.
>

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) :
review: Approve (continuous-integration)
Revision history for this message
Nicholas Skaggs (nskaggs) wrote :

David, I re-triggered. Now that these build issues are solved, it's time to look at the tests and do some spring cleaning as well..

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'apparmor.json'
2--- apparmor.json 2014-04-15 08:19:12 +0000
3+++ apparmor.json 2014-04-24 09:09:22 +0000
4@@ -1,4 +1,5 @@
5 {
6- "policy_version": 1.1,
7- "template": "unconfined"
8-}
9+ "policy_version": 1.1,
10+ "template": "unconfined",
11+ "policy_groups": []
12+}
13\ No newline at end of file
14
15=== modified file 'src/plugin/folderlistmodel/CMakeLists.txt'
16--- src/plugin/folderlistmodel/CMakeLists.txt 2014-03-29 17:04:56 +0000
17+++ src/plugin/folderlistmodel/CMakeLists.txt 2014-04-24 09:09:22 +0000
18@@ -34,11 +34,11 @@
19 trash/qtrashdir.h
20 )
21
22-add_library(folderlistmodel MODULE
23+add_library(nemofolderlistmodel MODULE
24 ${folderlistmodel_SRCS}
25 )
26
27-qt5_use_modules(folderlistmodel Gui Qml Quick Widgets)
28+qt5_use_modules(nemofolderlistmodel Gui Qml Quick Widgets)
29
30 # Copy qmldir file to build dir for running in QtCreator
31 if(NOT "${CMAKE_CURRENT_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_BINARY_DIR}")
32@@ -49,6 +49,6 @@
33 endif(NOT "${CMAKE_CURRENT_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_BINARY_DIR}")
34
35 # Install plugin file
36-install(TARGETS folderlistmodel DESTINATION ${QT_IMPORTS_DIR}/org/nemomobile/folderlistmodel/)
37+install(TARGETS nemofolderlistmodel DESTINATION ${QT_IMPORTS_DIR}/org/nemomobile/folderlistmodel/)
38 install(FILES qmldir DESTINATION ${QT_IMPORTS_DIR}/org/nemomobile/folderlistmodel/)
39

Subscribers

People subscribed via source and target branches