We have moved to a new Sailfish OS Forum. Please start new discussions there.
1 | initial version | posted 2014-03-30 11:59:15 +0200 |
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 to
window_schedule_redraw'
/tmp/ccyuHaj3.o: In function button_handler':
gears.c:(.text+0x1538): undefined reference to
input_get_position'
/tmp/ccyuHaj3.o: In function redraw_handler':
gears.c:(.text+0x1568): undefined reference to
widget_get_allocation'
gears.c:(.text+0x157c): undefined reference to window_get_allocation'
gears.c:(.text+0x159d): undefined reference to
display_acquire_window_surface'
gears.c:(.text+0x17fc): undefined reference to display_release_window_surface'
gears.c:(.text+0x1809): undefined reference to
window_get_wl_surface'
/tmp/ccyuHaj3.o: In function resize_handler':
gears.c:(.text+0x1896): undefined reference to
widget_set_size'
/tmp/ccyuHaj3.o: In function keyboard_focus_handler':
gears.c:(.text+0x18a9): undefined reference to
window_schedule_redraw'
/tmp/ccyuHaj3.o: In function fullscreen_handler':
gears.c:(.text+0x18dd): undefined reference to
window_set_fullscreen'
/tmp/ccyuHaj3.o: In function gears_create':
gears.c:(.text+0x1917): undefined reference to
window_create'
gears.c:(.text+0x1930): undefined reference to window_frame_create'
gears.c:(.text+0x194b): undefined reference to
window_set_title'
gears.c:(.text+0x1959): undefined reference to display_get_egl_display'
gears.c:(.text+0x198f): undefined reference to
display_get_argb_egl_config'
gears.c:(.text+0x1c31): undefined reference to window_set_user_data'
gears.c:(.text+0x1c47): undefined reference to
widget_set_resize_handler'
gears.c:(.text+0x1c5d): undefined reference to widget_set_redraw_handler'
gears.c:(.text+0x1c73): undefined reference to
widget_set_button_handler'
gears.c:(.text+0x1c89): undefined reference to widget_set_motion_handler'
gears.c:(.text+0x1c9e): undefined reference to
window_set_keyboard_focus_handler'
gears.c:(.text+0x1cb3): undefined reference to window_set_fullscreen_handler'
gears.c:(.text+0x1cce): undefined reference to
window_schedule_resize'
/tmp/ccyuHaj3.o: In function main':
gears.c:(.text+0x1cf2): undefined reference 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 $
2 | No.2 Revision |
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 to
window_schedule_redraw'
/tmp/ccyuHaj3.o: In function button_handler':
gears.c:(.text+0x1538): undefined reference to
input_get_position'
/tmp/ccyuHaj3.o: In function redraw_handler':
gears.c:(.text+0x1568): undefined reference to
widget_get_allocation'
gears.c:(.text+0x157c): undefined reference to window_get_allocation'
gears.c:(.text+0x159d): undefined reference to
display_acquire_window_surface'
gears.c:(.text+0x17fc): undefined reference to display_release_window_surface'
gears.c:(.text+0x1809): undefined reference to
window_get_wl_surface'
/tmp/ccyuHaj3.o: In function resize_handler':
gears.c:(.text+0x1896): undefined reference to
widget_set_size'
/tmp/ccyuHaj3.o: In function keyboard_focus_handler':
gears.c:(.text+0x18a9): undefined reference to
window_schedule_redraw'
/tmp/ccyuHaj3.o: In function fullscreen_handler':
gears.c:(.text+0x18dd): undefined reference to
window_set_fullscreen'
/tmp/ccyuHaj3.o: In function gears_create':
gears.c:(.text+0x1917): undefined reference to
window_create'
gears.c:(.text+0x1930): undefined reference to window_frame_create'
gears.c:(.text+0x194b): undefined reference to
window_set_title'
gears.c:(.text+0x1959): undefined reference to display_get_egl_display'
gears.c:(.text+0x198f): undefined reference to
display_get_argb_egl_config'
gears.c:(.text+0x1c31): undefined reference to window_set_user_data'
gears.c:(.text+0x1c47): undefined reference to
widget_set_resize_handler'
gears.c:(.text+0x1c5d): undefined reference to widget_set_redraw_handler'
gears.c:(.text+0x1c73): undefined reference to
widget_set_button_handler'
gears.c:(.text+0x1c89): undefined reference to widget_set_motion_handler'
gears.c:(.text+0x1c9e): undefined reference to
window_set_keyboard_focus_handler'
gears.c:(.text+0x1cb3): undefined reference to window_set_fullscreen_handler'
gears.c:(.text+0x1cce): undefined reference to
window_schedule_resize'
/tmp/ccyuHaj3.o: In function main':
gears.c:(.text+0x1cf2): undefined reference 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 $
3 | No.3 Revision |
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 to
window_schedule_redraw'
/tmp/ccyuHaj3.o: In function button_handler':
gears.c:(.text+0x1538): undefined reference to
input_get_position'
/tmp/ccyuHaj3.o: In function redraw_handler':
gears.c:(.text+0x1568): undefined reference to
widget_get_allocation'
gears.c:(.text+0x157c): undefined reference to window_get_allocation'
gears.c:(.text+0x159d): undefined reference to
display_acquire_window_surface'
gears.c:(.text+0x17fc): undefined reference to display_release_window_surface'
gears.c:(.text+0x1809): undefined reference to
window_get_wl_surface'
/tmp/ccyuHaj3.o: In function resize_handler':
gears.c:(.text+0x1896): undefined reference to
widget_set_size'
/tmp/ccyuHaj3.o: In function keyboard_focus_handler':
gears.c:(.text+0x18a9): undefined reference to
window_schedule_redraw'
/tmp/ccyuHaj3.o: In function fullscreen_handler':
gears.c:(.text+0x18dd): undefined reference to
window_set_fullscreen'
/tmp/ccyuHaj3.o: In function gears_create':
gears.c:(.text+0x1917): undefined reference to
window_create'
gears.c:(.text+0x1930): undefined reference to window_frame_create'
gears.c:(.text+0x194b): undefined reference to
window_set_title'
gears.c:(.text+0x1959): undefined reference to display_get_egl_display'
gears.c:(.text+0x198f): undefined reference to
display_get_argb_egl_config'
gears.c:(.text+0x1c31): undefined reference to window_set_user_data'
gears.c:(.text+0x1c47): undefined reference to
widget_set_resize_handler'
gears.c:(.text+0x1c5d): undefined reference to widget_set_redraw_handler'
gears.c:(.text+0x1c73): undefined reference to
widget_set_button_handler'
gears.c:(.text+0x1c89): undefined reference to widget_set_motion_handler'
gears.c:(.text+0x1c9e): undefined reference to
window_set_keyboard_focus_handler'
gears.c:(.text+0x1cb3): undefined reference to window_set_fullscreen_handler'
gears.c:(.text+0x1cce): undefined reference to
window_schedule_resize'
/tmp/ccyuHaj3.o: In function main':
gears.c:(.text+0x1cf2): undefined reference 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 $
4 | No.4 Revision |
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 to
window_schedule_redraw'
/tmp/ccyuHaj3.o: In function button_handler':
gears.c:(.text+0x1538): undefined reference to
input_get_position'
/tmp/ccyuHaj3.o: In function redraw_handler':
gears.c:(.text+0x1568): undefined reference to
widget_get_allocation'
gears.c:(.text+0x157c): undefined reference to window_get_allocation'
gears.c:(.text+0x159d): undefined reference to
display_acquire_window_surface'
gears.c:(.text+0x17fc): undefined reference to display_release_window_surface'
gears.c:(.text+0x1809): undefined reference to
window_get_wl_surface'
/tmp/ccyuHaj3.o: In function resize_handler':
gears.c:(.text+0x1896): undefined reference to
widget_set_size'
/tmp/ccyuHaj3.o: In function keyboard_focus_handler':
gears.c:(.text+0x18a9): undefined reference to
window_schedule_redraw'
/tmp/ccyuHaj3.o: In function fullscreen_handler':
gears.c:(.text+0x18dd): undefined reference to
window_set_fullscreen'
/tmp/ccyuHaj3.o: In function gears_create':
gears.c:(.text+0x1917): undefined reference to
window_create'
gears.c:(.text+0x1930): undefined reference to window_frame_create'
gears.c:(.text+0x194b): undefined reference to
window_set_title'
gears.c:(.text+0x1959): undefined reference to display_get_egl_display'
gears.c:(.text+0x198f): undefined reference to
display_get_argb_egl_config'
gears.c:(.text+0x1c31): undefined reference to window_set_user_data'
gears.c:(.text+0x1c47): undefined reference to
widget_set_resize_handler'
gears.c:(.text+0x1c5d): undefined reference to widget_set_redraw_handler'
gears.c:(.text+0x1c73): undefined reference to
widget_set_button_handler'
gears.c:(.text+0x1c89): undefined reference to widget_set_motion_handler'
gears.c:(.text+0x1c9e): undefined reference to
window_set_keyboard_focus_handler'
gears.c:(.text+0x1cb3): undefined reference to window_set_fullscreen_handler'
gears.c:(.text+0x1cce): undefined reference to
window_schedule_resize'
/tmp/ccyuHaj3.o: In function main':
gears.c:(.text+0x1cf2): undefined reference 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 $
5 | No.5 Revision |
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 to
window_schedule_redraw'
/tmp/ccyuHaj3.o: In function button_handler':
gears.c:(.text+0x1538): undefined reference to
input_get_position'
/tmp/ccyuHaj3.o: In function redraw_handler':
gears.c:(.text+0x1568): undefined reference to
widget_get_allocation'
gears.c:(.text+0x157c): undefined reference to window_get_allocation'
gears.c:(.text+0x159d): undefined reference to
display_acquire_window_surface'
gears.c:(.text+0x17fc): undefined reference to display_release_window_surface'
gears.c:(.text+0x1809): undefined reference to
window_get_wl_surface'
/tmp/ccyuHaj3.o: In function resize_handler':
gears.c:(.text+0x1896): undefined reference to
widget_set_size'
/tmp/ccyuHaj3.o: In function keyboard_focus_handler':
gears.c:(.text+0x18a9): undefined reference to
window_schedule_redraw'
/tmp/ccyuHaj3.o: In function fullscreen_handler':
gears.c:(.text+0x18dd): undefined reference to
window_set_fullscreen'
/tmp/ccyuHaj3.o: In function gears_create':
gears.c:(.text+0x1917): undefined reference to
window_create'
gears.c:(.text+0x1930): undefined reference to window_frame_create'
gears.c:(.text+0x194b): undefined reference to
window_set_title'
gears.c:(.text+0x1959): undefined reference to display_get_egl_display'
gears.c:(.text+0x198f): undefined reference to
display_get_argb_egl_config'
gears.c:(.text+0x1c31): undefined reference to window_set_user_data'
gears.c:(.text+0x1c47): undefined reference to
widget_set_resize_handler'
gears.c:(.text+0x1c5d): undefined reference to widget_set_redraw_handler'
gears.c:(.text+0x1c73): undefined reference to
widget_set_button_handler'
gears.c:(.text+0x1c89): undefined reference to widget_set_motion_handler'
gears.c:(.text+0x1c9e): undefined reference to
window_set_keyboard_focus_handler'
gears.c:(.text+0x1cb3): undefined reference to window_set_fullscreen_handler'
gears.c:(.text+0x1cce): undefined reference to
window_schedule_resize'
/tmp/ccyuHaj3.o: In function main':
gears.c:(.text+0x1cf2): undefined reference 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 $
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 -lcairoframe_callback':
/tmp/ccyuHaj3.o: In function `frame_callback': gears.c:(.text+0x1371): undefined referencetowindow_schedule_redraw' /tmp/ccyuHaj3.o: In functionto `window_schedule_redraw' /tmp/ccyuHaj3.o: In function `button_handler': gears.c:(.text+0x1538): undefined referencebutton_handler':
toinput_get_position' /tmp/ccyuHaj3.o: In functionto `input_get_position' /tmp/ccyuHaj3.o: In function `redraw_handler': gears.c:(.text+0x1568): undefined referenceredraw_handler':
towidget_get_allocation'to `widget_get_allocation' gears.c:(.text+0x157c): undefined reference to`window_get_allocation' gears.c:(.text+0x159d): undefined referencewindow_get_allocation'
todisplay_acquire_window_surface'to `display_acquire_window_surface' gears.c:(.text+0x17fc): undefined reference to`display_release_window_surface' gears.c:(.text+0x1809): undefined referencedisplay_release_window_surface'
towindow_get_wl_surface' /tmp/ccyuHaj3.o: In functionto `window_get_wl_surface' /tmp/ccyuHaj3.o: In function `resize_handler': gears.c:(.text+0x1896): undefined referenceresize_handler':
towidget_set_size' /tmp/ccyuHaj3.o: In functionto `widget_set_size' /tmp/ccyuHaj3.o: In function `keyboard_focus_handler': gears.c:(.text+0x18a9): undefined referencekeyboard_focus_handler':
towindow_schedule_redraw' /tmp/ccyuHaj3.o: In functionto `window_schedule_redraw' /tmp/ccyuHaj3.o: In function `fullscreen_handler': gears.c:(.text+0x18dd): undefined referencefullscreen_handler':
towindow_set_fullscreen' /tmp/ccyuHaj3.o: In functionto `window_set_fullscreen' /tmp/ccyuHaj3.o: In function `gears_create': gears.c:(.text+0x1917): undefined referencegears_create':
towindow_create'to `window_create' gears.c:(.text+0x1930): undefined reference to`window_frame_create' gears.c:(.text+0x194b): undefined referencewindow_frame_create'
towindow_set_title'to `window_set_title' gears.c:(.text+0x1959): undefined reference to`display_get_egl_display' gears.c:(.text+0x198f): undefined referencedisplay_get_egl_display'
todisplay_get_argb_egl_config'to `display_get_argb_egl_config' gears.c:(.text+0x1c31): undefined reference to`window_set_user_data' gears.c:(.text+0x1c47): undefined referencewindow_set_user_data'
towidget_set_resize_handler'to `widget_set_resize_handler' gears.c:(.text+0x1c5d): undefined reference to`widget_set_redraw_handler' gears.c:(.text+0x1c73): undefined referencewidget_set_redraw_handler'
towidget_set_button_handler'to `widget_set_button_handler' gears.c:(.text+0x1c89): undefined reference to`widget_set_motion_handler' gears.c:(.text+0x1c9e): undefined referencewidget_set_motion_handler'
towindow_set_keyboard_focus_handler'to `window_set_keyboard_focus_handler' gears.c:(.text+0x1cb3): undefined reference to`window_set_fullscreen_handler' gears.c:(.text+0x1cce): undefined referencewindow_set_fullscreen_handler'
towindow_schedule_resize' /tmp/ccyuHaj3.o: In functionto `window_schedule_resize' /tmp/ccyuHaj3.o: In function `main': gears.c:(.text+0x1cf2): undefined referencemain':
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$$