<div dir="ltr"><div><div>Hi,<br><br></div>try to look at weston/tests/weston-test-client-helpers.c on the function client_create(). That could be the piece of code your'e looking for.<br><br></div>Regards,<br>Marek<br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On 28 May 2014 17:24, Philip Rushik <span dir="ltr"><<a href="mailto:prushik@gmail.com" target="_blank">prushik@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div><div><div><div><div><div><div><div>Hi Everybody,<br><br></div>I am trying to build a simple Wayland client, just sort of a "hello world" type deal right now. I want to avoid any OpenGL or external dependencies other than libwayland-client itself.<br>


</div>All I want to do is be able to tell wayland to create a window, get myself a framebuffer which I can write to, and have wayland display it.<br></div>So I think what I want is to use wayland with shm. I realize there is an example of this in the weston source code, and I have been studying it quite a lot as it seems to be the only example of a client using shm available. However, I have a few issues with the example, it seems to use functions that are not included in libwayland-client but instead part of the weston source tree. Due to this, I have not even been able to compile it successfully without compiling all of weston.<br>


</div>I tried writing my own program, and after a night of not sleeping and wishing I could but debugging code the whole time, I got myself a program that doesn't crash, but also doesn't display anything at all. I used the example code in the weston source for reference, but I replaced or ignored the parts which seemed to be using non-libwayland-client function. I used shm_open instead of os_create_anonymous_file.<br>


<br></div>If somebody would be willing to lend a hand that would be great. My code is about 150 SLOC at the moment, but I don't know if you would be happy with me posting it all to the mailing list.<br></div>Also, if you know of any other examples of using wayland and shm that you could point me to, that would be great.<br>


<br></div>Thanks<span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888">--Philip<br></font></span></div>
<br>_______________________________________________<br>
wayland-devel mailing list<br>
<a href="mailto:wayland-devel@lists.freedesktop.org">wayland-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/wayland-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/wayland-devel</a><br>
<br></blockquote></div><br></div>