Hi Olivier, (should have added more pointers ealier on)
On Wed, 2014-03-19 at 17:59 +0100, Olivier Delbeke wrote: > Dear all, > > I'm trying to make a "hello world" for Tizen IVI (yes, I have high > hopes). Basically, I created a new project, I took the "dialler"'s > code as base, stripped it down to a maximum, created a CMakeList.txt, > a spec file, an xml-file, an icon, built the project with gbs and > finally installed the resulting rpm on the target. > > The problem now is to know how to run it. Executing it directly > returns "ecore_wl_init() Could not connect to Wayland display" and > "launch_app xxx.xxxx.hello" returns "... launch failed" (great!). I mentionned that you should not be root for this but there may be other things that cause this issue. I'm thinking specifically that if the SMACK label is not correct then this could be a problem. A quick test for this would be to add 'security=none' to your kernel command-line and try again. Note that you really *don't* want to keep running with security turned off and so we'd need to look at the exact problem for your app. > I assume that the right way is to use launch_app (because other > native apps seem to be launched this way), but is there any way to get > any log out of it ? We have some info about logging on Tizen IVI on this page: https://wiki.tizen.org/wiki/IVI/Enable_Logging I don't know if this will yield to any result for your app but please do let me know (specifically, I'm not familiar as to whether you'd need to do anything in your app to get additional info). > Did it fail to find my application ? (I create a .desktop file > in /usr/share/applications, but does it need anything else ?) Did my > application crash ? Did I remove too much code from the dialer and did > my application fail to register itself correctly ? ... I can't find > anything useful in /var/log, in the output of journalctl or even in > the output of strace. How can I debug this (if possible, other than > putting tons of "printf" in launch_app) ? > > More generally, is there any documentation about how to write a native > app ? About what 'launch_app' does ? About getting logs ? We have the wiki page above regarding getting logs, any suggestion for enhancing it is more than welcome. We don't have a wiki page for writing a native app and we typically point people at the 'lemolo' app as a starting point (which is exactly what you did). Another good source of information is the presentation that Dominig Ar Foll presented at FOSDEM this year entitled: 'A multi-user App Framework' (there is a link to it here: https://wiki.tizen.org/wiki/IVI#FOSDEM.2714) Cheers, Geoffroy Intel Corporation NV/SA Kings Square, Veldkant 31 2550 Kontich RPM (Bruxelles) 0415.497.718. Citibank, Brussels, account 570/1031255/09 This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies. _______________________________________________ IVI mailing list [email protected] https://lists.tizen.org/listinfo/ivi
