[SailfishDevel] How to get GPS Location in QML (after installing QtPositioning packages to targets and emulator)

2013-10-30 Thread tw_bolek
Success, at last.   Installing qtpositioning packages to both targets (using 
SDK Control Center), to the SDK (using zypper) and to the emulator (using 
zypper) finally did the job. It finally works and application can be deployed 
to the emulator by copying binaries and without any modifications.

The only question remaining is:  if I deploy to an .rpm package rather than 
directly to the emulator, how can I then install the rpm file to the emulator?

Once again, many thanks Chris for your help.

Bolek
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] How to get GPS Location in QML

2013-10-30 Thread Caliste Damien
Hello,

Le mardi 29 octobre 2013, tw_bolek a écrit :
 the .pro file does not change anything.There is no trace of
 QtPositioning in sailfishos/mersdk/targets/.../usr/lib/qt5,
 neither for arm nor for x86 (emulator).
I think that Christopher Lamb answered this.

I'm using Qt Positioning in Sailfish from C++ myself and it's working.
Except that there is no GPS in the emulator, so there is no source for
QGeoPositionInfo data. To test, I'm creating data by hand and see if my
application reacts correctly. Is it the right way to do ?

Otherwise, there are nice explanations at :
http://doc-snapshot.qt-project.org/qt5-nosubdir/qtpositioning-index.html

Regards,

Damien.
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] How to get GPS Location in QML

2013-10-30 Thread Artem Marchenko
Hi Bolek

*I am not from Jolla, so that's just musings of yet another third party dev.
*
*
*
IMHO there are several different sub-issues:

1. RPM dependency installation system in general
I think it's just wonderful that you app can declare what it needs and it
just gets it

2. Positioning module not included to Sailfish by default
Yeah, modules expected to be used often could included from the very
beginning indeed. Maybe they will be added

3. YAML/Spec toolchain support and how on earth you figure which module you
need and what you need specify in .yaml/.spec

This particular area IMHO needs quite a lot of improvement. At least a
guide telling which modules are to be found in which packages for build
machine and for device run time would be very helpful

3.1 My favorite sub-problem is that current YAML/SPEC support is just not
ready for subdirs projects
As long as I use subdirs, I have to delete YAML completely (otherwise
creator keeps messing up with it) and even with just .spec some dances are
to be performed in order to run some of the subprojects

3.2 Testing whether all the dependencies are declared properly
IMHO at the moment the only way to test whether final users will actually
be able to install all the dependencies is to.. reinstall SDK from scratch.
Otherwise you never know if RPM really requests everything needed or you
are just lucky to have some packages already present in your particular
system.

Just my 2 cents of feedback [hopefully structured enough for helping those
thinking of SDK improvements].

Best regards,
Artem.



On Wed, Oct 30, 2013 at 3:17 AM, tw_bolek tw_bo...@op.pl wrote:

 Chris,

 First of all, thank you very much for your help.

 However is there any valid reason why it is so complicated?
 Positioning is probably one of the most frequently used functions in
 smartphone applications. I'd understand that some 3rd party or less
 important modules are not included by default but Positioning...? It should
 be included by default

 Not every developer is familiar with all these complicated procedures of
 installing additional packages. And on Windows it probably isn't as easy as
 on Linux.   I want to focus on developing apps and not on configuring the
 SDK to be able to use the most basic functions...  If I want to use
 something extra then I'm ready for it requiring additional steps, but as
 basic thing as positioning should have been included by default...

 If it's due to Qt5.x not yet being complete, maybe Jolla should have
 sticked to Qt4.8 (or at least used both) until Qt5.2 comes out and matures?

 Many thanks for your time and support, anyway!

 Best regards,
 Bolek
 ___
 SailfishOS.org Devel mailing list




-- 
Artem Marchenko
http://agilesoftwaredevelopment.com
http://twitter.com/AgileArtem
___
SailfishOS.org Devel mailing list

[SailfishDevel] Updated emulator in SailfishOS SDK available

2013-10-30 Thread Jarko Vihriala
Hello again,

Like it was disclosed earlier, the SailfishOS Emulator had a bug that it would 
not refresh its package repositories. If you were required to install new 
packages to it, it would eventually fail on RPM deployment.
Now there is a fixed version available. We have uploaded an updated emulator to 
the SDK repository. The new emulator bears the label '2013.10.28-0' and the old 
one was '2013.10.18-0'.

As always you should shut down all VMs before starting the update.

This means that your Qt Creator should pick up the update and you should see 
'Updates' icon in Qt Creator's ui, here's how to proceed with update:
1. click update icon (or run updater from toolbar), sdk maintenance tool will 
open
2. sdk maintenance tool should be set up already for the update action, click 
next.
3. you should see that the current emulator version is 2013.10.18-0 and it's 
going to be updated, click next
4. click update to proceed. sdk maintenance tool downloads the new emulator and 
installs it.
5. once it's completed, click finish. You now have the new emulator installed.

Here's the release note for this update:
SailfishOS Emulator:
* when emulator boots, it refreshes its package repositories with pkcon refresh 
and thus is then capable to retrieve package dependencies from sailfishos.org.
Any other component:
* no changes.

If you encounter any issues, please report them to Sailfish developers mailing 
list at devel@lists.sailfishos.org
Happy hacking!

Best regards,
Jolla Sailfish SDK Team
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Updated emulator in SailfishOS SDK available

2013-10-30 Thread Kaj-Michael Lang
On Wed, 2013-10-30 at 10:03 +, Jarko Vihriala wrote:
 1. click update icon (or run updater from toolbar), sdk maintenance
 tool will open
 2. sdk maintenance tool should be set up already for the update
 action, click next. 

I'm having problems with the updater, it complains Could not download
meta information for component: org.merproject.documentation. Error: Bad
hash.

-- 
Kaj-Michael Lang mil...@tal.org

___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] How to get GPS Location in QML

2013-10-30 Thread christopher . lamb

Hi Bolek

I also have nothing direct to do with Jolla, I am just a developer  
like you, but it is still a pleasure to help and to puzzle out how  
things work.


I agree with much of what you say; but I think we should not forget  
that the Alpha is just that, an Alpha. That means that not everything  
is perfectly documented, and somethings that probably will be bundled  
in the final release will be currently missing or in a  
work-in-progress state.


I suspect that when real Sailfish hardware becomes available, with a  
real GPS built in, then all the required Qt Positioning and Location  
stuff will be pre-bundled. It could be argued that on an Emulator  
there is not much use for it ...



The situation is also not helped by the fact that QtMobility is in a  
state of flux between 4.8 and 5.x, with some sub-modules / components  
popping up elsewhere, and with others completely missing in action  
(e.g. Messaging). I guess that the root cause for this is the  
withdrawal of Nokia from the Qt camp.



Chris

Zitat von tw_bolek tw_bo...@op.pl:


Chris,

First of all, thank you very much for your help.

However is there any valid reason why it is so complicated?  
Positioning is probably one of the most frequently used functions in  
smartphone applications. I'd understand that some 3rd party or less  
important modules are not included by default but Positioning...? It  
should be included by default


Not every developer is familiar with all these complicated  
procedures of installing additional packages. And on Windows it  
probably isn't as easy as on Linux.   I want to focus on developing  
apps and not on configuring the SDK to be able to use the most basic  
functions...  If I want to use something extra then I'm ready for it  
requiring additional steps, but as basic thing as positioning should  
have been included by default...


If it's due to Qt5.x not yet being complete, maybe Jolla should have  
sticked to Qt4.8 (or at least used both) until Qt5.2 comes out and  
matures?


Many thanks for your time and support, anyway!

Best regards,
Bolek
___
SailfishOS.org Devel mailing list





___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Updated emulator in SailfishOS SDK available

2013-10-30 Thread nagneeth
‎Hi,I use Mac and have the bad hash issue as well.. And I tried both ways: pre-1310 version(Updated it latest on Monday) and fresh 1310 release.. ‎Thanks,Nagaraj.  From: Jarko VihrialaSent: Wednesday 30 October 2013 14:19To: Kaj-Michael Lang; devel@lists.sailfishos.orgSubject: Re: [SailfishDevel] Updated emulator in SailfishOS SDK availableAre you updating from 1310 or from older alpha? If you do it from older alpha SDK you need to update it all the way. Can you please tell what is your development computer as well (mac,linux 32bit, linux 64bit or windows) ?thanks, JarkoFrom: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] on behalf of Kaj-Michael Lang [mil...@tal.org]Sent: Wednesday, October 30, 2013 1:52 PMTo: devel@lists.sailfishos.orgSubject: Re: [SailfishDevel] Updated emulator in SailfishOS SDK availableOn Wed, 2013-10-30 at 10:03 +, Jarko Vihriala wrote: 1. click update icon (or run updater from toolbar), sdk maintenance tool will open 2. sdk maintenance tool should be set up already for the update action, click next.I'm having problems with the updater, it complains "Could not downloadmeta information for component: org.merproject.documentation. Error: Badhash."--Kaj-Michael Lang mil...@tal.org___SailfishOS.org Devel mailing list___SailfishOS.org Devel mailing list
___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Updated emulator in SailfishOS SDK available

2013-10-30 Thread christopher . lamb

Hi Jarko

On OSX and on Windows I get an Installer Error (OSX version error  
below, Window error coming in my next mail).



Fatal error while evaluating a script.

Error: cannot access member `updateRequested' of deleted QObject

Backtrace:

anonymous()@/var/folders/lz/ghjnjzs11tbg581csnqbpbhmgn/T/remoterepo-Nl3665/org.merproject.maintenance/installscript.qs:73


Chris


Zitat von Jarko Vihriala jarko.vihri...@jolla.com:


Hello again,

Like it was disclosed earlier, the SailfishOS Emulator had a bug  
that it would not refresh its package repositories. If you were  
required to install new packages to it, it would eventually fail on  
RPM deployment.
Now there is a fixed version available. We have uploaded an updated  
emulator to the SDK repository. The new emulator bears the label  
'2013.10.28-0' and the old one was '2013.10.18-0'.


As always you should shut down all VMs before starting the update.

This means that your Qt Creator should pick up the update and you  
should see 'Updates' icon in Qt Creator's ui, here's how to proceed  
with update:
1. click update icon (or run updater from toolbar), sdk maintenance  
tool will open
2. sdk maintenance tool should be set up already for the update  
action, click next.
3. you should see that the current emulator version is 2013.10.18-0  
and it's going to be updated, click next
4. click update to proceed. sdk maintenance tool downloads the new  
emulator and installs it.
5. once it's completed, click finish. You now have the new emulator  
installed.


Here's the release note for this update:
SailfishOS Emulator:
* when emulator boots, it refreshes its package repositories with  
pkcon refresh and thus is then capable to retrieve package  
dependencies from sailfishos.org.

Any other component:
* no changes.

If you encounter any issues, please report them to Sailfish  
developers mailing list at devel@lists.sailfishos.org

Happy hacking!

Best regards,
Jolla Sailfish SDK Team
___
SailfishOS.org Devel mailing list




___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Updated emulator in SailfishOS SDK available

2013-10-30 Thread Kaj-Michael Lang
On Wed, 2013-10-30 at 12:19 +, Jarko Vihriala wrote:
 Are you updating from 1310 or from older alpha? If you do it from
 older alpha SDK you need to update it all the way. 

I last updated when previous update was announced.. where do I see the
version?
Qt Creator says 2.8.1, built on Oct 21 2013 13:54:38, rev 88f905a914

 Can you please tell what is your development computer as well
 (mac,linux 32bit, linux 64bit or windows) ?

Ubuntu 12.04.3 LTS, 64-bit.

-- 
Kaj-Michael Lang mil...@tal.org

___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Updated emulator in SailfishOS SDK available

2013-10-30 Thread Jarko Vihriala
Hello again,

The nasty bad hash issue hit us as our service cloud did not update all files. 
We fixed that and improved process there so it should not hit us again.

Sorry for the inconvenience ; updates should be fully operational now.

by the way, if use IRC we can be reached from #sailfishos on FreeNode.

thanks, Jarko


From: Jarko Vihriala
Sent: Wednesday, October 30, 2013 12:03 PM
To: devel@lists.sailfishos.org
Subject: Updated emulator in SailfishOS SDK available

Hello again,

Like it was disclosed earlier, the SailfishOS Emulator had a bug that it would 
not refresh its package repositories. If you were required to install new 
packages to it, it would eventually fail on RPM deployment.
Now there is a fixed version available. We have uploaded an updated emulator to 
the SDK repository. The new emulator bears the label '2013.10.28-0' and the old 
one was '2013.10.18-0'.

As always you should shut down all VMs before starting the update.

This means that your Qt Creator should pick up the update and you should see 
'Updates' icon in Qt Creator's ui, here's how to proceed with update:
1. click update icon (or run updater from toolbar), sdk maintenance tool will 
open
2. sdk maintenance tool should be set up already for the update action, click 
next.
3. you should see that the current emulator version is 2013.10.18-0 and it's 
going to be updated, click next
4. click update to proceed. sdk maintenance tool downloads the new emulator and 
installs it.
5. once it's completed, click finish. You now have the new emulator installed.

Here's the release note for this update:
SailfishOS Emulator:
* when emulator boots, it refreshes its package repositories with pkcon refresh 
and thus is then capable to retrieve package dependencies from sailfishos.org.
Any other component:
* no changes.

If you encounter any issues, please report them to Sailfish developers mailing 
list at devel@lists.sailfishos.org
Happy hacking!

Best regards,
Jolla Sailfish SDK Team
___
SailfishOS.org Devel mailing list


[SailfishDevel] Maintenance tool uninstall components not possible

2013-10-30 Thread Tone Kastlunger
all items in the treeview are gray'ed out, making deselecting them
singularly impossible.
Only possible solution is to remove everything.

Best,
tortoisedoc
___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Maintenance tool uninstall components not possible

2013-10-30 Thread Jarko Vihriala
True, component de/selection will be delivered in beta sdk.

thanks, Jarko


From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] 
on behalf of Tone Kastlunger [users.giulie...@gmail.com]
Sent: Wednesday, October 30, 2013 8:49 PM
To: devel@lists.sailfishos.org
Subject: [SailfishDevel] Maintenance tool uninstall components not possible

all items in the treeview are gray'ed out, making deselecting them singularly 
impossible.
Only possible solution is to remove everything.

Best,
tortoisedoc
___
SailfishOS.org Devel mailing list


[SailfishDevel] How to check Emulator version

2013-10-30 Thread christopher . lamb

Hi Jarko

Is there a way of checking the Emulator version? (e.g. by terminal  
command on the emulator?).


Today's update bugged out on OSX, but after that the Emulator still  
starts, so either

a) the update did nothing, and I have the old state
b) the update more or less succeeded, I have the new version despite  
the errors during update.


Chris


___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] How to check Emulator version

2013-10-30 Thread Jarko Vihriala
Hello,
At least with Qt Creator's updater you can check the versions of each 
component. 

If you can pull additional packages from sailfishos.org to your emulator, it 
has been updated - simple as that.

thanks, Jarko

From: christopher.l...@thurweb.ch [christopher.l...@thurweb.ch]
Sent: Wednesday, October 30, 2013 9:50 PM
To: Jarko Vihriala; devel@lists.sailfishos.org
Subject: How to check Emulator version

Hi Jarko

Is there a way of checking the Emulator version? (e.g. by terminal
command on the emulator?).

Today's update bugged out on OSX, but after that the Emulator still
starts, so either
a) the update did nothing, and I have the old state
b) the update more or less succeeded, I have the new version despite
the errors during update.

Chris


___
SailfishOS.org Devel mailing list


[SailfishDevel] Interesting problem with SDK installation

2013-10-30 Thread Tone Kastlunger
I noticed a quite weird issue with the installer.

Upon reinstalling, it seems qmake.exe is missing.

Targets + vm's are there, but qmake.exe is not.
qmake.conf is there

Anyone else experiencing this?
tortoisedoc
___
SailfishOS.org Devel mailing list