Re: [SailfishDevel] Using QtBluetooth 5.4 Backport in a harbour-app

2014-12-11 Thread Harald Schmitt
Am 10.12.2014 um 18:24 schrieb Richard Rondu:
> Hi, the backport is not completely up-to-date with QtBluetooth 5.4, I
> have to update it. Nevertheless It should work with standard
> bluetooth, I haven't tried with BLE though. 
> Other part of QtConnectivity that are not QtBluetooth haven't been
> tried either (NFC and so on). I even think I have even disabled the
> build.
>
> Nevertheless, here are the relevant part of the .yaml file and the
> .pro file I use for "Parrot ZIK 2.0 Manager" in  harbour that ship
> with this backport.
>
> You have to build QtBluetooth backport separately with the sailfish
> sdk, then put the .so file(s) in a "lib" subdirectory inside your project.
thanks that got me started. I hope I can dedicate enough time to bring a
Xiaomi MiBand app to the harbour.
>
> Regards,
> Richard (lainwir3d)
>
> On Wed, Dec 10, 2014 at 11:13 AM, Harald Schmitt  > wrote:
>
> Hi,
>
> I'd like to develop an harbour app that uses a backported version of
> QtConnectivity 5.4 in my app and ship it with my app.
> It is available from here:
> https://github.com/lainwir3d/qtconnectivity/tree/5.4_sailfish_backport
> Can you help me with the .pro and .yaml file?
> Do I have to setup something in the emulators?
>
> Best regards,
> Harald
>
> ___
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to
> devel-unsubscr...@lists.sailfishos.org
> 
>
>
>
>
> -- 
>
> Richard Rondu
>
> Responsable de projet 
>
> EIREL
>
> 33, av. Claude Debussy
>
> 92588 Clichy Cedex
>
> Tél: 0141401263
>
> Fax: 0141400238
>
>  
>
>
>
> ___
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org


Re: [SailfishDevel] Installation trouble with the SDK

2014-12-11 Thread Martin Kampas
Hi Ove,

On Thursday, December 11, 2014 03:22:19 PM Ove Kåven wrote:
> [...] And perhaps generating the keys 
> involves talking to the virtual machine over the virtual network, thus 
> triggering the problem.

as I wrote earlier "the keys are stored on host, in a directory shared with the 
VM [1]", so the VM does not need to be started at the moment, and as it seems 
from what Luciano wrote in his second email, it does not even "exists" at this 
point of SDK installation.

BR,
Martin

[1] 
https://github.com/sailfish-sdk/sailfish-qtcreator/blob/next/src/tools/merssh/generatekeyscommand.cpp
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org


Re: [SailfishDevel] Installation trouble with the SDK

2014-12-11 Thread Ove Kåven

On 11. des. 2014 14:48, k...@foder.dk wrote:

That was also my first thought, but the three virtual machines I have besides 
Sailfish runs smoothly, but just to be sure I have installed the latest version 
of virtual box with same result.

En interresting detail, the desktop does not just freze, it is as if the desktop slowly 
looses -- something, until everything is static. The ability to open new windows/programs 
is lost almost the moment the installation reaches the "generating keys" phase, 
the mouse cursor is last to go.


Hmm. Just a suggestion for further troubleshooting, but could it have 
something to do with the virtual network communication between the 
virtual machine and the host OS? After all, networking problems could 
perhaps also freeze the desktop, for example if the drivers are buggy, 
or there's a local routing loop. And perhaps generating the keys 
involves talking to the virtual machine over the virtual network, thus 
triggering the problem.


___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org


Re: [SailfishDevel] Installation trouble with the SDK

2014-12-11 Thread kim
> On 11. des. 2014 10:06, k...@foder.dk wrote:
> > The fact that the installation hangs (and freezes the desktop) at 
> > "Generating keys" and the entropy pool is very low, made me believe there 
> > was a connection.
> 
> Well, no. Running out of entropy should never freeze the desktop. (If it 
> did, that would be a DoS-class operating system bug.)

Well, you are of course right, I was jumping to conclusions ;)

> 
> >> The symptoms sound more like what would happen if there was too much
> >> I/O, too many programs running, too much memory used, and perhaps too
> >> much swap space: the system would start swapping so heavily it would
> >> become totally unresponsive.
> >
> > This is of course the first things I checked: Lots of memory free (> 2G), 
> > no disk access at all when installation hangs, 2 programs running 
> > system-monitor & installation.
> 
> In that case, the only other things *I* can think of that might freeze 
> the desktop are some problem with the X server (perhaps unlikely), or 
> some problem with the virtual machines. Virtualization involves both the 
> kernel and the CPU, and thus might hang your machine if it doesn't work 
> right. Does your virtualbox work at all with your new kernel?

That was also my first thought, but the three virtual machines I have besides 
Sailfish runs smoothly, but just to be sure I have installed the latest version 
of virtual box with same result.

En interresting detail, the desktop does not just freze, it is as if the 
desktop slowly looses -- something, until everything is static. The ability to 
open new windows/programs is lost almost the moment the installation reaches 
the "generating keys" phase, the mouse cursor is last to go.

> 
> ___
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org


Re: [SailfishDevel] Installation trouble with the SDK

2014-12-11 Thread Ove Kåven

On 11. des. 2014 10:06, k...@foder.dk wrote:

The fact that the installation hangs (and freezes the desktop) at "Generating 
keys" and the entropy pool is very low, made me believe there was a connection.


Well, no. Running out of entropy should never freeze the desktop. (If it 
did, that would be a DoS-class operating system bug.)



The symptoms sound more like what would happen if there was too much
I/O, too many programs running, too much memory used, and perhaps too
much swap space: the system would start swapping so heavily it would
become totally unresponsive.


This is of course the first things I checked: Lots of memory free (> 2G), no disk 
access at all when installation hangs, 2 programs running system-monitor & 
installation.


In that case, the only other things *I* can think of that might freeze 
the desktop are some problem with the X server (perhaps unlikely), or 
some problem with the virtual machines. Virtualization involves both the 
kernel and the CPU, and thus might hang your machine if it doesn't work 
right. Does your virtualbox work at all with your new kernel?


___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org


Re: [SailfishDevel] Installation trouble with the SDK

2014-12-11 Thread Luciano Montanaro
On Thu, Dec 11, 2014 at 11:07 AM, Martin Kampas  wrote:
> Hi Luciano,
>
> On Thursday, December 11, 2014 10:21:16 AM Luciano Montanaro wrote:
>> [...] My question is...
>> shouldn't there be a virtualbox "mersdk" instance available before
>> invoking the merssh command? Because the virtualbox manager does not
>> show a configuration for it.
>
> this shouldn't be an issue here - the keys are stored on host, in a directory 
> shared with the VM [1].
>
> BTW, earlier you wrote:
>
>> [...] and I unwisely removed the SailfishOS directory
>
> IIUC you didn't use the uninstaller - it might be worth to search your home 
> directory for garbage from the previous installation which may possibly cause 
> some troubles.. Also consider removing (renaming) ~/.config/SailfishAlpha4.


Oh, sorry, I did not mention this. The first time around I actually
used the uninstaller as recommended. I don't think it is available
after the partial installation...
I will check the .config/SailfishAlpha4 file again.


> BR,
> Martin
>
> [1] 
> https://github.com/sailfish-sdk/sailfish-qtcreator/blob/next/src/tools/merssh/generatekeyscommand.cpp
> ___
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org



-- 
Luciano Montanaro

Anyone who is capable of getting themselves made President should on
no account be allowed to do the job. -- Douglas Adams
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org


Re: [SailfishDevel] Installation trouble with the SDK

2014-12-11 Thread Martin Kampas
Hi Luciano,

On Thursday, December 11, 2014 10:21:16 AM Luciano Montanaro wrote:
> [...] My question is...
> shouldn't there be a virtualbox "mersdk" instance available before
> invoking the merssh command? Because the virtualbox manager does not
> show a configuration for it.

this shouldn't be an issue here - the keys are stored on host, in a directory 
shared with the VM [1].

BTW, earlier you wrote:

> [...] and I unwisely removed the SailfishOS directory

IIUC you didn't use the uninstaller - it might be worth to search your home 
directory for garbage from the previous installation which may possibly cause 
some troubles.. Also consider removing (renaming) ~/.config/SailfishAlpha4.

BR,
Martin

[1] 
https://github.com/sailfish-sdk/sailfish-qtcreator/blob/next/src/tools/merssh/generatekeyscommand.cpp
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org


Re: [SailfishDevel] Installation trouble with the SDK

2014-12-11 Thread Luciano Montanaro
On Thu, Dec 11, 2014 at 10:06 AM,   wrote:
>> On 10. des. 2014 10:41, k...@foder.dk wrote:
>> > I have had this problem since I upgraded Ubuntu to 14.10, and have 
>> > recently come to the conclusion that the problem probably is entropy.
>> >
>> > A test has shown that the entropy pool always is extremely low (about 1000 
>> > with heavy disk access, less than 800 otherwise)
>> >
>> > I have tried to generate more entropy by starting programs with heavy disk 
>> > or net acces, and fidling with the mouse, but the installation still hangs 
>> > at 76%, and after a short while everything on the desktop freezes, even 
>> > the mouse.
>> >
>> > The only way to get out of it is a long press on the power button.
>>
>> These symptoms do not sound like it has anything at all to do with
>> entropy. I don't know where you could have gotten that idea.
>

So you did replicate my hang.

> The fact that the installation hangs (and freezes the desktop) at "Generating 
> keys" and the entropy pool is very low, made me believe there was a 
> connection.
>

It looked the same to me. But then, an ssh-keygen would have the same
problem, and it did not.

>>
>> The symptoms sound more like what would happen if there was too much
>> I/O, too many programs running, too much memory used, and perhaps too
>> much swap space: the system would start swapping so heavily it would
>> become totally unresponsive.
>
> This is of course the first things I checked: Lots of memory free (> 2G), no 
> disk access at all when installation hangs, 2 programs running system-monitor 
> & installation.

Confirming, from my side. My laptop has 6GB RAM, and besides, there
was not much disk activity a tthe moment of the hang.
I think the merssh command is not able to complete. My question is...
shouldn't there be a virtualbox "mersdk" instance available before
invoking the merssh command? Because the virtualbox manager does not
show a configuration for it.

Is there a guide to set it up manually? The .vdi is installed anyway,
I might be able to complete the installation manually (or at least
build my projects with the command line tools) if the virtual box
machine is configured correctly.

I tried creating a machine on my own with the mersdk.vdi, and it
boots... but I do not know how to set it up so that i can connect to
it/share the source partition.

Best regards,
Luciano

>
>>
>> ___
>> SailfishOS.org Devel mailing list
>> To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
> ___
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org



-- 
Luciano Montanaro

Anyone who is capable of getting themselves made President should on
no account be allowed to do the job. -- Douglas Adams
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org


Re: [SailfishDevel] Installation trouble with the SDK

2014-12-11 Thread kim
> On 10. des. 2014 10:41, k...@foder.dk wrote:
> > I have had this problem since I upgraded Ubuntu to 14.10, and have recently 
> > come to the conclusion that the problem probably is entropy.
> >
> > A test has shown that the entropy pool always is extremely low (about 1000 
> > with heavy disk access, less than 800 otherwise)
> >
> > I have tried to generate more entropy by starting programs with heavy disk 
> > or net acces, and fidling with the mouse, but the installation still hangs 
> > at 76%, and after a short while everything on the desktop freezes, even the 
> > mouse.
> >
> > The only way to get out of it is a long press on the power button.
> 
> These symptoms do not sound like it has anything at all to do with 
> entropy. I don't know where you could have gotten that idea.

The fact that the installation hangs (and freezes the desktop) at "Generating 
keys" and the entropy pool is very low, made me believe there was a connection.

> 
> The symptoms sound more like what would happen if there was too much 
> I/O, too many programs running, too much memory used, and perhaps too 
> much swap space: the system would start swapping so heavily it would 
> become totally unresponsive.

This is of course the first things I checked: Lots of memory free (> 2G), no 
disk access at all when installation hangs, 2 programs running system-monitor & 
installation.

> 
> ___
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org