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

How can I compile this code under mersdk [answered]

asked 2014-03-27 15:47:03 +0300

baiduno1 gravatar image

updated 2014-03-27 15:47:55 +0300

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 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

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by r0kk3rz
close date 2015-09-01 17:59:00.595442

Comments

1

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 +0300 )edit

I lost the parameters '-lwayland-EGL" passed to the compiler ,Thanks for your suggestion

baiduno1 ( 2014-03-28 07:03:31 +0300 )edit

2 Answers

Sort by » oldest newest most voted
0

answered 2014-03-27 17:09:54 +0300

v0yd gravatar image

How did you call the compiler?

The functions the message refers to seem to be found in libwayland-egl, so there should be a -lwayland-egl in the parameters you pass to the compiler.

Disclaimer: I haven't done any compiling for Jolla or Wayland myself, so this is just an educated guess.

edit flag offensive delete publish link more

Comments

you are right! thanks for you

baiduno1 ( 2014-03-28 07:36:55 +0300 )edit
0

answered 2014-03-28 08:22:41 +0300

baiduno1 gravatar image

Thanks for all friends to attention to this post The problem has been solved

edit flag offensive delete publish link more

Question tools

Follow
1 follower

Stats

Asked: 2014-03-27 15:47:03 +0300

Seen: 1,234 times

Last updated: Mar 28 '14