[SailfishDevel] HowTo debug from inside the IDE an application?

2014-02-27 Thread Iosif Hamlatzis
I've just managed to port one of my BB10 games to SailfishOS, but now the problem is how to debug it on the emulator and later on the actual device. I am using *windows* and want to be able to debug (step by step) from *inside the IDE*. When the compilation finished I've noticed a message on the

Re: [SailfishDevel] How to debug Julla

2014-02-27 Thread christopher . lamb
Hi Tony I initially had great problems upgrading my Jolla, installing stuff from the store, and even activating developer mode. After lots of hunting around, experimentation and measuring, I concluded that the problem was high latency in my home network, and the Jolla's poor tolerance

[SailfishDevel] QtContacts: phoneNumbers.length attribute gets lost when copied to ListModel

2014-02-27 Thread christopher . lamb
Hi All I have come across some strangeness using QtContacts 5.0 on Sailfish. For various reasons partially lost in the mists of time, I copy contacts (or rather a subset of contract roles) from the ContactModel to a a normal ListModel. One of the roles copied is phoneNumbers. This has a

Re: [SailfishDevel] QML C++ Integration not working in Sailfish

2014-02-27 Thread antonio . cano . gomez
Hi sylvain, This is not the case a renamed the variable so the have exactly the same name. On the other hand, may be the problem is that I am calling it from .js file by the next code: .pragma library .import QtQuick 2.0 as QQ var appState; function getAppState() { return appState; }

Re: [SailfishDevel] QML C++ Integration not working in Sailfish

2014-02-27 Thread Jonni Rainisto
Yes, if you read the documentation pragma library cannot access qml properties directly. So its a feature. http://qt-project.org/doc/qt-5.0/qtqml/qtqml-javascript-resources.html#shared-javascript-resources-libraries re, Jonni From:

Re: [SailfishDevel] HowTo debug from inside the IDE an application?

2014-02-27 Thread Juha Kallioinen
Hi, sorry but with the current SDK it is not possible to use gdb from IDE. That scratchbox2 message is not relevant, since gdb would be run from the host and not from inside the build machine. We're working hard to get a new SDK release out, but can't give a date yet. Best regards, Juha

Re: [SailfishDevel] QML C++ Integration not working in Sailfish

2014-02-27 Thread Stefan Brand
Hi, On 25.02.2014 15:06, antonio.cano.go...@ovi.com wrote: An I try to connect this with my sailfish application with the code: QGuiApplication *app = SailfishApp::application(argc, argv); QQuickView *view = SailfishApp::createView(); Bloomfilters * bloomfilters = new Bloomfilters();

Re: [SailfishDevel] How to debug Julla

2014-02-27 Thread christopher . lamb
Hi Jonni In my case getting rid of the latency in my home network seemed to do the trick. Having got the latency down to normal levels, I was able to upgrade the phone, use the store, activate developer mode etc. without a hitch. Interestingly though, the phone is more than 1.5 mins

Re: [SailfishDevel] How to debug Julla

2014-02-27 Thread Jonni Rainisto
Yes, usually you get accurate time from your GSM network depending on your operator. Sometimes users do start the phone without SIM attached, and in that case people can forget 1970 or some other wrong year in the device. In future updates there are improvements to automaticly fetch time also

Re: [SailfishDevel] QML C++ Integration not working in Sailfish

2014-02-27 Thread antonio . cano . gomez
Yes, it helped thanks. My problem now is different. I have some private attributes in my C++ object. When I call the first tiem I can modify the attributes, but in the second call the attributes dessapear. Is there a way to solve this problem? (The attributes a new C++ Object not declared as

Re: [SailfishDevel] How to debug Julla

2014-02-27 Thread christopher . lamb
Hi Jonni I have just found an option Automatic update under Settings/Time and Date. Selecting that has jumped the time to be within seconds of real time. Chris Zitat von Jonni Rainisto jonni.raini...@jolla.com: Yes, usually you get accurate time from your GSM network depending on your

Re: [SailfishDevel] QML C++ Integration not working in Sailfish

2014-02-27 Thread christopher . lamb
Antonio Can you provide a code example, and the exact error(s) that you get. Chris Zitat von antonio.cano.go...@ovi.com: Yes, it helped thanks. My problem now is different. I have some private attributes in my C++ object. When I call the first tiem I can modify the attributes, but in the

[SailfishDevel] How to monitor inputs from a earphone remote control

2014-02-27 Thread Franck Routier (perso)
Hi, I have earphones plugged in, with a three buttons remote control. How can I monitor how the remote control translate on the linux (wayland ??) level ? How can I get these commands in my QML application ? Thanks, Franck ___ SailfishOS.org Devel

[SailfishDevel] 回复: How to debug Julla

2014-02-27 Thread itviewer
Hi chendong, From your name (chendong),I think you're from China. If I guess right , I regret to tell you that ,for China's current network environment, the jolla is unavailable I don't know the reason,But if you use a proxy of other countries,the phone's network will work well and the system

Re: [SailfishDevel] How to monitor inputs from a earphone remote control

2014-02-27 Thread Jonni Rainisto
Currently you cannot as there is no support for earphone buttons done yet. From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] on behalf of Franck Routier (perso) [a...@mecadu.org] Sent: Thursday, February 27, 2014 3:58 PM To:

[SailfishDevel] Show application content in cover on certain page

2014-02-27 Thread Matthias Fehring
Hello sailors, if the cover is set to undefined it shows the current application content (like the Sailfish browser). But how to change between cover page and undefined? For example, the app should show CoverBackground element on certain pages, but when it shows a WebView, it should show the

[SailfishDevel] HowTo package my resources (images/sounds/etc)

2014-02-27 Thread Iosif Hamlatzis
I cannot find a way to include my resources for my game. I have a hierarchy of folders for my fonts, images, sounds and settings files, how can I package them so they keep the hierarchy? ___ SailfishOS.org Devel mailing list

Re: [SailfishDevel] HowTo package my resources (images/sounds/etc)

2014-02-27 Thread Andrea Bernabei
This is what Qt offers ;) http://qt-project.org/doc/qt-5/resources.html 2014-02-27 19:35 GMT+01:00 Iosif Hamlatzis i.hamlat...@gmail.com: I cannot find a way to include my resources for my game. I have a hierarchy of folders for my fonts, images, sounds and settings files, how can I package

Re: [SailfishDevel] HowTo package my resources (images/sounds/etc)

2014-02-27 Thread Andrea Bernabei
given your case (a game) you probably don't want to compile the biggest files inside the binary... so you just bundle those files in your application rpm by modifying the INSTALLS var in your .pro project file More info: https://sailfishos.org/develop-packaging-apps.html 2014-02-27 20:05

Re: [SailfishDevel] HowTo package my resources (images/sounds/etc)

2014-02-27 Thread Iosif Hamlatzis
ok thanks and if I am not making a Qt application but just a plain c/c++ application? Is there a way to define just the root of my assets folder? Let's say my tree is: c:\workspace\mygame\Home c:\workspace\mygame\Home\media c:\workspace\mygame\Home\media\bmps

Re: [SailfishDevel] HowTo package my resources (images/sounds/etc)

2014-02-27 Thread Andrea Bernabei
if you just want to bundle all the files in one dir, you just add example_name.files = dir example_name.path = output_dir INSTALLS += example_name (this is for the just bundle inside the rpm package case) Read the sailfishos.org page I linked :) 2014-02-27 20:14 GMT+01:00 Iosif Hamlatzis

Re: [SailfishDevel] HowTo package my resources (images/sounds/etc)

2014-02-27 Thread Andrey Kozhevnikov
res.files = Home/* res.path = /usr/share/mygame/resourcces INSTALLS += res On 28.02.2014 01:14, Iosif Hamlatzis wrote: ok thanks and if I am not making a Qt application but just a plain c/c++ application? Is there a way to define just the root of my assets folder? Let's say my tree is:

Re: [SailfishDevel] HowTo package my resources (images/sounds/etc)

2014-02-27 Thread Marcin M.
Is there no debian/install counterpart in rpm, not to have use qmake INSTALLS? -- Marcin 2014-02-27 20:25 GMT+01:00 Andrey Kozhevnikov coderusin...@gmail.com: res.files = Home/* res.path = /usr/share/mygame/resourcces INSTALLS += res On 28.02.2014 01:14, Iosif Hamlatzis wrote: ok

Re: [SailfishDevel] HowTo package my resources (images/sounds/etc)

2014-02-27 Thread Iosif Hamlatzis
thanks a lot, it worked like a charm. ___ SailfishOS.org Devel mailing list

[SailfishDevel] Fwd: FireFloo Communicator 1.0 beta: QXMPP Encryption

2014-02-27 Thread Randolph
Hello, can someone compile it for sailfish? Regards -- Forwarded message -- From: tommuelle...@gmx.net Subject: FireFloo Communicator 1.0 beta: QXMPP Encryption To: ju...@jabber.org Hello, A new whatsapp alternative for encrypted chat based on QXMPP and encrypting protocol

[SailfishDevel] Harbour rules: request loading libraries from own folders, do not impose rules on the *source code*

2014-02-27 Thread Artem Marchenko
Hi all As you know harbour rules regarding custom libraries and QML modules require two things: 1. Load everything from your app folder 2. In your QML import stuff as import harbour.mycoolapp.desiredmodule Rule 1 makes sense for limiting dependency on the system, but rule 2.. Following it needs

[SailfishDevel] Starting point for building packages

2014-02-27 Thread Tobias Brunner
Hi, I'm new to the SailfishOS SDK. I'd like to build the ownCloud client for SailfishOS and create a RPM package for easy installation at the Jolla. The documentation on how to build the ownCloud sync client is here: http://doc.owncloud.org/desktop/1.5/building.html But now I'm looking for

Re: [SailfishDevel] Harbour rules: request loading libraries from own folders, do not impose rules on the *source code*

2014-02-27 Thread Thomas Tanghus
On Thursday 27 February 2014 22:21 Martin Kolman wrote: 27.2.2014 22:10, Artem Marchenko: - Let's not mandate the source code to use particular import form - You can still keep the warning as information for the developer and alert for the Harbour tester to check that this or that

Re: [SailfishDevel] Starting point for building packages

2014-02-27 Thread christopher . lamb
Sali Tobias The Sailfish SDK / Qt Creator does much of the hard work for you. Dependencies on other libraries are specified in the .yaml file. In the archives of this forum you will find many posts on this issue. I suggest you start with a default Sailfish project, then gradually move in

Re: [SailfishDevel] Starting point for building packages

2014-02-27 Thread Artem Marchenko
Hi Tobias Have a look at https://github.com/amarchen/helloworld-pro-sailfish started by yours truly, but has many contributions by now. Its readme contains instructions for both Qt Creator and command line build. And here you can find a bit of theory and diagrams on what's build how when making

Re: [SailfishDevel] QtContacts: phoneNumbers.length attribute gets lost when copied to ListModel

2014-02-27 Thread Matthew Vogt
Hi Chris. This sounds like a regression in the (unfinished) qtpim module of Qt 5, which reimplements the functions provided by QtContacts in QtMobility. You can report bugs against this module here: https://bugreports.qt-project.org/browse/QTBUG/component/19726 Thanks, Matt

Re: [SailfishDevel] Starting point for building packages

2014-02-27 Thread Thomas Tanghus
On Friday 28 February 2014 00:20 Artem Marchenko wrote: Also sailfish has quite strict rules on what can be used from where and what can be deployed where Jolla Harbour has very strict rules would be more correct ;) -- Med venlig hilsen / Best Regards Thomas Tanghus

Re: [SailfishDevel] QtContacts: phoneNumbers.length attribute gets lost when copied to ListModel

2014-02-27 Thread christopher . lamb
Hoi Matthew Thanks. I have now raised this bug report: https://bugreports.qt-project.org/browse/QTBUG-37139 Funnily, at least one of reasons lost in the mists of time is a previous bug report I raised at the start of the year: https://bugreports.qt-project.org/browse/QTBUG-35276 Grüsse

Re: [SailfishDevel] Starting point for building packages

2014-02-27 Thread christopher . lamb
Jolla Harbour currently has very strict rules would be even more correct ;) Zitat von Thomas Tanghus tho...@tanghus.net: On Friday 28 February 2014 00:20 Artem Marchenko wrote: Also sailfish has quite strict rules on what can be used from where and what can be deployed where Jolla Harbour