I don't know that much about the extensions inner workings but I
believe extensions are loaded ondemand (might not be default) and you
need to define which entry points will make it loaded.

Why do you run it as root? su - app :-) then export HOME=/home/app

Info on how to do debugging can be found here:
https://github.com/crosswalk-project/crosswalk-website/wiki/Development-on-Tizen

Kenneth

On Thu, Jan 9, 2014 at 5:55 PM, Smith, Elliot <elliot.sm...@intel.com> wrote:
> I'm attempting to write a Crosswalk extension in C to run on Tizen 2.1.1 on
> x86. I'm compiling my extension against Crosswalk master and using the
> latest Crosswalk rpm for Tizen x86 (crosswalk-4.32.67.0-0.i586.rpm).
>
> I've put my efforts so far in this repo:
> https://github.com/townxelliot/xwalk-extension-example
>
> There are some instructions in the repo describing the steps I've tried.
>
> However, I'm unable to get the extension to load correctly.
>
> When I run the application with this command (as root):
>
> xwalk --external-extensions-path=/home/developer/extensions-demo/lib/ \
>   /home/developer/extensions-demo/
>
> (my .so file is in /home/developer/extensions-demo/lib/)
>
> I get this output:
>
> [0101/022401:INFO:gpu_info_collector_x11.cc(80)] NVCtrl extension does not
> exist.
> [0101/022401:ERROR:appcore_context.cc(105)] Failed to get the package:
> [0101/022401:ERROR:device_capabilities_storage_tizen.cc(78)] Failed to read
> SD card status
> [0101/022401:WARNING:proxy_service.cc(890)] PAC support disabled because
> there is no system implementation
> [0101/022401:ERROR:unix_domain_socket_util.cc(132)] connect
> /root/.ecore/elm_indicator_portrait/0: No such file or directory
> [0101/022401:ERROR:desktop_root_window_host_x11.cc(597)] Not implemented
> reached in virtual void
> views::DesktopRootWindowHostX11::SetWindowIcons(const gfx::ImageSkia&, const
> gfx::ImageSkia&)
> [0101/022402:INFO:CONSOLE(17)] "Uncaught ReferenceError: echo is not
> defined", source: app://fmokkgglgnehmmopkkplpimkdmmanchj/index.html (17)
>
> The last line suggests the extension hasn't loaded. The application itself
> does load, and I can see the HTML page.
>
> Is there anything obvious I'm missing?
>
> Thanks.
> Elliot
> --
> Elliot Smith
> Senior Software Engineer
> Intel Open Source Technology Centre
>
> _______________________________________________
> Crosswalk-dev mailing list
> Crosswalk-dev@lists.crosswalk-project.org
> https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-dev
>



-- 
Kenneth Rohde Christiansen
Web Platform Architect, Intel Corporation.
Phone  +45 4294 9458 ﹆﹆﹆
_______________________________________________
Crosswalk-dev mailing list
Crosswalk-dev@lists.crosswalk-project.org
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-dev

Reply via email to