Re: [SailfishDevel] QCamera not found: yet again ....
Hi Mohammed A minor part of the app is indeed an emergency flashlight. It's not that important to the app, it was just the first error thrown on porting to Qt5 / Sailfish. Once I get the app compiled and running on a real device then will come the fun / pain of finding out what works / doesn't work (yet) / needs a different approach. I am using GPS, Compass, Flash, SMS, Haptics so I would be surprised if it all worked first time ... Chris Zitat von "Mohammed Hassan" : On Sun, Dec 08, 2013 at 11:43:21PM +0100, christopher.l...@thurweb.ch wrote: Hoi Sven That is a valuable tip, one that is easy to miss. The "#include " version is also more explicit, and had the advantage that if I copy the C++ file using this into another project, I don't need to remember to also modify the .pro file of the new project. In fact all what I want is even less than the camera, just the led flash, and I seem to remember that Qt5 offers direct access to this, so maybe I can further simplify things here, but for the moment I just want to get the app up and running. If you are working on a flash light application or trying to light up the LED to act as a torch then save your efforts. It does not work Support for torch light will come in a future update. Cheers, ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] QCamera not found: yet again ....
On Sun, Dec 08, 2013 at 11:43:21PM +0100, christopher.l...@thurweb.ch wrote: > Hoi Sven > > That is a valuable tip, one that is easy to miss. > > The "#include " version is also more explicit, > and had the advantage that if I copy the C++ file using this into > another project, I don't need to remember to also modify the .pro > file of the new project. > > In fact all what I want is even less than the camera, just the led > flash, and I seem to remember that Qt5 offers direct access to this, > so maybe I can further simplify things here, but for the moment I > just want to get the app up and running. If you are working on a flash light application or trying to light up the LED to act as a torch then save your efforts. It does not work Support for torch light will come in a future update. Cheers, ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] QCamera not found: yet again ....
Hoi Sven That is a valuable tip, one that is easy to miss. The "#include " version is also more explicit, and had the advantage that if I copy the C++ file using this into another project, I don't need to remember to also modify the .pro file of the new project. In fact all what I want is even less than the camera, just the led flash, and I seem to remember that Qt5 offers direct access to this, so maybe I can further simplify things here, but for the moment I just want to get the app up and running. Grüsse Chris Zitat von "Sven Putze" : c) .h file #include Hi, if you just need the camera, you should prefer this version, I quote from http://qt-project.org/doc/qt-5.0/qtmultimedia/qtmultimedia-index.html: "[...]Note: If you are using a few classes from this module, we recommend including those specific classes only instead of the module.[...]" BR. Sven ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Emulator: Mouse pointer not visible
I have also seen this issue randomly on my kubuntu box. The solution for me is to restart sailfish emulator when it happens. I got the feeling that it has to do with how Vbox mouse has focus inside VM when booting the sailfishos? I noticed that if you accidently click inside the emulator when sf is booting the mousepointer will not appear when UI has started. I have tested this now 10 times or so if the mouse pointer is not inside when boot it always success. But if mouse pointer inside area and click when kernel has started print it messages, it often fails. Seems like kernel gets that event and hijack the sailfish mousehandling or something? Regards Mikael On Sunday 08 December 2013 19.29.13 Jarko Vihriala wrote: > Well we have seen on-site one setup like this where user had manually > modified VBox settings and thus causing mouse to non-work. > > However, let's try to solve this first of all > a)what it the distro ? > b)do you have started the VBox kernel drivers on host? > c)have you tested other VBox machines > d)does dmesg / syslog / journalcrtl reveal any errors? > > thanks, Jarko > > From: devel-boun...@lists.sailfishos.org > [devel-boun...@lists.sailfishos.org] on behalf of Uwe Koch > [as...@yahoo.com] Sent: Sunday, December 08, 2013 10:38 AM > To: devel@lists.sailfishos.org > Subject: [SailfishDevel] Emulator: Mouse pointer not visible > > Hi, > > quite disappointing for me - can't catch the mouse inside the Sailfish SDK > emulator. Nothing to see - so no clicking and dragging ;-( > > Installed latest Virtualbox environment - both in KDE and Linux Mint. > Any help how to see where the problem is? > > Can't find anything in virtualbox forums - so ask here if anyone has same > problem! > > Best regards, > Uwe > > __ _-_ > \|).---'---`---. > > ||\._./ > || > || / ,' `---' > > ___||_,--' -._ > /___ ||(- > `---._-' > ___ > SailfishOS.org Devel mailing list > ___ > SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Emulator: Mouse pointer not visible
Well we have seen on-site one setup like this where user had manually modified VBox settings and thus causing mouse to non-work. However, let's try to solve this first of all a)what it the distro ? b)do you have started the VBox kernel drivers on host? c)have you tested other VBox machines d)does dmesg / syslog / journalcrtl reveal any errors? thanks, Jarko From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] on behalf of Uwe Koch [as...@yahoo.com] Sent: Sunday, December 08, 2013 10:38 AM To: devel@lists.sailfishos.org Subject: [SailfishDevel] Emulator: Mouse pointer not visible Hi, quite disappointing for me - can't catch the mouse inside the Sailfish SDK emulator. Nothing to see - so no clicking and dragging ;-( Installed latest Virtualbox environment - both in KDE and Linux Mint. Any help how to see where the problem is? Can't find anything in virtualbox forums - so ask here if anyone has same problem! Best regards, Uwe __ _-_ \|).---'---`---. ||\._./ || / ,' `---' ___||_,--' -._ /___ ||(- `---._-' ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] QCamera not found: yet again ....
> > > c) .h file #include > Hi, if you just need the camera, you should prefer this version, I quote from http://qt-project.org/doc/qt-5.0/qtmultimedia/qtmultimedia-index.html: "[...]Note: If you are using a few classes from this module, we recommend including those specific classes only instead of the module.[...]" BR. Sven ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] QCamera not found: yet again ....
Hi Filip Both options you suggest work! magic! i.e. either a) pro file QT += multimedia and b) .h file #include OR c) .h file #include It would seem that the "old* CONFIG += multimedia no longer works with the latest templates. Thanks Chris Zitat von "Filip K??bczyk" : W dniu 08.12.2013 14:48, christopher.l...@thurweb.ch pisze: In landedtorch.h I have #include #include In the .pro file I have: CONFIG += multimedia" Any ideas? I am sure it something simple that I have missed ... also QT += multimedia Did it help? Regards, Filip ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] QCamera not found: yet again ....
Hi Filip Thanks for your rapid answers! Am on the train, and have just discovered myself the #include which you suggested in your first mail. This works. Next I will try the QT += multimedia Zitat von "Filip K??bczyk" : W dniu 08.12.2013 14:48, christopher.l...@thurweb.ch pisze: In landedtorch.h I have #include #include In the .pro file I have: CONFIG += multimedia" Any ideas? I am sure it something simple that I have missed ... also QT += multimedia Did it help? Regards, Filip ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] QCamera not found: yet again ....
W dniu 08.12.2013 14:48, christopher.l...@thurweb.ch pisze: In landedtorch.h I have #include #include In the .pro file I have: CONFIG += multimedia" Any ideas? I am sure it something simple that I have missed ... also QT += multimedia Did it help? Regards, Filip ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] QCamera not found: yet again ....
W dniu 08.12.2013 14:48, christopher.l...@thurweb.ch pisze: In landedtorch.h I have #include #include In the .pro file I have: CONFIG += multimedia" Any ideas? I am sure it something simple that I have missed ... #include in landedtorch.h also and it should work. Regards, Filip ___ SailfishOS.org Devel mailing list
[SailfishDevel] QCamera not found: yet again ....
Hi Now that my main app on harmattan is finished, and that Jolla Sailfish devices should be in our hands in the next few days, I am having another stab at porting my app from Harmattan to Sailfish. I have started with a brand-new default app, based on the latest SDK template, and am gradually adding functionality. And once again, I fail at the first step. During build I get the error: "QCamera: No such file or directory". The weird thing is, I have an older partially migrated version of the app created when Sailfish first moved to QT5. This older version also uses QCamera, and seems to find it quite happily. QtCreator also seems to know where QCamera is, as it shows me the path via tooltip. In my pro file I have the setting "CONFIG += multimedia" (in the older migration attempt, removing this entry also produces the "QCamera: No such file or directory" error. My guess is that the main difference between the old partially migrated app, and my new version are the new templates, and that due to these QCamera cannot be resolved, or I have to do something different for it to be found. In the landed25_QT5.cpp (previously known as main.cpp) I have #include "landedtorch.h" In landedtorch.h I have #include #include In the .pro file I have: CONFIG += multimedia" Any ideas? I am sure it something simple that I have missed ... Chris ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Harbour should allow libcrypt/openssl
It would be nice to know how stable the openssl api actually is. Apple has deprecated it on Mac OS X due to its unstable api between versions: "OpenSSL does not provide a stable API from version to version." "If your app depends on OpenSSL, you should compile OpenSSL yourself and statically link a known version of OpenSSL into your app." https://developer.apple.com/library/mac/documentation/security/Conceptual/cryptoservices/GeneralPurposeCrypto/GeneralPurposeCrypto.html This was a concern in openssl 0.9.x versions. I don't know if the api has become more stable after openssl version 1.0. Anyway, statically linking works always. Cheers, Kari 2013/12/7 Gianguido Sorà > That's a good point, just today I was wondering if it's possible for apps > to use this library. > Il 07/dic/2013 20:38 "Mikael Hermansson" ha scritto: > >> I think harbour store should allow libcrypt/openssl because AFAIK that >> API will not change very often and is probadly already used in sailfishos? >> >> >> >> I guess there is some apps that want to use AES/MD5/SHA256 and so on. >> Passwordwallet apps and similar >> >> >> >> Regards >> >> >> >> Mikael >> >> >> >> >> >> >> >> ___ >> SailfishOS.org Devel mailing list >> > > ___ > SailfishOS.org Devel mailing list > ___ SailfishOS.org Devel mailing list
[SailfishDevel] Emulator: Mouse pointer not visible
Hi, quite disappointing for me - can't catch the mouse inside the Sailfish SDK emulator. Nothing to see - so no clicking and dragging ;-( Installed latest Virtualbox environment - both in KDE and Linux Mint. Any help how to see where the problem is? Can't find anything in virtualbox forums - so ask here if anyone has same problem! Best regards, Uwe __ _-_ \|).---'---`---. ||\._./ || / ,' `---' ___||_,--' -._ /___ ||(- `---._-' ___ SailfishOS.org Devel mailing list