Merge lp:~popey/ubuntu-filemanager-app/add-click-deps into lp:ubuntu-filemanager-app
| Status: | Merged |
|---|---|
| Approved by: | Alan Pope πΊπ§π± π¦ on 2015-10-19 |
| Approved revision: | 469 |
| Merged at revision: | 481 |
| Proposed branch: | lp:~popey/ubuntu-filemanager-app/add-click-deps |
| Merge into: | lp:ubuntu-filemanager-app |
| Diff against target: |
538 lines (+518/-0) 3 files modified
CMakeLists.txt (+17/-0) filemanager-libs.json (+50/-0) get-click-deps (+451/-0) |
| To merge this branch: | bzr merge lp:~popey/ubuntu-filemanager-app/add-click-deps |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Carlos Jose Mazieri | 2015-09-07 | Approve on 2015-10-19 | |
| Ubuntu Phone Apps Jenkins Bot | continuous-integration | Approve on 2015-10-14 | |
|
Review via email:
|
|||
Commit Message
Add basics to cmake file and necessary parts to pull in samba libs.
Description of the Change
First pass at adding get-click-deps from Stefano Verzegnassi to pull samba libs in during build process. Not final.
- 467. By Alan Pope πΊπ§π± π¦ on 2015-09-07
-
New get-click-deps from Stefano and updated deployment process
PASSED: Continuous integration, rev:467
http://
Executed test runs:
SUCCESS: http://
Click here to trigger a rebuild:
http://
| Alan Pope πΊπ§π± π¦ (popey) wrote : | # |
Ok, built a click based on this merge, which builds successfully, and bundles in all the samba libs.
http://
Tried goto -> smb://nas.local or some other local IP which serves up over SMB and it failed. Here's a log extract:- http://
Pretty sure this worked when I manually put all the samba libs in an already installed file manager build from the past. Am I doing something wrong? (probably)
Feel like I'm having the same issue with loviewer dependencies (libraries not found by the application).
May the links to the shared libraries, provided in the click package, be somehow broken? (probably when cp'ing files from temp folder to their destination)
> Ok, built a click based on this merge, which builds successfully, and bundles
> in all the samba libs.
> http://
> rmhf.click
>
> Tried goto -> smb://nas.local or some other local IP which serves up over SMB
> and it failed. Here's a log extract:- http://
>
> Pretty sure this worked when I manually put all the samba libs in an already
> installed file manager build from the past. Am I doing something wrong?
> (probably)
Try "unlock full access" first, it blocks remote browsing.
Next MPs will correct this as we discussed on File Manager meeting.
| Alan Pope πΊπ§π± π¦ (popey) wrote : | # |
@stefano, I think it must be finding the libs, because the app crashes (won't even start) if the libs aren't there, or are in the wrong directory usually.
@carlos, yes, I tried that, but it still wouldn't connect. Will try on a different device as this one has lots of other things installed which may compromise it.
| Alan Pope πΊπ§π± π¦ (popey) wrote : | # |
Just tried this click on my "retail" bq e4.5 (so it's still read only - not had any debian packages installed - is as a customer would find it). Not able to browse to my NAS.
Is there a "known good" config that this should connect to?
Looking at the log you posted, it looks like there is an extra space
after "smb":
void DirModel:
bool) DirModel_
be read: "smb ://192.168.1.3/"
The correct url must be "smb://
BTW, I have had some hard time trying to type "smb" urls on the device.
On 9/8/15, Alan Pope ξΏ <email address hidden> wrote:
> Just tried this click on my "retail" bq e4.5 (so it's still read only - not
> had any debian packages installed - is as a customer would find it). Not
> able to browse to my NAS.
>
> http://
>
> Is there a "known good" config that this should connect to?
> --
> https:/
> Your team Ubuntu File Manager Developers is requested to review the proposed
> merge of lp:~popey/ubuntu-filemanager-app/add-click-deps into
> lp:ubuntu-filemanager-app.
>
| Alan Pope πΊπ§π± π¦ (popey) wrote : | # |
Well spotted. We should disable the keyboard helpers (which try to autocorrect when you type in a location) and that will stop the space getting added, and also stop smb being 'corrected' to sob.
I tried again and this time the file manager crashes.
The crash dump was uploaded, and processed. It's a secured page so I printed it as a PDF, I hope that's readable.
It is hard to say something about the crash, if you have the
'libsmbclient' installed in your phone you can try this click package
which contains 'Network' in Places to start navigating in Samba.
https:/
Have you tested on Desktop?
On 9/8/15, Alan Pope ξΏ <email address hidden> wrote:
> Well spotted. We should disable the keyboard helpers (which try to
> autocorrect when you type in a location) and that will stop the space
> getting added, and also stop smb being 'corrected' to sob.
>
> I tried again and this time the file manager crashes.
>
> http://
>
> The crash dump was uploaded, and processed. It's a secured page so I printed
> it as a PDF, I hope that's readable.
>
> http://
> --
> https:/
> Your team Ubuntu File Manager Developers is requested to review the proposed
> merge of lp:~popey/ubuntu-filemanager-app/add-click-deps into
> lp:ubuntu-filemanager-app.
>
> It is hard to say something about the crash, if you have the
> 'libsmbclient' installed in your phone you can try this click package
> which contains 'Network' in Places to start navigating in Samba.
> https:/
> mhf.click?dl=0
>
> Have you tested on Desktop?
>
> On 9/8/15, Alan Pope ξΏ <email address hidden> wrote:
> > Well spotted. We should disable the keyboard helpers (which try to
> > autocorrect when you type in a location) and that will stop the space
> > getting added, and also stop smb being 'corrected' to sob.
> >
> > I tried again and this time the file manager crashes.
> >
> > http://
> >
> > The crash dump was uploaded, and processed. It's a secured page so I printed
> > it as a PDF, I hope that's readable.
> >
> > http://
> > --
> > https:/
> deps/+merge/270287
> > Your team Ubuntu File Manager Developers is requested to review the proposed
> > merge of lp:~popey/ubuntu-filemanager-app/add-click-deps into
> > lp:ubuntu-filemanager-app.
> >
@popey, I do confirm the crash on Samba browsing, it happens on the phone, works on Desktop and works on the phone using the plugin/model as console application.
I am sorry for that, I did not test it properly, I worked on this on weekend and cannot solve it, I need the debug to work in order to find out the problem, I am able to use the debug from qtCreator on device, but it does not work properly, it behaves as a non debug invocation, when the crash happens there is not information about it.
Also tried using "gdb" directly on the device without success, in this case I could generate a core file with no enough information either.
Also added some qDebug() lines but it did not give me the reason for the crash.
If you have any idea about the crash or about other way of debugging please share with me.
Hello,
I did a first test without removing my Samba libraries.
On desktop it downloaded the libraries but on armhf it did not.
See some output:
-- Setting BZR_SOURCE to lp:ubuntu-filemanager-app
Grabbing upstream libs to /home/carlos/
Installing upstream libs from /home/carlos/
Following files to install:-
-- Found PkgConfig: arm-linux-
-- samba include=
-- samba lib=/usr/
-- Found samba: include=
Questions:
1. Did I do something wrong?
2. Cmake still found my installed samba libraries, should not it be changed to find downloaded stuff including libsmbclient.h which I think is missed from download script?
3. I am wondering how is the mechanism used to load local libraries in the click package, can anyone tell how it works?
| Alan Pope πΊπ§π± π¦ (popey) wrote : | # |
Ok, I just checked building this branch on a nexus 7. Here's what I did to prove it builds:-
# grab this branch
bzr branch lp:~popey/ubuntu-filemanager-app/add-click-deps
# install build dependencies and cmake and phablet tools (to get click-buddy)
sudo apt-get install cmake debhelper intltool qtbase5-dev qtdeclarative5-dev qt5-default pkg-kde-tools python3-all libtag1-dev libpam0g-dev libsmbclient-dev cmake phablet-tools
# Build it:-
click-buddy --dir add-click-deps/
This grabbed the binary-built stuff which gets used at runtime, it then compiles and built filemanager.
I guess maybe when you un-installed samba libs you removed the headers needed for building?
Hello Alan,
My attempt was done using the SDK armhf 15-04.
I see that you did install 'libsmbclient-dev' (it installs all the samba libraries) which I thought it was going to be downloaded by the proposed solution.
I thought that solution would bring all the necessary resources to compile and deploy on device. Any new developer will try to create the click package using SDK.
Am I wrong?
Can you try it again after removing all the samba libraries?
If so, I would suggest a sequence of commands:
sudo apt-get remove libsmbclient-dev
sudo apt-get autoremove # I hope this will uninstall all other samba libraries
click-buddy --dir add-click-deps/
If you want, can you also try it using armhf SDK?
Thanks,
Carlos
- 468. By Alan Pope πΊπ§π± π¦ on 2015-10-13
-
Merge trunk
PASSED: Continuous integration, rev:468
http://
Executed test runs:
SUCCESS: http://
Click here to trigger a rebuild:
http://
- 469. By Alan Pope πΊπ§π± π¦ on 2015-10-14
-
update get-click-deps to python3
PASSED: Continuous integration, rev:469
http://
Executed test runs:
SUCCESS: http://
Click here to trigger a rebuild:
http://
Thanks,
I am looking forward to getting the entire Samba stuff in the next release.

PASSED: Continuous integration, rev:466 91.189. 93.70:8080/ job/ubuntu- filemanager- app-ci/ 539/ 91.189. 93.70:8080/ job/ubuntu- filemanager- app-vivid- amd64-ci/ 161
http://
Executed test runs:
SUCCESS: http://
Click here to trigger a rebuild: 91.189. 93.70:8080/ job/ubuntu- filemanager- app-ci/ 539/rebuild
http://