Re: [SailfishDevel] QtContacts available

2013-12-24 Thread Matthias Barmeier

Hi,

after everything starts to work in the emulator I wonder how I can 
install QtContacts module on my Jolla phone.

Just login via ssh and installing via pkcon ?

Ciao
Matze

Am 22.12.2013 22:04, schrieb David Greaves:

Yes - all reasonably accurate.

But then there's the SDK control centre:

* Open Control Centre in SDK (the SailfishOS button on the left - don't ask why)
* Go to Targets
* Click manage by SailfishOS-armv7hl or SailfishOS-i486-x86
* type contact into the search box (no return)
* hmm, too many, add a space and qt5 to see the 'as you type' search (no,
really, pay attention, it took me ages to write that)
* now click install on the one you want or note it down to add to the 
BuildRequires

David
PS there's a bug where some packages appear twice. That's because it shows the
src package too. I'm sure it'll get fixed one day :)

PPS Terminoloy: the VM is the Build Engine. The SB2 things are called 'Targets'
as they allow the BE to build for a variety of targets. Note also the Toolchains
for a variety of architectures.

On 22/12/13 20:50, christopher.l...@thurweb.ch wrote:

Hi Matze

It is confusing at first, but once you get it, it is easy!


I cover that in the chapter Installing By Hand to the SDK Build Engine via the
Control Center in:
http://flyingsheeponsailfish.blogspot.ch/2013/11/deploying-additional-packages-to.html


You are right there are 2 VMS, the obvious Emulator, and the headerless SDK
Build Engine.

The Emulator is the easy one, you SSH in, and use PkCon or zypper to install
stuff directly to make them available to you apps.

The SDK Build Engine is a little bit more tricky.

Once you SSH in, zypper is available, but if you zypper at that level, all you
are doing is adding stuff to the operating system.

Within this VM is SB2, which is the Build Engine itself. Others on this mailist
are much better qualified than me to tell you more about it.

So lets SSH in as user mersdk:

ssh -p  -i ~/SailfishOS/vmshare/ssh/private_keys/engine/mersdk 
mersdk@localhost

Then we can enter into the build engine with:

sb2 -t SailfishOS-i486-x86

After that we can use zypper again, e.g. to list qt5 packages installed to the
build engine:

zypper se qt5 | grep i |

If you install things within SB2, it is equivalent to installing via the SDK
Control Center.

You can back out of SB2 with:

exit

Then if you repeat:

zypper se qt5 | grep i |

You should get a much shorter list of installed qt5 packages.

Have fun

Chris







Zitat von Matthias Barmeier barme...@barmeier.com:


Hi Chris,

please help me with my confusion :)

My understanding was that the build engine is the VM located at port . I
used zypper because I read this in the blog post.
I thought that it does not make a difference if I install it via SDK Control
center, zypper or pkcon. Is this right ?

What do you mean with SDK VM ? The emulator ? I thought there are only two VMs
? What doe you mean with SB2 ?

There is much to learn for me. But with your hints I had a small success after
my old Harmattan application started to breathe :).

Ciao
 Matze

Am 22.12.2013 16:54, schrieb christopher.l...@thurweb.ch:

Hi Matthias

Here are a few more hints

You connected to the SDK with a key, but to the Emulator without. A key can
be used for both for passwordless access.

//Connect to SDK
ssh -p  -i ~/SailfishOS/vmshare/ssh/private_keys/engine/mersdk
mersdk@localhost

ssh -p  -i ~/SailfishOS/vmshare/ssh/private_keys/engine/root root@localhost


//Connect to Emulator
ssh -p 2223 -i ~/SailfishOS/vmshare/ssh/private_keys/SailfishOS_Emulator/nemo
nemo@localhost

ssh -p 2223 -i ~/SailfishOS/vmshare/ssh/private_keys/SailfishOS_Emulator/root
root@localhost

The commands above work on OSX, and should work on Linux.


In your mail below you used zypper to install to the SDK VM, but not to the
build engine with the VM, so that won't really help you. You have made the
package available to the Operating System rather than to the build engine.

To install by hand to the build-engine, either use the SDK Control Center
to search and install the package

or

connect via SSH to the SDK as you describe, then start SB2 and use zypper
within SB2. Then sync from the control center.


Grüsse

Chris


Zitat von Matthias Barmeier barme...@barmeier.com:


Hi,

thanks a lot.

Your link and this one:
http://flyingsheeponsailfish.blogspot.de/2013/10/alpha-2-migrating-landed.html
has working hints on what packages must be installed and how to make
QtContacts work.

If someone else needs this here is my way of QtContacts enabling:

ssh to mer build engine:  ssh -p  -i
/opt/SailfishOS/vmshare/ssh/private_keys/engine/root root@localhost
install a package with: zypper in qt5-qtdeclarative-pim-contacts

Select the Sailfish-Icon on the QtCreator toolbar.
Select Targets - SailfishOS-i486-x86 - manage - sync

On the emulator select settings and set a password for the ssh connection.
ssh to the emulator:   ssh -p 2223 nemo@localhost enter 

Re: [SailfishDevel] QtContacts available

2013-12-23 Thread christopher . lamb

Hi Marko

Thanks, that has deepened my understanding, and confirms what I had  
guessed / inferred. I will update my blog later with a simplified  
version of your explanation.


Chris

Zitat von Marko Koschak marko.kosc...@tisno.de:


Hi Matze

On So, 2013-12-22 at 21:50 +0100, christopher.l...@thurweb.ch wrote:

The SDK Build Engine is a little bit more tricky.

Once you SSH in, zypper is available, but if you zypper at that level,
all you are doing is adding stuff to the operating system.

Within this VM is SB2, which is the Build Engine itself. Others on
this mailist are much better qualified than me to tell you more about
it.


If you are familiar with the term chroot (change-root) then you could
thing of SB2 (Scratchbox2) just as an chroot environment running armv7hl
emulated code (through qemu) where you actually build your source rpm
package. SB2 comes from the legacy of cross-compiling. The problem
with cross-compiling is that you need to tell your compiler not to use
the host (x86) tools and libs for compiling but the equivalent tools and
libs from the target (armv7hl) system. There are multiple approaches to
overcome that. One is to tell the compiler (via e.g. configure,
makefile,...) where to find that stuff or you don't tell the compiler
that (less work to create a makefile that cross-compiles too) but alter
your environment that the compiler thinks it is running on the target
(armv7hl) system itself. This is what SB2 actually does. That is very
useful if you want to compile just any normal rpm package (from the
linux userland stack) without adapting it to the target architecture.

(In detail SB2 is not a full chroot system, but it uses fakeroot which
enables SB2 to use host tools for speed up compilation instead of
running arm binaries in slow emulation mode. It's quite some time ago I
used SB2 but I hope I got it right and you got a rough idea... :)

Cheers,
Marko

___
SailfishOS.org Devel mailing list





___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] QtContacts available

2013-12-22 Thread Matthias Barmeier

Hi,

thanks a lot.

Your link and this one: 
http://flyingsheeponsailfish.blogspot.de/2013/10/alpha-2-migrating-landed.html
has working hints on what packages must be installed and how to make 
QtContacts work.


If someone else needs this here is my way of QtContacts enabling:

ssh to mer build engine:  ssh -p  -i 
/opt/SailfishOS/vmshare/ssh/private_keys/engine/root root@localhost

install a package with: zypper in qt5-qtdeclarative-pim-contacts

Select the Sailfish-Icon on the QtCreator toolbar.
Select Targets - SailfishOS-i486-x86 - manage - sync

On the emulator select settings and set a password for the ssh connection.
ssh to the emulator:   ssh -p 2223 nemo@localhost enter the 
password

Install the same package: sudo pkcon install qt5-qtdeclarative-pim-contacts

Restart both VMs. I don't know if this last step is neccessary, but 
after I have done it the error message si gone

and ContactModel is a vailid type.

Thanks again !


Ciao
Matze

Am 21.12.2013 22:14, schrieb christopher.l...@thurweb.ch:

Hi Matthias

As the error says, QtContacts is not installed.

Try this article on tips on how to install to the SDK and Emulator

http://flyingsheeponsailfish.blogspot.ch/2013/11/deploying-additional-packages-to.html 



It focuses on Location and Positioning, but is the methods used are 
relevant for QtContacts as well.


The first thing is to establish what is already installed.

For the SDK, the easiest way for a newbie is via the SDK Control 
Center, which is available via the Sailfish icon on the left of the 
QtCreator screen.


On the Emulator, once connected via SSH, you can search for contacts 
modules with


pkcon search name contacts

I have several contacts modules installed on my Emulator, but then I 
have been experimenting with contacts, and will have installed some of 
these myself.


Once you have the correct modules installed to the SDK and Emulator 
(and synced with QtCreator), then you should be able to use QtContacts 
from both C++ and QML.


Ciao

Chris

Zitat von Matthias Barmeier barme...@barmeier.com:


Hi,

the include error is fixed, but now I am back to my old problem:

[W] unknown:33 - file:///usr/share/test/qml/pages/FirstPage.qml:33:1: 
module QtContacts is not installed


import QtContacts 5.0


my QML:

import QtQuick 2.0
import Sailfish.Silica 1.0
import QtContacts 5.0

Page {
id: page
 ...


my test.cpp:

#ifdef QT_QML_DEBUG
#include QtQuick
#endif

#include sailfishapp.h
#include QtContacts/QtContacts

...

What else must I do ?

Ciao
Matze

Am 21.12.2013 14:36, schrieb Andrey Kozhevnikov:

add
INCLUDEPATH += /usr/include/qt5/QtContacts
to pro file

On 21.12.2013 18:44, Matthias Barmeier wrote:

Hi,

I added the CONFIG line to my project file. And added the include 
to my .cpp file, but got this.


/usr/include/qt5/QtContacts/qcontact.h:53: 
Fehler:qcontactsglobal.h: No such file or directory


This file is availables under:
/opt/SailfishOS/mersdk/targets/SailfishOS-i486-x86/usr/include/qt5/QtContacts 
I try to use QtContacts from qml ist this possible ?


Ciao
   Matze

Am 21.12.2013 13:04, schrieb Andrey Kozhevnikov:

add it to pro file CONFIG += Qt5Contacts
and then include in Qt QtContacs/...

On 21.12.2013 18:02, Matthias Barmeier wrote:

Hi,

I am new to SailfishOS coming from Harmattan. How can I add this 
module ?
Is there any Dev Introduction available on how to add modules or 
which modules are available ?


Thanks.

Ciao
   Matze

Am 21.12.2013 12:59, schrieb Andrey Kozhevnikov:

its Qt5Contacts module

On 21.12.2013 17:58, Matthias Barmeier wrote:

Hi,

is QtContacts available for SDK emulator or Device ? And if it 
is available where and how can I get it ?


Ciao
Matze
___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list









___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] QtContacts available

2013-12-22 Thread christopher . lamb

Hi Matthias

Here are a few more hints

You connected to the SDK with a key, but to the Emulator without. A  
key can be used for both for passwordless access.


//Connect to SDK
ssh -p  -i ~/SailfishOS/vmshare/ssh/private_keys/engine/mersdk  
mersdk@localhost


ssh -p  -i ~/SailfishOS/vmshare/ssh/private_keys/engine/root  
root@localhost



//Connect to Emulator
ssh -p 2223 -i  
~/SailfishOS/vmshare/ssh/private_keys/SailfishOS_Emulator/nemo  
nemo@localhost


ssh -p 2223 -i  
~/SailfishOS/vmshare/ssh/private_keys/SailfishOS_Emulator/root  
root@localhost


The commands above work on OSX, and should work on Linux.


In your mail below you used zypper to install to the SDK VM, but not  
to the build engine with the VM, so that won't really help you. You  
have made the package available to the Operating System rather than to  
the build engine.


To install by hand to the build-engine, either use the SDK Control  
Center to search and install the package


or

connect via SSH to the SDK as you describe, then start SB2 and use  
zypper within SB2. Then sync from the control center.



Grüsse

Chris


Zitat von Matthias Barmeier barme...@barmeier.com:


Hi,

thanks a lot.

Your link and this one:  
http://flyingsheeponsailfish.blogspot.de/2013/10/alpha-2-migrating-landed.html
has working hints on what packages must be installed and how to make  
QtContacts work.


If someone else needs this here is my way of QtContacts enabling:

ssh to mer build engine:  ssh -p  -i  
/opt/SailfishOS/vmshare/ssh/private_keys/engine/root root@localhost

install a package with: zypper in qt5-qtdeclarative-pim-contacts

Select the Sailfish-Icon on the QtCreator toolbar.
Select Targets - SailfishOS-i486-x86 - manage - sync

On the emulator select settings and set a password for the ssh connection.
ssh to the emulator:   ssh -p 2223 nemo@localhost enter the  
password

Install the same package: sudo pkcon install qt5-qtdeclarative-pim-contacts

Restart both VMs. I don't know if this last step is neccessary, but  
after I have done it the error message si gone

and ContactModel is a vailid type.

Thanks again !


Ciao
Matze

Am 21.12.2013 22:14, schrieb christopher.l...@thurweb.ch:

Hi Matthias

As the error says, QtContacts is not installed.

Try this article on tips on how to install to the SDK and Emulator

http://flyingsheeponsailfish.blogspot.ch/2013/11/deploying-additional-packages-to.html It focuses on Location and Positioning, but is the methods used are relevant for QtContacts as  
well.


The first thing is to establish what is already installed.

For the SDK, the easiest way for a newbie is via the SDK Control  
Center, which is available via the Sailfish icon on the left of the  
QtCreator screen.


On the Emulator, once connected via SSH, you can search for  
contacts modules with


pkcon search name contacts

I have several contacts modules installed on my Emulator, but then  
I have been experimenting with contacts, and will have installed  
some of these myself.


Once you have the correct modules installed to the SDK and Emulator  
(and synced with QtCreator), then you should be able to use  
QtContacts from both C++ and QML.


Ciao

Chris

Zitat von Matthias Barmeier barme...@barmeier.com:


Hi,

the include error is fixed, but now I am back to my old problem:

[W] unknown:33 -  
file:///usr/share/test/qml/pages/FirstPage.qml:33:1: module  
QtContacts is not installed


import QtContacts 5.0


my QML:

import QtQuick 2.0
import Sailfish.Silica 1.0
import QtContacts 5.0

Page {
   id: page
...


my test.cpp:

#ifdef QT_QML_DEBUG
#include QtQuick
#endif

#include sailfishapp.h
#include QtContacts/QtContacts

...

What else must I do ?

Ciao
   Matze

Am 21.12.2013 14:36, schrieb Andrey Kozhevnikov:

add
INCLUDEPATH += /usr/include/qt5/QtContacts
to pro file

On 21.12.2013 18:44, Matthias Barmeier wrote:

Hi,

I added the CONFIG line to my project file. And added the  
include to my .cpp file, but got this.


/usr/include/qt5/QtContacts/qcontact.h:53:  
Fehler:qcontactsglobal.h: No such file or directory


This file is availables under:
/opt/SailfishOS/mersdk/targets/SailfishOS-i486-x86/usr/include/qt5/QtContacts I try to use QtContacts from qml ist this possible  
?


Ciao
  Matze

Am 21.12.2013 13:04, schrieb Andrey Kozhevnikov:

add it to pro file CONFIG += Qt5Contacts
and then include in Qt QtContacs/...

On 21.12.2013 18:02, Matthias Barmeier wrote:

Hi,

I am new to SailfishOS coming from Harmattan. How can I add  
this module ?
Is there any Dev Introduction available on how to add modules  
or which modules are available ?


Thanks.

Ciao
  Matze

Am 21.12.2013 12:59, schrieb Andrey Kozhevnikov:

its Qt5Contacts module

On 21.12.2013 17:58, Matthias Barmeier wrote:

Hi,

is QtContacts available for SDK emulator or Device ? And if  
it is available where and how can I get it ?


Ciao
   Matze
___
SailfishOS.org Devel mailing list



Re: [SailfishDevel] QtContacts available

2013-12-22 Thread Matthias Barmeier

Hi Chris,

please help me with my confusion :)

My understanding was that the build engine is the VM located at port 
. I used zypper because I read this in the blog post.
I thought that it does not make a difference if I install it via SDK 
Control center, zypper or pkcon. Is this right ?


What do you mean with SDK VM ? The emulator ? I thought there are only 
two VMs ? What doe you mean with SB2 ?


There is much to learn for me. But with your hints I had a small success 
after my old Harmattan application started to breathe :).


Ciao
Matze

Am 22.12.2013 16:54, schrieb christopher.l...@thurweb.ch:

Hi Matthias

Here are a few more hints

You connected to the SDK with a key, but to the Emulator without. A 
key can be used for both for passwordless access.


//Connect to SDK
ssh -p  -i ~/SailfishOS/vmshare/ssh/private_keys/engine/mersdk 
mersdk@localhost


ssh -p  -i ~/SailfishOS/vmshare/ssh/private_keys/engine/root 
root@localhost



//Connect to Emulator
ssh -p 2223 -i 
~/SailfishOS/vmshare/ssh/private_keys/SailfishOS_Emulator/nemo 
nemo@localhost


ssh -p 2223 -i 
~/SailfishOS/vmshare/ssh/private_keys/SailfishOS_Emulator/root 
root@localhost


The commands above work on OSX, and should work on Linux.


In your mail below you used zypper to install to the SDK VM, but not 
to the build engine with the VM, so that won't really help you. You 
have made the package available to the Operating System rather than to 
the build engine.


To install by hand to the build-engine, either use the SDK Control 
Center to search and install the package


or

connect via SSH to the SDK as you describe, then start SB2 and use 
zypper within SB2. Then sync from the control center.



Grüsse

Chris


Zitat von Matthias Barmeier barme...@barmeier.com:


Hi,

thanks a lot.

Your link and this one: 
http://flyingsheeponsailfish.blogspot.de/2013/10/alpha-2-migrating-landed.html
has working hints on what packages must be installed and how to make 
QtContacts work.


If someone else needs this here is my way of QtContacts enabling:

ssh to mer build engine:  ssh -p  -i 
/opt/SailfishOS/vmshare/ssh/private_keys/engine/root root@localhost

install a package with: zypper in qt5-qtdeclarative-pim-contacts

Select the Sailfish-Icon on the QtCreator toolbar.
Select Targets - SailfishOS-i486-x86 - manage - sync

On the emulator select settings and set a password for the ssh 
connection.
ssh to the emulator:   ssh -p 2223 nemo@localhost enter the 
password
Install the same package: sudo pkcon install 
qt5-qtdeclarative-pim-contacts


Restart both VMs. I don't know if this last step is neccessary, but 
after I have done it the error message si gone

and ContactModel is a vailid type.

Thanks again !


Ciao
Matze

Am 21.12.2013 22:14, schrieb christopher.l...@thurweb.ch:

Hi Matthias

As the error says, QtContacts is not installed.

Try this article on tips on how to install to the SDK and Emulator

http://flyingsheeponsailfish.blogspot.ch/2013/11/deploying-additional-packages-to.html 
It focuses on Location and Positioning, but is the methods used are 
relevant for QtContacts as well.


The first thing is to establish what is already installed.

For the SDK, the easiest way for a newbie is via the SDK Control 
Center, which is available via the Sailfish icon on the left of the 
QtCreator screen.


On the Emulator, once connected via SSH, you can search for contacts 
modules with


pkcon search name contacts

I have several contacts modules installed on my Emulator, but then I 
have been experimenting with contacts, and will have installed some 
of these myself.


Once you have the correct modules installed to the SDK and Emulator 
(and synced with QtCreator), then you should be able to use 
QtContacts from both C++ and QML.


Ciao

Chris

Zitat von Matthias Barmeier barme...@barmeier.com:


Hi,

the include error is fixed, but now I am back to my old problem:

[W] unknown:33 - 
file:///usr/share/test/qml/pages/FirstPage.qml:33:1: module 
QtContacts is not installed


import QtContacts 5.0


my QML:

import QtQuick 2.0
import Sailfish.Silica 1.0
import QtContacts 5.0

Page {
   id: page
...


my test.cpp:

#ifdef QT_QML_DEBUG
#include QtQuick
#endif

#include sailfishapp.h
#include QtContacts/QtContacts

...

What else must I do ?

Ciao
   Matze

Am 21.12.2013 14:36, schrieb Andrey Kozhevnikov:

add
INCLUDEPATH += /usr/include/qt5/QtContacts
to pro file

On 21.12.2013 18:44, Matthias Barmeier wrote:

Hi,

I added the CONFIG line to my project file. And added the include 
to my .cpp file, but got this.


/usr/include/qt5/QtContacts/qcontact.h:53: 
Fehler:qcontactsglobal.h: No such file or directory


This file is availables under:
/opt/SailfishOS/mersdk/targets/SailfishOS-i486-x86/usr/include/qt5/QtContacts 
I try to use QtContacts from qml ist this possible ?


Ciao
  Matze

Am 21.12.2013 13:04, schrieb Andrey Kozhevnikov:

add it to pro file CONFIG += Qt5Contacts
and then include in Qt 

Re: [SailfishDevel] QtContacts available

2013-12-22 Thread christopher . lamb

Hi Matze

It is confusing at first, but once you get it, it is easy!


I cover that in the chapter Installing By Hand to the SDK Build  
Engine via the Control Center in:  
http://flyingsheeponsailfish.blogspot.ch/2013/11/deploying-additional-packages-to.html


You are right there are 2 VMS, the obvious Emulator, and the  
headerless SDK Build Engine.


The Emulator is the easy one, you SSH in, and use PkCon or zypper to  
install stuff directly to make them available to you apps.


The SDK Build Engine is a little bit more tricky.

Once you SSH in, zypper is available, but if you zypper at that level,  
all you are doing is adding stuff to the operating system.


Within this VM is SB2, which is the Build Engine itself. Others on  
this mailist are much better qualified than me to tell you more about  
it.


So lets SSH in as user mersdk:

ssh -p  -i ~/SailfishOS/vmshare/ssh/private_keys/engine/mersdk  
mersdk@localhost


Then we can enter into the build engine with:

sb2 -t SailfishOS-i486-x86

After that we can use zypper again, e.g. to list qt5 packages  
installed to the build engine:


zypper se qt5 | grep i |

If you install things within SB2, it is equivalent to installing via  
the SDK Control Center.


You can back out of SB2 with:

exit

Then if you repeat:

zypper se qt5 | grep i |

You should get a much shorter list of installed qt5 packages.

Have fun

Chris







Zitat von Matthias Barmeier barme...@barmeier.com:


Hi Chris,

please help me with my confusion :)

My understanding was that the build engine is the VM located at port  
. I used zypper because I read this in the blog post.
I thought that it does not make a difference if I install it via SDK  
Control center, zypper or pkcon. Is this right ?


What do you mean with SDK VM ? The emulator ? I thought there are  
only two VMs ? What doe you mean with SB2 ?


There is much to learn for me. But with your hints I had a small  
success after my old Harmattan application started to breathe :).


Ciao
Matze

Am 22.12.2013 16:54, schrieb christopher.l...@thurweb.ch:

Hi Matthias

Here are a few more hints

You connected to the SDK with a key, but to the Emulator without. A  
key can be used for both for passwordless access.


//Connect to SDK
ssh -p  -i ~/SailfishOS/vmshare/ssh/private_keys/engine/mersdk  
mersdk@localhost


ssh -p  -i ~/SailfishOS/vmshare/ssh/private_keys/engine/root  
root@localhost



//Connect to Emulator
ssh -p 2223 -i  
~/SailfishOS/vmshare/ssh/private_keys/SailfishOS_Emulator/nemo  
nemo@localhost


ssh -p 2223 -i  
~/SailfishOS/vmshare/ssh/private_keys/SailfishOS_Emulator/root  
root@localhost


The commands above work on OSX, and should work on Linux.


In your mail below you used zypper to install to the SDK VM, but  
not to the build engine with the VM, so that won't really help you.  
You have made the package available to the Operating System rather  
than to the build engine.


To install by hand to the build-engine, either use the SDK  
Control Center to search and install the package


or

connect via SSH to the SDK as you describe, then start SB2 and use  
zypper within SB2. Then sync from the control center.



Grüsse

Chris


Zitat von Matthias Barmeier barme...@barmeier.com:


Hi,

thanks a lot.

Your link and this one:  
http://flyingsheeponsailfish.blogspot.de/2013/10/alpha-2-migrating-landed.html
has working hints on what packages must be installed and how to  
make QtContacts work.


If someone else needs this here is my way of QtContacts enabling:

ssh to mer build engine:  ssh -p  -i  
/opt/SailfishOS/vmshare/ssh/private_keys/engine/root root@localhost

install a package with: zypper in qt5-qtdeclarative-pim-contacts

Select the Sailfish-Icon on the QtCreator toolbar.
Select Targets - SailfishOS-i486-x86 - manage - sync

On the emulator select settings and set a password for the ssh connection.
ssh to the emulator:   ssh -p 2223 nemo@localhost enter  
the password

Install the same package: sudo pkcon install qt5-qtdeclarative-pim-contacts

Restart both VMs. I don't know if this last step is neccessary,  
but after I have done it the error message si gone

and ContactModel is a vailid type.

Thanks again !


Ciao
   Matze

Am 21.12.2013 22:14, schrieb christopher.l...@thurweb.ch:

Hi Matthias

As the error says, QtContacts is not installed.

Try this article on tips on how to install to the SDK and Emulator

http://flyingsheeponsailfish.blogspot.ch/2013/11/deploying-additional-packages-to.html It focuses on Location and Positioning, but is the methods used are relevant for QtContacts as  
well.


The first thing is to establish what is already installed.

For the SDK, the easiest way for a newbie is via the SDK Control  
Center, which is available via the Sailfish icon on the left of  
the QtCreator screen.


On the Emulator, once connected via SSH, you can search for  
contacts modules with


pkcon search name contacts

I have several contacts modules 

Re: [SailfishDevel] QtContacts available

2013-12-22 Thread David Greaves
Yes - all reasonably accurate.

But then there's the SDK control centre:

* Open Control Centre in SDK (the SailfishOS button on the left - don't ask why)
* Go to Targets
* Click manage by SailfishOS-armv7hl or SailfishOS-i486-x86
* type contact into the search box (no return)
* hmm, too many, add a space and qt5 to see the 'as you type' search (no,
really, pay attention, it took me ages to write that)
* now click install on the one you want or note it down to add to the 
BuildRequires

David
PS there's a bug where some packages appear twice. That's because it shows the
src package too. I'm sure it'll get fixed one day :)

PPS Terminoloy: the VM is the Build Engine. The SB2 things are called 'Targets'
as they allow the BE to build for a variety of targets. Note also the Toolchains
for a variety of architectures.

On 22/12/13 20:50, christopher.l...@thurweb.ch wrote:
 Hi Matze
 
 It is confusing at first, but once you get it, it is easy!
 
 
 I cover that in the chapter Installing By Hand to the SDK Build Engine via 
 the
 Control Center in:
 http://flyingsheeponsailfish.blogspot.ch/2013/11/deploying-additional-packages-to.html
 
 
 You are right there are 2 VMS, the obvious Emulator, and the headerless SDK
 Build Engine.
 
 The Emulator is the easy one, you SSH in, and use PkCon or zypper to install
 stuff directly to make them available to you apps.
 
 The SDK Build Engine is a little bit more tricky.
 
 Once you SSH in, zypper is available, but if you zypper at that level, all you
 are doing is adding stuff to the operating system.
 
 Within this VM is SB2, which is the Build Engine itself. Others on this 
 mailist
 are much better qualified than me to tell you more about it.
 
 So lets SSH in as user mersdk:
 
 ssh -p  -i ~/SailfishOS/vmshare/ssh/private_keys/engine/mersdk 
 mersdk@localhost
 
 Then we can enter into the build engine with:
 
 sb2 -t SailfishOS-i486-x86
 
 After that we can use zypper again, e.g. to list qt5 packages installed to the
 build engine:
 
 zypper se qt5 | grep i |
 
 If you install things within SB2, it is equivalent to installing via the SDK
 Control Center.
 
 You can back out of SB2 with:
 
 exit
 
 Then if you repeat:
 
 zypper se qt5 | grep i |
 
 You should get a much shorter list of installed qt5 packages.
 
 Have fun
 
 Chris
 
 
 
 
 
 
 
 Zitat von Matthias Barmeier barme...@barmeier.com:
 
 Hi Chris,

 please help me with my confusion :)

 My understanding was that the build engine is the VM located at port . I
 used zypper because I read this in the blog post.
 I thought that it does not make a difference if I install it via SDK Control
 center, zypper or pkcon. Is this right ?

 What do you mean with SDK VM ? The emulator ? I thought there are only two 
 VMs
 ? What doe you mean with SB2 ?

 There is much to learn for me. But with your hints I had a small success 
 after
 my old Harmattan application started to breathe :).

 Ciao
 Matze

 Am 22.12.2013 16:54, schrieb christopher.l...@thurweb.ch:
 Hi Matthias

 Here are a few more hints

 You connected to the SDK with a key, but to the Emulator without. A key can
 be used for both for passwordless access.

 //Connect to SDK
 ssh -p  -i ~/SailfishOS/vmshare/ssh/private_keys/engine/mersdk
 mersdk@localhost

 ssh -p  -i ~/SailfishOS/vmshare/ssh/private_keys/engine/root 
 root@localhost


 //Connect to Emulator
 ssh -p 2223 -i 
 ~/SailfishOS/vmshare/ssh/private_keys/SailfishOS_Emulator/nemo
 nemo@localhost

 ssh -p 2223 -i 
 ~/SailfishOS/vmshare/ssh/private_keys/SailfishOS_Emulator/root
 root@localhost

 The commands above work on OSX, and should work on Linux.


 In your mail below you used zypper to install to the SDK VM, but not to the
 build engine with the VM, so that won't really help you. You have made the
 package available to the Operating System rather than to the build engine.

 To install by hand to the build-engine, either use the SDK Control Center
 to search and install the package

 or

 connect via SSH to the SDK as you describe, then start SB2 and use zypper
 within SB2. Then sync from the control center.


 Grüsse

 Chris


 Zitat von Matthias Barmeier barme...@barmeier.com:

 Hi,

 thanks a lot.

 Your link and this one:
 http://flyingsheeponsailfish.blogspot.de/2013/10/alpha-2-migrating-landed.html
 has working hints on what packages must be installed and how to make
 QtContacts work.

 If someone else needs this here is my way of QtContacts enabling:

 ssh to mer build engine:  ssh -p  -i
 /opt/SailfishOS/vmshare/ssh/private_keys/engine/root root@localhost
 install a package with: zypper in qt5-qtdeclarative-pim-contacts

 Select the Sailfish-Icon on the QtCreator toolbar.
 Select Targets - SailfishOS-i486-x86 - manage - sync

 On the emulator select settings and set a password for the ssh connection.
 ssh to the emulator:   ssh -p 2223 nemo@localhost enter the 
 password
 Install the same package: sudo pkcon install qt5-qtdeclarative-pim-contacts

 Restart 

Re: [SailfishDevel] QtContacts available

2013-12-22 Thread Marko Koschak
Hi Matze

On So, 2013-12-22 at 21:50 +0100, christopher.l...@thurweb.ch wrote:
 The SDK Build Engine is a little bit more tricky.
 
 Once you SSH in, zypper is available, but if you zypper at that level,  
 all you are doing is adding stuff to the operating system.
 
 Within this VM is SB2, which is the Build Engine itself. Others on  
 this mailist are much better qualified than me to tell you more about  
 it.

If you are familiar with the term chroot (change-root) then you could
thing of SB2 (Scratchbox2) just as an chroot environment running armv7hl
emulated code (through qemu) where you actually build your source rpm
package. SB2 comes from the legacy of cross-compiling. The problem
with cross-compiling is that you need to tell your compiler not to use
the host (x86) tools and libs for compiling but the equivalent tools and
libs from the target (armv7hl) system. There are multiple approaches to
overcome that. One is to tell the compiler (via e.g. configure,
makefile,...) where to find that stuff or you don't tell the compiler
that (less work to create a makefile that cross-compiles too) but alter
your environment that the compiler thinks it is running on the target
(armv7hl) system itself. This is what SB2 actually does. That is very
useful if you want to compile just any normal rpm package (from the
linux userland stack) without adapting it to the target architecture.

(In detail SB2 is not a full chroot system, but it uses fakeroot which
enables SB2 to use host tools for speed up compilation instead of
running arm binaries in slow emulation mode. It's quite some time ago I
used SB2 but I hope I got it right and you got a rough idea... :)

Cheers,
Marko

___
SailfishOS.org Devel mailing list


[SailfishDevel] QtContacts available

2013-12-21 Thread Matthias Barmeier

Hi,

is QtContacts available for SDK emulator or Device ? And if it is 
available where and how can I get it ?


Ciao
 Matze
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] QtContacts available

2013-12-21 Thread Andrey Kozhevnikov

add it to pro file CONFIG += Qt5Contacts
and then include in Qt QtContacs/...

On 21.12.2013 18:02, Matthias Barmeier wrote:

Hi,

I am new to SailfishOS coming from Harmattan. How can I add this module ?
Is there any Dev Introduction available on how to add modules or which 
modules are available ?


Thanks.

Ciao
Matze

Am 21.12.2013 12:59, schrieb Andrey Kozhevnikov:

its Qt5Contacts module

On 21.12.2013 17:58, Matthias Barmeier wrote:

Hi,

is QtContacts available for SDK emulator or Device ? And if it is 
available where and how can I get it ?


Ciao
 Matze
___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] QtContacts available

2013-12-21 Thread Matthias Barmeier

Hi,

I added the CONFIG line to my project file. And added the include to my 
.cpp file, but got this.


/usr/include/qt5/QtContacts/qcontact.h:53: Fehler:qcontactsglobal.h: No 
such file or directory


This file is availables under:
/opt/SailfishOS/mersdk/targets/SailfishOS-i486-x86/usr/include/qt5/QtContacts

I try to use QtContacts from qml ist this possible ?

Ciao
Matze

Am 21.12.2013 13:04, schrieb Andrey Kozhevnikov:

add it to pro file CONFIG += Qt5Contacts
and then include in Qt QtContacs/...

On 21.12.2013 18:02, Matthias Barmeier wrote:

Hi,

I am new to SailfishOS coming from Harmattan. How can I add this 
module ?
Is there any Dev Introduction available on how to add modules or 
which modules are available ?


Thanks.

Ciao
Matze

Am 21.12.2013 12:59, schrieb Andrey Kozhevnikov:

its Qt5Contacts module

On 21.12.2013 17:58, Matthias Barmeier wrote:

Hi,

is QtContacts available for SDK emulator or Device ? And if it is 
available where and how can I get it ?


Ciao
 Matze
___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] QtContacts available

2013-12-21 Thread Andrey Kozhevnikov

add
INCLUDEPATH += /usr/include/qt5/QtContacts
to pro file

On 21.12.2013 18:44, Matthias Barmeier wrote:

Hi,

I added the CONFIG line to my project file. And added the include to 
my .cpp file, but got this.


/usr/include/qt5/QtContacts/qcontact.h:53: Fehler:qcontactsglobal.h: 
No such file or directory


This file is availables under:
/opt/SailfishOS/mersdk/targets/SailfishOS-i486-x86/usr/include/qt5/QtContacts 



I try to use QtContacts from qml ist this possible ?

Ciao
Matze

Am 21.12.2013 13:04, schrieb Andrey Kozhevnikov:

add it to pro file CONFIG += Qt5Contacts
and then include in Qt QtContacs/...

On 21.12.2013 18:02, Matthias Barmeier wrote:

Hi,

I am new to SailfishOS coming from Harmattan. How can I add this 
module ?
Is there any Dev Introduction available on how to add modules or 
which modules are available ?


Thanks.

Ciao
Matze

Am 21.12.2013 12:59, schrieb Andrey Kozhevnikov:

its Qt5Contacts module

On 21.12.2013 17:58, Matthias Barmeier wrote:

Hi,

is QtContacts available for SDK emulator or Device ? And if it is 
available where and how can I get it ?


Ciao
 Matze
___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] QtContacts available

2013-12-21 Thread Andrey Kozhevnikov

There is no QML Contacts 5.0 in Sailfish.
You can use Sailfish.Contacts in sailfish-components-contacts-qt5

On 21.12.2013 20:26, Matthias Barmeier wrote:

Hi,

the include error is fixed, but now I am back to my old problem:

[W] unknown:33 - file:///usr/share/test/qml/pages/FirstPage.qml:33:1: 
module QtContacts is not installed


import QtContacts 5.0


my QML:

import QtQuick 2.0
import Sailfish.Silica 1.0
import QtContacts 5.0

Page {
id: page
 ...


my test.cpp:

#ifdef QT_QML_DEBUG
#include QtQuick
#endif

#include sailfishapp.h
#include QtContacts/QtContacts

...

What else must I do ?

Ciao
Matze

Am 21.12.2013 14:36, schrieb Andrey Kozhevnikov:

add
INCLUDEPATH += /usr/include/qt5/QtContacts
to pro file

On 21.12.2013 18:44, Matthias Barmeier wrote:

Hi,

I added the CONFIG line to my project file. And added the include to 
my .cpp file, but got this.


/usr/include/qt5/QtContacts/qcontact.h:53: Fehler:qcontactsglobal.h: 
No such file or directory


This file is availables under:
/opt/SailfishOS/mersdk/targets/SailfishOS-i486-x86/usr/include/qt5/QtContacts 



I try to use QtContacts from qml ist this possible ?

Ciao
Matze

Am 21.12.2013 13:04, schrieb Andrey Kozhevnikov:

add it to pro file CONFIG += Qt5Contacts
and then include in Qt QtContacs/...

On 21.12.2013 18:02, Matthias Barmeier wrote:

Hi,

I am new to SailfishOS coming from Harmattan. How can I add this 
module ?
Is there any Dev Introduction available on how to add modules or 
which modules are available ?


Thanks.

Ciao
Matze

Am 21.12.2013 12:59, schrieb Andrey Kozhevnikov:

its Qt5Contacts module

On 21.12.2013 17:58, Matthias Barmeier wrote:

Hi,

is QtContacts available for SDK emulator or Device ? And if it 
is available where and how can I get it ?


Ciao
 Matze
___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list





___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] QtContacts available

2013-12-21 Thread Gabriel Boehme
Hi,

But all ways (C++/QML) are all not allowed at store at the moment, are
they?

Gabriel.

Am Samstag, den 21.12.2013, 20:45 +0600 schrieb Andrey Kozhevnikov:
 There is no QML Contacts 5.0 in Sailfish.
 You can use Sailfish.Contacts in sailfish-components-contacts-qt5
 
 On 21.12.2013 20:26, Matthias Barmeier wrote:
 
  Hi, 
  
  the include error is fixed, but now I am back to my old problem: 
  
  [W] unknown:33 -
  file:///usr/share/test/qml/pages/FirstPage.qml:33:1: module
  QtContacts is not installed 
  
  import QtContacts 5.0 
  
  
  my QML: 
  
  import QtQuick 2.0 
  import Sailfish.Silica 1.0 
  import QtContacts 5.0 
  
  Page { 
  id: page 
   ... 
  
  
  my test.cpp: 
  
  #ifdef QT_QML_DEBUG 
  #include QtQuick 
  #endif 
  
  #include sailfishapp.h 
  #include QtContacts/QtContacts 
  
  ... 
  
  What else must I do ? 
  
  Ciao 
  Matze 
  
  Am 21.12.2013 14:36, schrieb Andrey Kozhevnikov: 
   add 
   INCLUDEPATH += /usr/include/qt5/QtContacts 
   to pro file 
   
   On 21.12.2013 18:44, Matthias Barmeier wrote: 
Hi, 

I added the CONFIG line to my project file. And added the
include to my .cpp file, but got this. 

/usr/include/qt5/QtContacts/qcontact.h:53:
Fehler:qcontactsglobal.h: No such file or directory 

This file is availables under: 
/opt/SailfishOS/mersdk/targets/SailfishOS-i486-x86/usr/include/qt5/QtContacts
 

I try to use QtContacts from qml ist this possible ? 

Ciao 
Matze 

Am 21.12.2013 13:04, schrieb Andrey Kozhevnikov: 
 add it to pro file CONFIG += Qt5Contacts 
 and then include in Qt QtContacs/... 
 
 On 21.12.2013 18:02, Matthias Barmeier wrote: 
  Hi, 
  
  I am new to SailfishOS coming from Harmattan. How can I add
  this module ? 
  Is there any Dev Introduction available on how to add
  modules or which modules are available ? 
  
  Thanks. 
  
  Ciao 
  Matze 
  
  Am 21.12.2013 12:59, schrieb Andrey Kozhevnikov: 
   its Qt5Contacts module 
   
   On 21.12.2013 17:58, Matthias Barmeier wrote: 
Hi, 

is QtContacts available for SDK emulator or Device ? And
if it is available where and how can I get it ? 

Ciao 
 Matze 
___ 
SailfishOS.org Devel mailing list 
   
   ___ 
   SailfishOS.org Devel mailing list 
  
  ___ 
  SailfishOS.org Devel mailing list 
 
 ___ 
 SailfishOS.org Devel mailing list 

___ 
SailfishOS.org Devel mailing list 
   
   ___ 
   SailfishOS.org Devel mailing list 
  
  
  
  
  ___
  SailfishOS.org Devel mailing list
 
 ___
 SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list