[SailfishDevel] Account storage access
Hi, is it possible to access the account storage (the file where URLs, usernames, passwords are saved to) with tools like sqlite3 or even vi ? Ciao Matze ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Cannot open projects after updating SDK
Hi, deleting the folder does not help :( The result is the same, when I try to open a project that worked fine before the SDK update I get a message that no kits are available and that I should add them in the QtCreator Settings dialog. I can add kits there but I dont know how. Do you have another hint or a pointer for a documentation for me ? Ciao Matze Am 25.06.2014 10:36, schrieb Juha Kallioinen: On 25.06.2014 00:21, Matthias Barmeier wrote: Hi, after updating my SDK I cannot open my projects any more. QtCreator shows a message saying that no kits are available. Does anyone know how to fix this ? Hi, you could try removing the old configuration files and see if that helps. I assume you are a Linux or Mac user in which case you can remove the configuration files like this: 1) Make sure Qt Creator is not running 2) rm -rf $HOME/.config/SailfishAlpha4 3) Start Qt Creator again Best regards, Juha ___ 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] Cannot open projects after updating SDK
Hi, Thanks, everything fine now ! Ciao Matze Am 26.06.2014 23:00, schrieb Bob Jelica: Try this: open your project in QTC, select ”Projects” in the left sidebar, add kits you need. //bob On 26 Jun 2014, at 22:51, Matthias Barmeier barme...@barmeier.com wrote: Hi, deleting the folder does not help :( The result is the same, when I try to open a project that worked fine before the SDK update I get a message that no kits are available and that I should add them in the QtCreator Settings dialog. I can add kits there but I dont know how. Do you have another hint or a pointer for a documentation for me ? Ciao Matze Am 25.06.2014 10:36, schrieb Juha Kallioinen: On 25.06.2014 00:21, Matthias Barmeier wrote: Hi, after updating my SDK I cannot open my projects any more. QtCreator shows a message saying that no kits are available. Does anyone know how to fix this ? Hi, you could try removing the old configuration files and see if that helps. I assume you are a Linux or Mac user in which case you can remove the configuration files like this: 1) Make sure Qt Creator is not running 2) rm -rf $HOME/.config/SailfishAlpha4 3) Start Qt Creator again Best regards, Juha ___ 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 ___ 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
[SailfishDevel] Cannot open projects after updating SDK
Hi, after updating my SDK I cannot open my projects any more. QtCreator shows a message saying that no kits are available. Does anyone know how to fix this ? Ciao Matze ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] FTP download with qtquick possible ?
Hi, I think I will give Python a try because my C++ knwoledge is very limited. Thanks a lot. Ciao Matze Am 21.06.2014 16:05, schrieb Alejandro Exojo: El Friday 20 June 2014, Matthias Barmeier escribió: is it possible to download a file via qml(JS) from a server and store the file on the sdcard ? It is possible in the same degree that almost everything is possible. That doesn't mean you can do absolutely everything in the QML/JS side of things, because you rarely should do it. You should limit yourself to the UI in QML, and couple the UI with a more powerful logic in C++ (or in Python, if you give PyOtherSide a try). With Qt/C++, it was possible to use the QFtp, but is no longer available in Qt5. You can find some solutions, though: https://duckduckgo.com/?q=qftp+qt5 ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
[SailfishDevel] FTP download with qtquick possible ?
Hi, is it possible to download a file via qml(JS) from a server and store the file on the sdcard ? Ciao Matze ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
[SailfishDevel] QML creates a Segfault
Hi, when trying to download data in a WorkerScript thread I got this: bash: line 1: 1459 Segmentation fault QT_NO_JOURNALD_LOG=1 DISPLAY=:0.0 /usr/bin/CalDav Can somebody explain if I can avoid this or what the reason is ? Thanks. Ciao Matze ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] QML creates a Segfault
hehe, yes. I was a bit confused about the segfault. I thought that QML runs in a container that could give me some more information. I will avoid the workerscript without ist works OK just a bit uncomforatable. Thanks. Am 13.05.2014 13:12, schrieb Andrey Kozhevnikov: Unknown script doing unknown work and producing unknown error. At least for me all working as expected :D 13.05.2014 17:00, Matthias Barmeier ?: Hi, when trying to download data in a WorkerScript thread I got this: bash: line 1: 1459 Segmentation fault QT_NO_JOURNALD_LOG=1 DISPLAY=:0.0 /usr/bin/CalDav Can somebody explain if I can avoid this or what the reason is ? Thanks. Ciao Matze ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail todevel-unsubscr...@lists.sailfishos.org ___ 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] QML creates a Segfault
OK, its just a bit weird that the same program works without a WorkerScript. The WorkerScript is just to make the gui more repsonsive it has no relevance to the function. Thanks. Am 13.05.2014 13:31, schrieb Juha Kallioinen: On 13.05.2014 14:00, Matthias Barmeier wrote: Hi, when trying to download data in a WorkerScript thread I got this: bash: line 1: 1459 Segmentation fault QT_NO_JOURNALD_LOG=1 DISPLAY=:0.0 /usr/bin/CalDav Can somebody explain if I can avoid this or what the reason is ? That script part is how Qt Creator runs your application in the device/emulator. So it just means that /usr/bin/CalDav crashed to a SEGFAULT and you'll need to figure out why. Qt Creator launches the application in the device/emulator almost like this: ssh nemo@device_address QT_NO_JOURNALD_LOG=1 DISPLAY=:0.0 /usr/bin/applicationname It does not use ssh command, but an ssh library, which is part of Qt Creator. The QT_NO_JOURNALD_LOG =1 is there to make the application not put its output to journald, but to stdout/stderr instead so that Qt Creator can display it. Best regards, Juha ___ 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] QML creates a Segfault
haven't noticed the restrictions, but I give a listmodel to the WorkerScript and send a text back. No Operations on that, bat the listmodel is tied to listview. Maybe this creates the problem. Am 13.05.2014 14:13, schrieb Jonni Rainisto: http://qt-project.org/doc/qt-5/qml-qtquick-workerscript.html#restrictions Maybe you just didn't notice the restrictions part (ie script cannot access properties, methods or other attributes of the qml item etc). Hard to say without seeing your workerscript implementation. re, Jonni *From:* devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] on behalf of Matthias Barmeier [barme...@barmeier.com] *Sent:* Tuesday, May 13, 2014 2:57 PM *To:* Sailfish OS Developers *Subject:* Re: [SailfishDevel] QML creates a Segfault OK, its just a bit weird that the same program works without a WorkerScript. The WorkerScript is just to make the gui more repsonsive it has no relevance to the function. Thanks. Am 13.05.2014 13:31, schrieb Juha Kallioinen: On 13.05.2014 14:00, Matthias Barmeier wrote: Hi, when trying to download data in a WorkerScript thread I got this: bash: line 1: 1459 Segmentation fault QT_NO_JOURNALD_LOG=1 DISPLAY=:0.0 /usr/bin/CalDav Can somebody explain if I can avoid this or what the reason is ? That script part is how Qt Creator runs your application in the device/emulator. So it just means that /usr/bin/CalDav crashed to a SEGFAULT and you'll need to figure out why. Qt Creator launches the application in the device/emulator almost like this: ssh nemo@device_address QT_NO_JOURNALD_LOG=1 DISPLAY=:0.0 /usr/bin/applicationname It does not use ssh command, but an ssh library, which is part of Qt Creator. The QT_NO_JOURNALD_LOG =1 is there to make the application not put its output to journald, but to stdout/stderr instead so that Qt Creator can display it. Best regards, Juha ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail todevel-unsubscr...@lists.sailfishos.org ___ 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
[SailfishDevel] Howto access createEvent function in org.nemomobile.calendar ?
Hi, I would like to access the createEvent function from a .js file. I tried the following: --- SNIP .import org.nemomobile.calendar 1.0 as Calendar function addEvent (ocEvent) { var event = Calendar.createEvent(); --- But I only get: Object [object Object] has no method 'createEvent' What can I do to make it work ? Ciao Matze ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Howto access createEvent function in org.nemomobile.calendar ?
Hi Andrey, thanks, works perfect :) Do you have another tip for me ? When I ow try to add an event I always get: Error: Cannot assign to read-only property startTime Is it possible to enable write-access to this porperty or is there a setter method ? Do you have a hint where I could read about the tricks necessary to manage calendar events ? Ciao Matze Am 11.05.2014 20:38, schrieb Andrey Kozhevnikov: Calendar is singleton type. You should use it in .js as following: .import org.nemomobile.calendar 1.0 as NemoCalendar var event = NemoCalendar.Calendar.createEvent() 12.05.2014 00:21, Matthias Barmeier пишет: Hi, I would like to access the createEvent function from a .js file. I tried the following: --- SNIP .import org.nemomobile.calendar 1.0 as Calendar function addEvent (ocEvent) { var event = Calendar.createEvent(); --- But I only get: Object [object Object] has no method 'createEvent' What can I do to make it work ? Ciao Matze ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Howto activate scrolling when the keyboard shows up ?
Hi, I tried this but it doesn't help. Same as before. When the keyboard comes up it hides the last field of my dialog. My page looks like this: Dialog { DialogHeader { title: Save } id: preferencePage property string selectedName property string selectedUrl property string selectedUsername property string selectedPassword property string selectedColor SilicaFlickable { width: parent.width height: parent.height Column { id:dialog width: parent.width y: 100 ... Any hints ? Ciao Matze Am 06.05.2014 11:03, schrieb Pekka Vuorela: Tue, 2014-05-06 kello 07:23 +0200, Matthias Barmeier kirjoitti: Hi, When trying to implement a simple dialog I got the problem that the keyboard hides the lower half of my dialog. I tried several things found but nothing worked. Could some one leave me a hint where to look or a code snippet how to make dialog scrollable, when the keyboard is activated. Should be enough that the content of the dialog is inside some scrollable item, e.g. SilicaFlickable. ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] QtContacts and Calendar access doesn't work after update.
Could you please give me a link hon how to connect to the phone with permissions that will allow me to edit this file. Thanks. Am 01.02.2014 13:02, schrieb Bernd Wachter: Andrey Kozhevnikov coderusin...@gmail.com writes: same here for QtContacts: contactsdatabase.cpp:1028 static QSqlDatabase ContactsDatabase::open(const QString): Unable to create contacts database directory: /home/nemo/.local/share/system//privileged/Contacts/qtcontacts-sqlite Add your application to /usr/share/mapplauncherd/privileges (this will be overwritten on system updates, and only suitable for use on your phone, not for harbour) ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] How can I setup calendar access via QML ?
Hi, I have successfully gained read access to the calender. After reverse engineering the jolla calendar. Hopefully write access will work too . Ciao Matze Am 27.01.2014 13:18, schrieb Pekka Vuorela: On Sat, 2014-01-25 at 17:48 +0100, Ove Kåven wrote: Den 25. jan. 2014 13:55, skrev Matthias Barmeier: Hi, do you mean that all these packages: qt5-qtdeclarative-pim-organizer [...] are obsolete or am I unable to use them from QML ? Like Andrey, I'm convinced they are not used on Jolla. If you check, you'll see that none of these QtOrganizer packages are installed by default on the actual Jolla device, nor depended on by jolla-calendar. Since I can find no QtOrganizer backend to interface with the actual calendar, I'm pretty sure that trying to use QtOrganizer will not work in any useful way, even if you can access it from QML. Correct. Calendar is using Mkcal and currently there is no QtOrganizer backend for it. Do you have a hint where I can found an example on how to access the calendar with nemo.mobile.org ? For an example, you could always install jolla-calendar into your Jolla, ssh into it, and look under /usr/share/jolla-calendar to study their QML. Or you could, if you like, study the source code of org.nemomobile.calendar at https://github.com/nemomobile/nemo-qml-plugin-calendar/tree/master/src Worth noting that the qml plugin is not stable API, and also on the device the calendar database is protected from third party apps. ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
[SailfishDevel] Impossible to send a PROPFIND request via XMLHttpRequest !?
Hi, if I try to send a PROPFIND request via XMLHttpRequest I got: Error: Unsupported HTTP method type This makes live for QML developers harder then necessary. Will this be fixed or is there a hidden trick to get a PROPFIND response via QML ? Ciao Matze ___ SailfishOS.org Devel mailing list
[SailfishDevel] How can I setup calendar access via QML ?
Hi, does anybody know how how to setup calendar access from QML ? I have successfully gained access to contacts. I tried the same approach, but it does not work :(. What I have tried: .pro: CONFIG += QtOrganizer INCLUDEPATH += /usr/include/qt5/QtOrganizer .qml: import QtQuick 2.0 import Sailfish.Silica 1.0 import QtOrganizer 5.0 I get this during compile: [W] unknown:37 - file:///usr/share/CalDav/qml/CalDav.qml:37:30: Type FirstPage unavailable initialPage: Component { FirstPage { } } ^ [W] unknown:33 - file:///usr/share/CalDav/qml/pages/FirstPage.qml:33:1: module QtOrganizer is not installed import QtOrganizer 5.0 What can I do to make it work ? Ciao Matze ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] How can I setup calendar access via QML ?
Hi, do you mean that all these packages: qt5-qtdeclarative-pim-organizer qt5-qtdeclarative-pim-organizer-debuginfo qt5-qtpim-organizer qt5-qtpim-organizer-debuginfo qt5-qtpim-organizer-devel qt5-qtpim-versitorganizer qt5-qtpim-versitorganizer-debuginfo qt5-qtpim-versitorganizer-devel are obsolete or am I unable to use them from QML ? Do you have a hint where I can found an example on how to access the calendar with nemo.mobile.org ? Thanks. Ciao Matze Am 25.01.2014 13:01, schrieb Andrey Kozhevnikov: there are no organizer in Sailfish Sailfish using org.nemomobile.calendar module On 25.01.2014 17:57, Matthias Barmeier wrote: Hi, does anybody know how how to setup calendar access from QML ? I have successfully gained access to contacts. I tried the same approach, but it does not work :(. What I have tried: .pro: CONFIG += QtOrganizer INCLUDEPATH += /usr/include/qt5/QtOrganizer .qml: import QtQuick 2.0 import Sailfish.Silica 1.0 import QtOrganizer 5.0 I get this during compile: [W] unknown:37 - file:///usr/share/CalDav/qml/CalDav.qml:37:30: Type FirstPage unavailable initialPage: Component { FirstPage { } } ^ [W] unknown:33 - file:///usr/share/CalDav/qml/pages/FirstPage.qml:33:1: module QtOrganizer is not installed import QtOrganizer 5.0 What can I do to make it work ? Ciao Matze ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] How can I setup calendar access via QML ?
perfect, I just ad forgotten to install it on the emulator via pkcon. Thanks. Ciao Matze Am 25.01.2014 14:02, schrieb Andrey Kozhevnikov: well, you should try. i dont know if it functioning. but just try. you need to add qt5-qtdeclarative-pim-organizer to package depends to be able to install it. its not on device by default. On 25.01.2014 18:55, Matthias Barmeier wrote: Hi, do you mean that all these packages: qt5-qtdeclarative-pim-organizer qt5-qtdeclarative-pim-organizer-debuginfo qt5-qtpim-organizer qt5-qtpim-organizer-debuginfo qt5-qtpim-organizer-devel qt5-qtpim-versitorganizer qt5-qtpim-versitorganizer-debuginfo qt5-qtpim-versitorganizer-devel are obsolete or am I unable to use them from QML ? Do you have a hint where I can found an example on how to access the calendar with nemo.mobile.org ? Thanks. Ciao Matze Am 25.01.2014 13:01, schrieb Andrey Kozhevnikov: there are no organizer in Sailfish Sailfish using org.nemomobile.calendar module On 25.01.2014 17:57, Matthias Barmeier wrote: Hi, does anybody know how how to setup calendar access from QML ? I have successfully gained access to contacts. I tried the same approach, but it does not work :(. What I have tried: .pro: CONFIG += QtOrganizer INCLUDEPATH += /usr/include/qt5/QtOrganizer .qml: import QtQuick 2.0 import Sailfish.Silica 1.0 import QtOrganizer 5.0 I get this during compile: [W] unknown:37 - file:///usr/share/CalDav/qml/CalDav.qml:37:30: Type FirstPage unavailable initialPage: Component { FirstPage { } } ^ [W] unknown:33 - file:///usr/share/CalDav/qml/pages/FirstPage.qml:33:1: module QtOrganizer is not installed import QtOrganizer 5.0 What can I do to make it work ? 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
[SailfishDevel] Starting debug session failed
Hi, Is Information available on how to debug the debug process ? I am unable to run a debug session in emulator or on the phone. On the emulator I have a messages in the log window saying that debugging has started, but nothing happened. On the phone the log messages say that the session has started, failed and terminated in one second. Ciao Matze ___ SailfishOS.org Devel mailing list
[SailfishDevel] Clock skew when debugging over ssh
Hi, I try to run my app in debug mode on the phone but I always get this message: :-1: Warning: Clock skew detected. Your build may be incomplete. What does this mean ? Is this the reason why the debug session does not come up ? How can I avoid this ? Ciao Matze ___ SailfishOS.org Devel mailing list
[SailfishDevel] Putting data with QML on first screen after power on ?
Hi, is it possible to add notification, calendar entries or something else on the first screen with QML ? Does an official name for all the screens exists ? There is the screen after the device is double tapped or the power button is pressed, the screen when you scroll down and the screen that contains the apps. It would be helpful for searching that there is a reliable terminology. Ciao Matze ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Cannot access phone book on phone when starting app from QtCreator
Hi Andrey, Thanks A Lot !!! That worked without any problems. In QtCreator went to Projects. I set the Execute/Run ? (my QtCreator is in German) and set the executable to /usr/bin/invoker. After setting the arguments to --type qtquick2 /usr/bin/appname I can start the app and get access to the contacts DB. Thanks again. Ciao Matze Am 06.01.2014 14:16, schrieb Andrey Kozhevnikov: change your launch parameters to use invoker On 06.01.2014 19:14, Ove Kåven wrote: Den 05. jan. 2014 23:10, skrev Matthias Barmeier: Hi, I am unable to access the phone book when running my app from QtCreator on the phone. Is this a security feature ? I've needed to access PIM data myself, so, as far as I can tell from my own investigations, yes, it's Unix security. The directory .local/share/system/privileged is only accessible to processes that are in the privileged group. The standard boosters (used by mapplauncherd) seem to be sgid privileged, thus automatically giving Qt/QML apps that use them the necessary privileges (at least when launched from the phone menu, I suppose). But when you just launch something using ssh (not mapplauncherd), the apps probably won't belong to that group automatically. ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
[SailfishDevel] Is it possible to install the contacts app on the emulator ?
Hi, I would like to test my contacts sync function on the emulator. But my app interacts with Jollas Contacts app. Is it possible to install the app develivered with the phone on the emulator ? When I test my application on the phone I have no access to the Contacts app data if QtCreator is connected. Ciao Matze ___ SailfishOS.org Devel mailing list
[SailfishDevel] Possible QtContacts 5.0 Bug
Hi, when creating a contact I am unable to store the guid field. All data is stored but not the guid. Ciao Matze ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] QtContacts available
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
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
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 QtContacs
[SailfishDevel] QtContacts available
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
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] GStreamer does not support HTTP streaming -- Workaround?
Hi, I am new to Sailfish and can only try to give some hints. Have you checked if pulse audio is running SYSTEM mode ? If so you will need to have an entry like this in /etc/pulse/system.pa: load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1;192.168.1.0/24 listen=0.0.0.0 If this entry is there check the user permissions. The user must be member of : pulse AND pulse-access. Hope this helps. Ciao Matze Am 12.07.2013 15:02, schrieb Mohammed Hassan: It seems GStreamer pulsesink cannot connect to pulse audio. It then tries a few other sinks then fails completely. Unfortunately I do not know why pulseaudio is not working correctly. Could someone else help here? Cheers, On Fri, Jul 12, 2013 at 01:58:33PM +0200, Erlend Boe wrote: Hi Mohammed, Here is the output: [root@SailfishEmul ~]# GST_DEBUG='*:2' gst-launch-0.10 playbin2 uri=http://download.banshee-project.org/misc/http-test.ogg Setting pipeline to PAUSED ... Pipeline is PREROLLING ... 0:00:02.769910826 1363 0x6d901860 WARN pulse pulsesink.c:540:gst_pulseringbuffer_open_device:audiosink-actual-sink-pulse error: Failed to connect: Connection refused 0:00:02.772671188 1363 0x6d901860 WARNalsa pulse.c:243:pulse_connect: alsalib error: PulseAudio: Unable to connect: Connection refused 0:00:02.773043893 1363 0x6d901860 WARNalsa gstalsasink.c:694:gst_alsasink_open:audiosink-actual-sink-alsa error: Could not open audio device for playback. 0:00:02.773357077 1363 0x6d901860 WARNalsa gstalsasink.c:694:gst_alsasink_open:audiosink-actual-sink-alsa error: Playback open error on device 'default': Connection refused 0:00:02.774327278 1363 0x6d901860 WARNoss4 oss4-property-probe.c:374:gst_oss4_property_probe_get_values:audiosink-actual-sink-oss4 Can't open file descriptor to probe available devices: No such file or directory 0:00:02.774646351 1363 0x6d901860 WARNoss4sink oss4-sink.c:515:gst_oss4_sink_open:audiosink-actual-sink-oss4 error: Could not open audio device for playback. 0:00:02.774945041 1363 0x6d901860 WARNoss4sink oss4-sink.c:515:gst_oss4_sink_open:audiosink-actual-sink-oss4 error: system error: No such file or directory 0:00:02.775477104 1363 0x6d901860 WARN oss gstosssink.c:414:gst_oss_sink_open:audiosink-actual-sink-oss error: Could not open audio device for playback. 0:00:02.775756292 1363 0x6d901860 WARN oss gstosssink.c:414:gst_oss_sink_open:audiosink-actual-sink-oss error: system error: No such file or directory 0:00:02.776149518 1363 0x6d901860 WARN autodetect gstautoaudiosink.c:370:gst_auto_audio_sink_detect:audiosink error: Failed to find a supported audio sink 0:00:02.776486737 1363 0x6d901860 WARNplaysink gstplaysink.c:1906:gen_audio_chain:playsink0 error: The autoaudiosink element is not working. ERROR: from element /GstPlayBin2:playbin20/GstPlaySink:playsink0: The autoaudiosink element is not working. Additional debug info: gstplaysink.c(1906): gen_audio_chain (): /GstPlayBin2:playbin20/GstPlaySink:playsink0 ERROR: pipeline doesn't want to preroll. Setting pipeline to NULL ... Freeing pipeline ... [root@SailfishEmul ~]# Regards, Erlend On 12.07.2013, at 13:23, Mohammed Hassan mohammed.has...@jollamobile.com wrote: On Fri, Jul 12, 2013 at 12:25:56PM +0200, Erlend Boe wrote: Hi Mohammed, sadly it stops working after rebooting the VM. The error that I get in the console is: (HelloWorld:2291): GLib-GObject-WARNING **: invalid cast from `WebKitWebSrc' to `GstBaseSrc' ** (HelloWorld:2291): CRITICAL **: gst_base_src_is_live: assertion `GST_IS_BASE_SRC (src)' failed That is indeed strange but judging by the error below, it doesn't look like it's the case. and in the simulator: [root@SailfishEmul ~]# gst-launch-0.10 playbin2 uri=http://download.banshee-project.org/misc/http-test.ogg Setting pipeline to PAUSED ... Pipeline is PREROLLING ... ERROR: from element /GstPlayBin2:playbin20/GstPlaySink:playsink0: The autoaudiosink element is not working. Additional debug info: gstplaysink.c(1906): gen_audio_chain (): /GstPlayBin2:playbin20/GstPlaySink:playsink0 ERROR: pipeline doesn't want to preroll. Setting pipeline to NULL ... Freeing pipeline ... Could you please try GST_DEBUG='*:2' gst-launch-0.10 playbin2 uri=http://download.banshee-project.org/misc/http-test.ogg It should at least give us some more debugging Cheers, Regards, Erlend On 12.07.2013, at 08:30, Erlend Boe erlend...@yahoo.com wrote: Hi Mohammed, after doing zypper install gst-plugins-good, it now works. Thanks! can you confirm that the gst-plugins-good will be part of the next Sailfish release, and will be installed in the shipping product? Regards, Erlend On 11.07.2013, at 17:17, Mohammed Hassan
Re: [SailfishDevel] No Kits available in Qt Creator
Hi Chris, right, that is the dialog I mean. I tried to create a Sailfish project, but the list is empty and Mersdk-SailfishOS-i486-x86 is not there. Ciao Matthias Am 01.07.2013 21:35, schrieb christopher.l...@thurweb.ch: Hi Matthias By Kit Selection Dialog do you mean the one that you get when you create a new project? If so, what type of new project did you chose - I get different kits available depending on the project type. If I choose the default Applications / Mobile Qt Applications I get only a Qt Simulator N9 Kit - this is one I have manually added - you will probably get nothing here. If I choose the Applications / sailfish Qt Quick Application, then I get the Mersdk-SailfishOS-i486-x86. I guess this is what you are after. Chris Zitat von Matthias Barmeier barme...@barmeier.com: Hi Chris, under Plugins - Device Support I found Mer and Remoe Linux loaded. When I look into the Settings Dialog under Build and Run under the tab Kits Mer SDK is listed. When I run the VMs (MerSDK and Sailfish OS) and click on the Sailfish OS Butten. I can use the target dialog. But I no kits are listed in the Kit Selection dialog. Ciao Matthias Am 01.07.2013 07:14, schrieb christopher.l...@thurweb.ch: Matthias Have you checked under About Plugins if any kits are installed / selected? You should find them in the section Device Support. Chris Zitat von Matthias Barmeier barme...@barmeier.com: Hi, after installing Sailfish SDK and trying to create a project I cannot select a kit in in the Kit Selection dialog because the list contains no items. What can I do ? Ciao Matthias ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list