We have moved to a new Sailfish OS Forum. Please start new discussions there.

Revision history [back]

click to hide/show revision 1
initial version

posted 2014-03-27 15:47:03 +0200

How can I compile this code under mersdk

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
gcc -o simple3D simple-egl.c -I /srv/mer/targets/SailfishOS-i486-x86/usr/include/cairo -I /srv/mer/targets/SailfishOS-i486-x86/usr/include -L /srv/mer/targets/SailfishOS-i486-x86/usr/lib -lm -lGLESv2 -lEGL -lwayland-client -lcairo -lwayland-cursor /tmp/ccpGKCTg.o: In function handle_configure': simple-egl.c:(.text+0xcca): undefined reference towl_egl_window_resize' /tmp/ccpGKCTg.o: In function create_surface': simple-egl.c:(.text+0xe60): undefined reference towl_egl_window_create' /tmp/ccpGKCTg.o: In function destroy_surface': simple-egl.c:(.text+0xf9a): undefined reference towl_egl_window_destroy'

After compiling error who can help me ! thanks very much

How can I compile this code under mersdk

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

gcc -o simple3D simple-egl.c -I /srv/mer/targets/SailfishOS-i486-x86/usr/include/cairo -I /srv/mer/targets/SailfishOS-i486-x86/usr/include -L /srv/mer/targets/SailfishOS-i486-x86/usr/lib -lm -lGLESv2 -lEGL -lwayland-client -lcairo -lwayland-cursor

/tmp/ccpGKCTg.o: In function handle_configure': simple-egl.c:(.text+0xcca): undefined reference towl_egl_window_resize' /tmp/ccpGKCTg.o: In function create_surface': simple-egl.c:(.text+0xe60): undefined reference towl_egl_window_create' /tmp/ccpGKCTg.o: In function destroy_surface': simple-egl.c:(.text+0xf9a): undefined reference towl_egl_window_destroy'

After compiling error who can help me ! thanks very much