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-30 11:59:15 +0200

I'm getting the following errors when I try to compile this code

This is a simple program demonstrating how to use OpenGL ES 2.0 .the code by wayland official It will output two gears, which can be moved around on the screen I'm getting the following errors when I try to compile this code here code http://cgit.freedesktop.org/wayland/weston/tree/clients/gears.c Source packages http://cgit.freedesktop.org/wayland/weston/snapshot/weston-1.1.0.zip The following is a compilation process [SB2 sdk-build SailfishOS-i486-x86] I have no name!@SailfishSDK clients $ gcc -o gerac gears.c -I /srv/mer/targets/SailfishOS-i486-x86/usr/include/ -I /srv/mer/targets/SailfishOS-i486-x86/usr/include/cairo -L /srv/mer/targets/SailfishOS-i486-x86/usr/lib -lm -lwayland-client -lEGL -lGL -lcairo /tmp/ccyuHaj3.o: In function frame_callback': gears.c:(.text+0x1371): undefined reference towindow_schedule_redraw' /tmp/ccyuHaj3.o: In function button_handler': gears.c:(.text+0x1538): undefined reference toinput_get_position' /tmp/ccyuHaj3.o: In function redraw_handler': gears.c:(.text+0x1568): undefined reference towidget_get_allocation' gears.c:(.text+0x157c): undefined reference to window_get_allocation' gears.c:(.text+0x159d): undefined reference todisplay_acquire_window_surface' gears.c:(.text+0x17fc): undefined reference to display_release_window_surface' gears.c:(.text+0x1809): undefined reference towindow_get_wl_surface' /tmp/ccyuHaj3.o: In function resize_handler': gears.c:(.text+0x1896): undefined reference towidget_set_size' /tmp/ccyuHaj3.o: In function keyboard_focus_handler': gears.c:(.text+0x18a9): undefined reference towindow_schedule_redraw' /tmp/ccyuHaj3.o: In function fullscreen_handler': gears.c:(.text+0x18dd): undefined reference towindow_set_fullscreen' /tmp/ccyuHaj3.o: In function gears_create': gears.c:(.text+0x1917): undefined reference towindow_create' gears.c:(.text+0x1930): undefined reference to window_frame_create' gears.c:(.text+0x194b): undefined reference towindow_set_title' gears.c:(.text+0x1959): undefined reference to display_get_egl_display' gears.c:(.text+0x198f): undefined reference todisplay_get_argb_egl_config' gears.c:(.text+0x1c31): undefined reference to window_set_user_data' gears.c:(.text+0x1c47): undefined reference towidget_set_resize_handler' gears.c:(.text+0x1c5d): undefined reference to widget_set_redraw_handler' gears.c:(.text+0x1c73): undefined reference towidget_set_button_handler' gears.c:(.text+0x1c89): undefined reference to widget_set_motion_handler' gears.c:(.text+0x1c9e): undefined reference towindow_set_keyboard_focus_handler' gears.c:(.text+0x1cb3): undefined reference to window_set_fullscreen_handler' gears.c:(.text+0x1cce): undefined reference towindow_schedule_resize' /tmp/ccyuHaj3.o: In function main': gears.c:(.text+0x1cf2): undefined reference todisplay_create' gears.c:(.text+0x1d32): undefined reference to `display_run' collect2: ld returned 1 exit status [SB2 sdk-build SailfishOS-i486-x86] I have no name!@SailfishSDK clients $

I'm getting the following errors when I try to compile this code

This is a simple program demonstrating how to use OpenGL ES 2.0 .the code by wayland official It will output two gears, which can be moved around on the screen I'm getting the following errors when I try to compile this code here code http://cgit.freedesktop.org/wayland/weston/tree/clients/gears.c Source packages http://cgit.freedesktop.org/wayland/weston/snapshot/weston-1.1.0.zip The following is a compilation process error Picture ---http://xiangce.baidu.com/picture/detail/f169b84d30294a860509f5ec71137ff9bb631b3e [SB2 sdk-build SailfishOS-i486-x86] I have no name!@SailfishSDK clients $ gcc -o gerac gears.c -I /srv/mer/targets/SailfishOS-i486-x86/usr/include/ -I /srv/mer/targets/SailfishOS-i486-x86/usr/include/cairo -L /srv/mer/targets/SailfishOS-i486-x86/usr/lib -lm -lwayland-client -lEGL -lGL -lcairo /tmp/ccyuHaj3.o: In function frame_callback': gears.c:(.text+0x1371): undefined reference towindow_schedule_redraw' /tmp/ccyuHaj3.o: In function button_handler': gears.c:(.text+0x1538): undefined reference toinput_get_position' /tmp/ccyuHaj3.o: In function redraw_handler': gears.c:(.text+0x1568): undefined reference towidget_get_allocation' gears.c:(.text+0x157c): undefined reference to window_get_allocation' gears.c:(.text+0x159d): undefined reference todisplay_acquire_window_surface' gears.c:(.text+0x17fc): undefined reference to display_release_window_surface' gears.c:(.text+0x1809): undefined reference towindow_get_wl_surface' /tmp/ccyuHaj3.o: In function resize_handler': gears.c:(.text+0x1896): undefined reference towidget_set_size' /tmp/ccyuHaj3.o: In function keyboard_focus_handler': gears.c:(.text+0x18a9): undefined reference towindow_schedule_redraw' /tmp/ccyuHaj3.o: In function fullscreen_handler': gears.c:(.text+0x18dd): undefined reference towindow_set_fullscreen' /tmp/ccyuHaj3.o: In function gears_create': gears.c:(.text+0x1917): undefined reference towindow_create' gears.c:(.text+0x1930): undefined reference to window_frame_create' gears.c:(.text+0x194b): undefined reference towindow_set_title' gears.c:(.text+0x1959): undefined reference to display_get_egl_display' gears.c:(.text+0x198f): undefined reference todisplay_get_argb_egl_config' gears.c:(.text+0x1c31): undefined reference to window_set_user_data' gears.c:(.text+0x1c47): undefined reference towidget_set_resize_handler' gears.c:(.text+0x1c5d): undefined reference to widget_set_redraw_handler' gears.c:(.text+0x1c73): undefined reference towidget_set_button_handler' gears.c:(.text+0x1c89): undefined reference to widget_set_motion_handler' gears.c:(.text+0x1c9e): undefined reference towindow_set_keyboard_focus_handler' gears.c:(.text+0x1cb3): undefined reference to window_set_fullscreen_handler' gears.c:(.text+0x1cce): undefined reference towindow_schedule_resize' /tmp/ccyuHaj3.o: In function main': gears.c:(.text+0x1cf2): undefined reference todisplay_create' gears.c:(.text+0x1d32): undefined reference to `display_run' collect2: ld returned 1 exit status [SB2 sdk-build SailfishOS-i486-x86] I have no name!@SailfishSDK clients $

I'm getting the following errors when I try to compile this code

This is a simple program demonstrating how to use OpenGL ES 2.0 .the code by wayland official It will output two gears, which can be moved around on the screen I'm getting the following errors when I try to compile this code here code http://cgit.freedesktop.org/wayland/weston/tree/clients/gears.c Source packages http://cgit.freedesktop.org/wayland/weston/snapshot/weston-1.1.0.zip The following is a compilation process error Picture ---http://xiangce.baidu.com/picture/detail/f169b84d30294a860509f5ec71137ff9bb631b3e ---http://xiangce.baidu.com/picture/detail/f169b84d30294a860509f5ec71137ff9bb631b3e

free encyclopedia http://pastebin.com/57kbDZs6

[SB2 sdk-build SailfishOS-i486-x86] I have no name!@SailfishSDK clients $ gcc -o gerac gears.c -I /srv/mer/targets/SailfishOS-i486-x86/usr/include/ -I /srv/mer/targets/SailfishOS-i486-x86/usr/include/cairo -L /srv/mer/targets/SailfishOS-i486-x86/usr/lib -lm -lwayland-client -lEGL -lGL -lcairo /tmp/ccyuHaj3.o: In function frame_callback': gears.c:(.text+0x1371): undefined reference towindow_schedule_redraw' /tmp/ccyuHaj3.o: In function button_handler': gears.c:(.text+0x1538): undefined reference toinput_get_position' /tmp/ccyuHaj3.o: In function redraw_handler': gears.c:(.text+0x1568): undefined reference towidget_get_allocation' gears.c:(.text+0x157c): undefined reference to window_get_allocation' gears.c:(.text+0x159d): undefined reference todisplay_acquire_window_surface' gears.c:(.text+0x17fc): undefined reference to display_release_window_surface' gears.c:(.text+0x1809): undefined reference towindow_get_wl_surface' /tmp/ccyuHaj3.o: In function resize_handler': gears.c:(.text+0x1896): undefined reference towidget_set_size' /tmp/ccyuHaj3.o: In function keyboard_focus_handler': gears.c:(.text+0x18a9): undefined reference towindow_schedule_redraw' /tmp/ccyuHaj3.o: In function fullscreen_handler': gears.c:(.text+0x18dd): undefined reference towindow_set_fullscreen' /tmp/ccyuHaj3.o: In function gears_create': gears.c:(.text+0x1917): undefined reference towindow_create' gears.c:(.text+0x1930): undefined reference to window_frame_create' gears.c:(.text+0x194b): undefined reference towindow_set_title' gears.c:(.text+0x1959): undefined reference to display_get_egl_display' gears.c:(.text+0x198f): undefined reference todisplay_get_argb_egl_config' gears.c:(.text+0x1c31): undefined reference to window_set_user_data' gears.c:(.text+0x1c47): undefined reference towidget_set_resize_handler' gears.c:(.text+0x1c5d): undefined reference to widget_set_redraw_handler' gears.c:(.text+0x1c73): undefined reference towidget_set_button_handler' gears.c:(.text+0x1c89): undefined reference to widget_set_motion_handler' gears.c:(.text+0x1c9e): undefined reference towindow_set_keyboard_focus_handler' gears.c:(.text+0x1cb3): undefined reference to window_set_fullscreen_handler' gears.c:(.text+0x1cce): undefined reference towindow_schedule_resize' /tmp/ccyuHaj3.o: In function main': gears.c:(.text+0x1cf2): undefined reference todisplay_create' gears.c:(.text+0x1d32): undefined reference to `display_run' collect2: ld returned 1 exit status [SB2 sdk-build SailfishOS-i486-x86] I have no name!@SailfishSDK clients $

I'm getting the following errors when I try to compile this code

This is a simple program demonstrating how to use OpenGL ES 2.0 .the code by wayland official It will output two gears, which can be moved around on the screen I'm getting the following errors when I try to compile this code here code http://cgit.freedesktop.org/wayland/weston/tree/clients/gears.c Source packages http://cgit.freedesktop.org/wayland/weston/snapshot/weston-1.1.0.zip The following is a compilation process error Picture ---http://xiangce.baidu.com/picture/detail/f169b84d30294a860509f5ec71137ff9bb631b3eprocess

free encyclopedia http://pastebin.com/57kbDZs6

[SB2 sdk-build SailfishOS-i486-x86] I have no name!@SailfishSDK clients $ gcc -o gerac gears.c -I /srv/mer/targets/SailfishOS-i486-x86/usr/include/ -I /srv/mer/targets/SailfishOS-i486-x86/usr/include/cairo -L /srv/mer/targets/SailfishOS-i486-x86/usr/lib -lm -lwayland-client -lEGL -lGL -lcairo /tmp/ccyuHaj3.o: In function frame_callback': gears.c:(.text+0x1371): undefined reference towindow_schedule_redraw' /tmp/ccyuHaj3.o: In function button_handler': gears.c:(.text+0x1538): undefined reference toinput_get_position' /tmp/ccyuHaj3.o: In function redraw_handler': gears.c:(.text+0x1568): undefined reference towidget_get_allocation' gears.c:(.text+0x157c): undefined reference to window_get_allocation' gears.c:(.text+0x159d): undefined reference todisplay_acquire_window_surface' gears.c:(.text+0x17fc): undefined reference to display_release_window_surface' gears.c:(.text+0x1809): undefined reference towindow_get_wl_surface' /tmp/ccyuHaj3.o: In function resize_handler': gears.c:(.text+0x1896): undefined reference towidget_set_size' /tmp/ccyuHaj3.o: In function keyboard_focus_handler': gears.c:(.text+0x18a9): undefined reference towindow_schedule_redraw' /tmp/ccyuHaj3.o: In function fullscreen_handler': gears.c:(.text+0x18dd): undefined reference towindow_set_fullscreen' /tmp/ccyuHaj3.o: In function gears_create': gears.c:(.text+0x1917): undefined reference towindow_create' gears.c:(.text+0x1930): undefined reference to window_frame_create' gears.c:(.text+0x194b): undefined reference towindow_set_title' gears.c:(.text+0x1959): undefined reference to display_get_egl_display' gears.c:(.text+0x198f): undefined reference todisplay_get_argb_egl_config' gears.c:(.text+0x1c31): undefined reference to window_set_user_data' gears.c:(.text+0x1c47): undefined reference towidget_set_resize_handler' gears.c:(.text+0x1c5d): undefined reference to widget_set_redraw_handler' gears.c:(.text+0x1c73): undefined reference towidget_set_button_handler' gears.c:(.text+0x1c89): undefined reference to widget_set_motion_handler' gears.c:(.text+0x1c9e): undefined reference towindow_set_keyboard_focus_handler' gears.c:(.text+0x1cb3): undefined reference to window_set_fullscreen_handler' gears.c:(.text+0x1cce): undefined reference towindow_schedule_resize' /tmp/ccyuHaj3.o: In function main': gears.c:(.text+0x1cf2): undefined reference todisplay_create' gears.c:(.text+0x1d32): undefined reference to `display_run' collect2: ld returned 1 exit status [SB2 sdk-build SailfishOS-i486-x86] I have no name!@SailfishSDK clients $

I'm getting the following errors when I try to compile this code

This is a simple program demonstrating how to use OpenGL ES 2.0 .the code by wayland official It will output two gears, which can be moved around on the screen I'm getting the following errors when I try to compile this code here code http://cgit.freedesktop.org/wayland/weston/tree/clients/gears.c Source packages http://cgit.freedesktop.org/wayland/weston/snapshot/weston-1.1.0.zip The following is a compilation process

free encyclopedia pastebin error code http://pastebin.com/57kbDZs6

[SB2 sdk-build SailfishOS-i486-x86] I have no name!@SailfishSDK clients $ gcc -o gerac gears.c -I /srv/mer/targets/SailfishOS-i486-x86/usr/include/ -I /srv/mer/targets/SailfishOS-i486-x86/usr/include/cairo -L /srv/mer/targets/SailfishOS-i486-x86/usr/lib -lm -lwayland-client -lEGL -lGL -lcairo /tmp/ccyuHaj3.o: In function frame_callback': gears.c:(.text+0x1371): undefined reference towindow_schedule_redraw' /tmp/ccyuHaj3.o: In function button_handler': gears.c:(.text+0x1538): undefined reference toinput_get_position' /tmp/ccyuHaj3.o: In function redraw_handler': gears.c:(.text+0x1568): undefined reference towidget_get_allocation' gears.c:(.text+0x157c): undefined reference to window_get_allocation' gears.c:(.text+0x159d): undefined reference todisplay_acquire_window_surface' gears.c:(.text+0x17fc): undefined reference to display_release_window_surface' gears.c:(.text+0x1809): undefined reference towindow_get_wl_surface' /tmp/ccyuHaj3.o: In function resize_handler': gears.c:(.text+0x1896): undefined reference towidget_set_size' /tmp/ccyuHaj3.o: In function keyboard_focus_handler': gears.c:(.text+0x18a9): undefined reference towindow_schedule_redraw' /tmp/ccyuHaj3.o: In function fullscreen_handler': gears.c:(.text+0x18dd): undefined reference towindow_set_fullscreen' /tmp/ccyuHaj3.o: In function gears_create': gears.c:(.text+0x1917): undefined reference towindow_create' gears.c:(.text+0x1930): undefined reference to window_frame_create' gears.c:(.text+0x194b): undefined reference towindow_set_title' gears.c:(.text+0x1959): undefined reference to display_get_egl_display' gears.c:(.text+0x198f): undefined reference todisplay_get_argb_egl_config' gears.c:(.text+0x1c31): undefined reference to window_set_user_data' gears.c:(.text+0x1c47): undefined reference towidget_set_resize_handler' gears.c:(.text+0x1c5d): undefined reference to widget_set_redraw_handler' gears.c:(.text+0x1c73): undefined reference towidget_set_button_handler' gears.c:(.text+0x1c89): undefined reference to widget_set_motion_handler' gears.c:(.text+0x1c9e): undefined reference towindow_set_keyboard_focus_handler' gears.c:(.text+0x1cb3): undefined reference to window_set_fullscreen_handler' gears.c:(.text+0x1cce): undefined reference towindow_schedule_resize' /tmp/ccyuHaj3.o: In function main': gears.c:(.text+0x1cf2): undefined reference todisplay_create' gears.c:(.text+0x1d32): undefined reference to `display_run' collect2: ld returned 1 exit status [SB2 sdk-build SailfishOS-i486-x86] I have no name!@SailfishSDK clients $

I'm getting the following errors when I try to compile this code

This is a simple program demonstrating how to use OpenGL ES 2.0 .the code by wayland official It will output two gears, which can be moved around on the screen I'm getting the following errors when I try to compile this code here code http://cgit.freedesktop.org/wayland/weston/tree/clients/gears.c Source packages http://cgit.freedesktop.org/wayland/weston/snapshot/weston-1.1.0.zip The following is a compilation process

pastebin error code http://pastebin.com/57kbDZs6

[SB2 sdk-build SailfishOS-i486-x86] I have no name!@SailfishSDK clients $ gcc -o gerac gears.c -I /srv/mer/targets/SailfishOS-i486-x86/usr/include/ -I /srv/mer/targets/SailfishOS-i486-x86/usr/include/cairo -L /srv/mer/targets/SailfishOS-i486-x86/usr/lib -lm -lwayland-client -lEGL -lGL -lcairo /tmp/ccyuHaj3.o: In function frame_callback': -lcairo

/tmp/ccyuHaj3.o: In function `frame_callback': gears.c:(.text+0x1371): undefined reference towindow_schedule_redraw'
/tmp/ccyuHaj3.o: In function button_handler':
to `window_schedule_redraw'
/tmp/ccyuHaj3.o: In function `button_handler':
gears.c:(.text+0x1538): undefined reference toinput_get_position'
/tmp/ccyuHaj3.o: In function redraw_handler':
to `input_get_position'
/tmp/ccyuHaj3.o: In function `redraw_handler':
gears.c:(.text+0x1568): undefined reference towidget_get_allocation'
to `widget_get_allocation'
gears.c:(.text+0x157c): undefined reference to window_get_allocation'
`window_get_allocation'
gears.c:(.text+0x159d): undefined reference todisplay_acquire_window_surface'
to `display_acquire_window_surface'
gears.c:(.text+0x17fc): undefined reference to display_release_window_surface'
`display_release_window_surface'
gears.c:(.text+0x1809): undefined reference towindow_get_wl_surface'
/tmp/ccyuHaj3.o: In function resize_handler':
to `window_get_wl_surface'
/tmp/ccyuHaj3.o: In function `resize_handler':
gears.c:(.text+0x1896): undefined reference towidget_set_size'
/tmp/ccyuHaj3.o: In function keyboard_focus_handler':
to `widget_set_size'
/tmp/ccyuHaj3.o: In function `keyboard_focus_handler':
gears.c:(.text+0x18a9): undefined reference towindow_schedule_redraw'
/tmp/ccyuHaj3.o: In function fullscreen_handler':
to `window_schedule_redraw'
/tmp/ccyuHaj3.o: In function `fullscreen_handler':
gears.c:(.text+0x18dd): undefined reference towindow_set_fullscreen'
/tmp/ccyuHaj3.o: In function gears_create':
to `window_set_fullscreen'
/tmp/ccyuHaj3.o: In function `gears_create':
gears.c:(.text+0x1917): undefined reference towindow_create'
to `window_create'
gears.c:(.text+0x1930): undefined reference to window_frame_create'
`window_frame_create'
gears.c:(.text+0x194b): undefined reference towindow_set_title'
to `window_set_title'
gears.c:(.text+0x1959): undefined reference to display_get_egl_display'
`display_get_egl_display'
gears.c:(.text+0x198f): undefined reference todisplay_get_argb_egl_config'
to `display_get_argb_egl_config'
gears.c:(.text+0x1c31): undefined reference to window_set_user_data'
`window_set_user_data'
gears.c:(.text+0x1c47): undefined reference towidget_set_resize_handler'
to `widget_set_resize_handler'
gears.c:(.text+0x1c5d): undefined reference to widget_set_redraw_handler'
`widget_set_redraw_handler'
gears.c:(.text+0x1c73): undefined reference towidget_set_button_handler'
to `widget_set_button_handler'
gears.c:(.text+0x1c89): undefined reference to widget_set_motion_handler'
`widget_set_motion_handler'
gears.c:(.text+0x1c9e): undefined reference towindow_set_keyboard_focus_handler'
to `window_set_keyboard_focus_handler'
gears.c:(.text+0x1cb3): undefined reference to window_set_fullscreen_handler'
`window_set_fullscreen_handler'
gears.c:(.text+0x1cce): undefined reference towindow_schedule_resize'
/tmp/ccyuHaj3.o: In function main':
to `window_schedule_resize'
/tmp/ccyuHaj3.o: In function `main':
gears.c:(.text+0x1cf2): undefined reference todisplay_create'
to `display_create'
gears.c:(.text+0x1d32): undefined reference to `display_run'
collect2: ld returned 1 exit status
[SB2 sdk-build SailfishOS-i486-x86] I have no name!@SailfishSDK clients $

$