[SailfishDevel] Porting gphoto2 to Sailfish
Hello Sailfish developers, I am newbie at developing but I would really like to contribute to this project. I have started to port gphoto2 to sailfish/jolla and would hope to get some comments on how compiling and installing dependencies is normally done. I have the feeling I did it quite straight-forward, without really knowing if this will work out or not. Especially having to use devel-su scares me because I don't want to corrupt my system. See here: https://together.jolla.com/question/86155/wiki-use-your-digital-camera-with-jolla-porting-gphoto2/ As next step I would try to install libltdl which is needed for gphoto. What are your thoughts? Cheers ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Porting gphoto2 to Sailfish
Before you mess up your system, why not install the sdk and get things done safely on the emulator first? 2015-03-10 21:44 GMT+01:00 mikael.erkki...@web.de: Hello Sailfish developers, I am newbie at developing but I would really like to contribute to this project. I have started to port gphoto2 to sailfish/jolla and would hope to get some comments on how compiling and installing dependencies is normally done. I have the feeling I did it quite straight-forward, without really knowing if this will work out or not. Especially having to use devel-su scares me because I don't want to corrupt my system. See here: https://together.jolla.com/question/86155/wiki-use-your-digital-camera-with-jolla-porting-gphoto2/ As next step I would try to install libltdl which is needed for gphoto. What are your thoughts? Cheers ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org -- michele tameni ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
[SailfishDevel] QtDay 2015 in Florence on March 13-14
Hi all, Jolla will be a media partner at this conference: http://www.qtday.it/ If you happen to be in/near Florence, join the event and you might have a chance to win some Jolla devices :) There's a talk on Sailfish OS: http://www.qtday.it/events/jolla-e-sailfishos-qt-sulle-piattaforme-mobile-emergenti-riccardo-ferrazzo/ Apologies for the late news, MWC happened. Anyway hope some of you are already planning to go. Enjoy! Ciao, Carol. -- Carol cybette Chen Community Chief @ Jolla http://jolla.com +358403502527 @ SMS,PSTN,WeChat cybette @ FreenodeIRC,Twitter,Weibo,LinkedIn,Skype ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Porting gphoto2 to Sailfish
Hello! SailfishOS using RPM, so this article fully apply: http://rpm5.org/docs/api/dependencies.html 11.03.2015 01:44, mikael.erkki...@web.de пишет: Hello Sailfish developers, I am newbie at developing but I would really like to contribute to this project. I have started to port gphoto2 to sailfish/jolla and would hope to get some comments on how compiling and installing dependencies is normally done. I have the feeling I did it quite straight-forward, without really knowing if this will work out or not. Especially having to use devel-su scares me because I don't want to corrupt my system. See here: https://together.jolla.com/question/86155/wiki-use-your-digital-camera-with-jolla-porting-gphoto2/ As next step I would try to install libltdl which is needed for gphoto. What are your thoughts? Cheers ___ 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] Main qml file not found when Deploying
I created a new project and all the files, and i got it working, thanks for the help :) Il mer mar 11 07:13:59 2015 GMT+0100, Andrey Kozhevnikov scrive: sorry, but i still can compile, deploy and run it without any modifications in your code. Maybe you have no space left on device? 10.03.2015 16:25, Antonio Mancini пишет: I managed to resolve the main qml issue, i moved everything to another directory and changed names to follow harbour standards but now it can't find other qml files, i tried Chris's solution but it won't help I updated the source code on github: https://github.com/BillyHalley/SailTris I still can Deploy by Copying Binaries But when i do Deploy as RPM Package I have this error: [D] QWaylandEglClientBufferIntegration::QWaylandEglClientBufferIntegration:62 - Using Wayland-EGL [W] QQmlImportDatabase::registerPluginTypes:1875 - Module 'Sailfish.Silica' does not contain a module identifier directive - it cannot be protected from external registrations. [W] unknown:7 - file:///usr/share/harbour-sailtris/qml/harbour-sailtris.qml:7:30: Type FirstPage unavailable initialPage: Component { FirstPage { } } ^ [W] unknown:21 - file:///usr/share/harbour-sailtris/qml/pages/FirstPage.qml:21:5: Type Functions unavailable Functions { ^ [W] unknown:-1 - file:///usr/share/harbour-sailtris/qml/elements/Functions.qml: File not found [W] QSGThreadedRenderLoop::handleExposure:882 - QSGThreadedRenderLoop: expose event received for window with invalid geometry. Sometimes instead of Functions.qml it can't find Dot.qml.. Il lun mar 9 08:23:12 2015 GMT+0100, Chris Adams scrive: Hi Antonio, The files which are installed by an rpm package are listed in the %files directive of the .spec file. So, merely adding files to the .pro (eg in OTHER_FILES) variables of the qmake project, and installing via INSTALLS, is not enough. You also need to ensure that your .spec (or, if you generate your .spec from a .yaml, then the .yaml) file has the files listed appropriately. eg: example.pro http://example.pro contains: // lines up here with target (lib or exe) information, build switches, etc OTHER_FILES += MyQmlType.qml import.files += MyQmlType.qml import.path = /path/to/import/dir INSTALLS += import %files /path/to/import/dir/MyQmlType.qml Note that harbour rules no doubt require some specific application-specific import directory to be defined and used by your app. Kind regards, Chris. From: devel-boun...@lists.sailfishos.org mailto:devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org mailto:devel-boun...@lists.sailfishos.org] on behalf of Antonio Mancini [ziobill...@gmail.com mailto:ziobill...@gmail.com] Sent: Saturday, March 07, 2015 2:26 AM To: Sailfish OS Developers Subject: Re: [SailfishDevel] Main qml file not found when Deploying I tried but i still can't build, i can create an rpm but it seems that the rpm doesn't copy the files on the device while installing. I also tried installing previous version of SDK but it didn't work. 2015-03-06 15:47 GMT+01:00 Andrey Kozhevnikov coderusin...@gmail.com mailto:coderusin...@gmail.commailto:coderusin...@gmail.com mailto:coderusin...@gmail.com: Compiled and build project to rpm with no problems . Clean your build folder and do a fresh build. 06.03.2015 01:03, Antonio Mancini пишет: This is the link to the .pro file on github https://github.com/BillyHalley/SailTris/blob/master/SailTris.pro Il gio mar 5 06:50:04 2015 GMT+0100, Andrey Kozhevnikov scrive: show your pro file/link to github project. 05.03.2015 00:15, Antonio Mancini пишет: When deploying my application as an RPM package i have this error: [W] contextFactory:108 - Could not create scene graph context for device 'customcontext' - check that plugins are installed correctly in /usr/lib/qt5/plugins [D] QWaylandEglClientBufferIntegration::QWaylandEglClientBufferIntegration:62 - Using Wayland-EGL [W] unknown:-1 - file:///usr/share/SailTris/qml/SailTris.qml: File not found The path is correct If i deploy copying binaries it works. I have this in the cpp file, and i think is here that is called that qml file: QScopedPointerQGuiApplication app(SailfishApp::application(argc, argv)); QTranslator translator; translator.load(translation_ + QLocale::system().name(), /usr/share/SailTris/i18n); app-installTranslator(translator); QScopedPointerQQuickView view(SailfishApp::createView()); view-setSource(SailfishApp::pathTo(qml/SailTris.qml)); view-show(); return app-exec(); I have this
Re: [SailfishDevel] Porting gphoto2 to Sailfish
I tried with the sdk/emulator first via ssh on localhost. But somehow when I tried to copy the sources to the emulator via scp, something always went wrong. I tried via a shared folder in virtualbox but that somehow didn't work out either. On the Jolla scp worked immediately, so I continued with that approach. I'll have a look again on the emulator soon. I will inform you on the outcome. Am Do. Mär. 12 09:11:37 2015 GMT+0100 schrieb Michele Tameni: Before you mess up your system, why not install the sdk and get things done safely on the emulator first? 2015-03-10 21:44 GMT+01:00 mikael.erkki...@web.de: Hello Sailfish developers, I am newbie at developing but I would really like to contribute to this project. I have started to port gphoto2 to sailfish/jolla and would hope to get some comments on how compiling and installing dependencies is normally done. I have the feeling I did it quite straight-forward, without really knowing if this will work out or not. Especially having to use devel-su scares me because I don't want to corrupt my system. See here: https://together.jolla.com/question/86155/wiki-use-your-digital-camera-with-jolla-porting-gphoto2/ As next step I would try to install libltdl which is needed for gphoto. What are your thoughts? Cheers ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org -- michele tameni ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Porting gphoto2 to Sailfish
inside sdk your host home folder is mounted to /home/mersdk/shared. you don't need to copy anything. 12.03.2015 13:25, mikael.erkki...@web.de пишет: I tried with the sdk/emulator first via ssh on localhost. But somehow when I tried to copy the sources to the emulator via scp, something always went wrong. I tried via a shared folder in virtualbox but that somehow didn't work out either. On the Jolla scp worked immediately, so I continued with that approach. I'll have a look again on the emulator soon. I will inform you on the outcome. Am Do. Mär. 12 09:11:37 2015 GMT+0100 schrieb Michele Tameni: Before you mess up your system, why not install the sdk and get things done safely on the emulator first? 2015-03-10 21:44 GMT+01:00 mikael.erkki...@web.de: Hello Sailfish developers, I am newbie at developing but I would really like to contribute to this project. I have started to port gphoto2 to sailfish/jolla and would hope to get some comments on how compiling and installing dependencies is normally done. I have the feeling I did it quite straight-forward, without really knowing if this will work out or not. Especially having to use devel-su scares me because I don't want to corrupt my system. See here: https://together.jolla.com/question/86155/wiki-use-your-digital-camera-with-jolla-porting-gphoto2/ As next step I would try to install libltdl which is needed for gphoto. What are your thoughts? Cheers ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org -- michele tameni ___ 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] QtDay 2015 in Florence on March 13-14
Darn, it wish I were able to get there... I have been at the Qt day a couple of years ago, and it was very interesting. I hope you will enjoy it, and share the impression with us! Luciano On Wed, Mar 11, 2015 at 5:53 PM, Carol Chen carol.c...@jolla.com wrote: Hi again, Here's a code for 30% off on desk tickets if you missed the earlier registrations: https://ti.to/develer/qtday2015?discount_code=GNR30 To have a chance to win prizes, remember to sign up for the “Qt Quiz Dinner” http://www.qtday.it/qt-quiz-dinner/ Cheers, Carol. On 03/11/2015 06:19 PM, Carol Chen wrote: Hi all, Jolla will be a media partner at this conference: http://www.qtday.it/ If you happen to be in/near Florence, join the event and you might have a chance to win some Jolla devices :) There's a talk on Sailfish OS: http://www.qtday.it/events/jolla-e-sailfishos-qt-sulle-piattaforme-mobile-emergenti-riccardo-ferrazzo/ Apologies for the late news, MWC happened. Anyway hope some of you are already planning to go. Enjoy! Ciao, Carol. -- Carol cybette Chen Community Chief @ Jolla http://jolla.com +358403502527 @ SMS,PSTN,WeChat cybette @ FreenodeIRC,Twitter,Weibo,LinkedIn,Skype ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org -- Luciano Montanaro Anyone who is capable of getting themselves made President should on no account be allowed to do the job. -- Douglas Adams ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
[SailfishDevel] Hardcoded Path
Hi all, I have some functions for writing/reading files written in c++ I want to use the XDG Base Directory Specification but i don't know how to use it. For example at the moment i have the directory set like this: QDir dir(/home/nemo/.local/share/harbour-sailtris); if (!dir.exists()) dir.mkpath(.); QDir::setCurrent(/home/nemo/.local/share/harbour-sailtris); if i use *$XDG_DATA_HOME *instead of /home/nemo/.local/share/ it creates a directory *$XDG_DATA_HOME *in /home/nemo/ and the path is not absolute, so each time the function is called it enters the previous directory Someone can explain to me how this works? :) ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Hardcoded Path
On to, 2015-03-12 at 14:33 +0100, Antonio Mancini wrote: I want to use the XDG Base Directory Specification but i don't know how to use it. Use should use Qts QStandardPaths to get various locations that you can use for your files. See http://doc.qt.digia.com/qt-5.2/qstandardpaths.html for details $XDG_DATA_HOME refers to an environment variable, you use getenv() to get the contents of that. -- Kaj-Michael Lang mil...@tal.org ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org