How can I compile this code under mersdk [answered]
How can I compile this code under mersdk http://cgit.freedesktop.org/wayland/weston/tree/clients/simple-egl.c This is a 3D graphics code under wayland
/tmp/ccpGKCTg.o: In function handle_configure':
simple-egl.c:(.text+0xcca): undefined reference to
wl_egl_window_resize'
/tmp/ccpGKCTg.o: In function create_surface':
simple-egl.c:(.text+0xe60): undefined reference to
wl_egl_window_create'
/tmp/ccpGKCTg.o: In function destroy_surface':
simple-egl.c:(.text+0xf9a): undefined reference to
wl_egl_window_destroy'
After compiling error who can help me ! thanks very much
This is not the channel for this kind of thing. There is a developers mailing list and more at http://www.sailfish.org that are more appropriate for this.
Moreover you are missing crucial information in your question to enable other people to give you a good answer. Full error etc would help. I can only guess that most likely you do not have correct linker flags or are missing libraries. I recommend you to dig into some stuff about programming basics and you might find the answer yourself. As this is a general programming/compiling issue that has nothing to do with the mer sdk you might easily find the answer on the net or some dedicated programming forum.
Philippe De Swert ( 2014-03-27 17:03:22 +0200 )editI lost the parameters '-lwayland-EGL" passed to the compiler ,Thanks for your suggestion
baiduno1 ( 2014-03-28 07:03:31 +0200 )edit