On 10 January 2014 09:36, Huo, Halton <halton....@intel.com> wrote:

> I tried the extension with following steps, it works as wish
>
> 1.       ninja -C out/Debug echo_extension
>
> 2.       ./out/Debug/xwalk
> –external-extensions-path=out/Debug/tests/extension/echo_extension
> xwalk/extension/test/data/index.html
>

Thanks for getting back to me.

I finally realised one silly mistake I'd made: I had given the extensions
file the wrong name. I called it "echo.so" when it needs to be called
"libecho.so".

Once I'd fixed this, I then realised my compile command was wrong, as I
forgot to compile for 32bit.

Once I'd done that, everything worked fine.

Thanks again for your help.
Elliot


>
> I guess it is because you url is not give a html page that access the echo
> JS api. (Xwalk extension is lazy binding). If still problem, please use
> –remote-debugging-port=9222 to check whether the js api is exposed.
>
> Thanks,
> Halton.
> From: Crosswalk-dev [mailto:
> crosswalk-dev-boun...@lists.crosswalk-project.org] On Behalf Of Smith,
> Elliot
> Sent: Friday, January 10, 2014 12:56 AM
> To: crosswalk-dev@lists.crosswalk-project.org
> Subject: [Crosswalk-dev] Crosswalk extensions on Tizen
>
> 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
>



-- 
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

Reply via email to