giucam / orbital

A Wayland compositor based on Weston and Qt
GNU General Public License v3.0
158 stars 17 forks source link

Build error while compiling orbital #13

Closed kshanik closed 10 years ago

kshanik commented 10 years ago

Hi,

I have compiled wayland, Qt5 (base, js, declarative) and when i start compiling orbital i am getting below error.

Please help.

Thanks, Manish

/home/m/sandbox/wayland/orbital/src/compositor/compositor.cpp: In destructor ‘virtual Orbital::Compositor::~Compositor()’: /home/m/sandbox/wayland/orbital/src/compositor/compositor.cpp:153:47: error: ‘weston_compositor_destroy’ was not declared in this scope weston_compositor_destroy(m_compositor); ^ /home/m/sandbox/wayland/orbital/src/compositor/compositor.cpp: In member function ‘bool Orbital::Compositor::init(const QString&)’: /home/m/sandbox/wayland/orbital/src/compositor/compositor.cpp:207:36: error: ‘weston_log_set_handler’ was not declared in this scope weston_log_set_handler(log, log); ^ /home/m/sandbox/wayland/orbital/src/compositor/compositor.cpp:222:44: error: too few arguments to function ‘int weston_compositor_init(westoncompositor, wldisplay, int_, char__, westonconfig)’ if (weston_compositor_init(m_compositor) < 0 || weston_compositor_xkb_init(m_compositor, &xkb) < 0) ^ In file included from /home/m/sandbox/wayland/orbital/src/compositor/compositor.cpp:36:0: /home/m/Apps/Wayland/include/weston/compositor.h:1257:1: note: declared here weston_compositor_init(struct weston_compositor ec, struct wl_display display, ^ /home/m/sandbox/wayland/orbital/src/compositor/compositor.cpp:235:19: error: ‘struct weston_compositor’ has no member named ‘terminate’ m_compositor->terminate = terminate;

giucam commented 10 years ago

The development version has a new architecture, you need a development version of weston. Check the README.md, i updated it earlier today.

kshanik commented 10 years ago

Thanks for quick reply.

I cloned https://github.com/giucam/weston and checked out libweston, I am getting following error, is it that i need to build wayland now on some branch, currently i am on today's cloned master.

src/compositor.c:52:36: fatal error: scaler-server-protocol.h: No such file or directory

include "scaler-server-protocol.h"

giucam commented 10 years ago

Uhm, there should be a "scaler-server-protocol.h" in the protocol/ directory. Are you maybe building weston out of source?

kshanik commented 10 years ago

yes, i am building weston out of source..i just checked the sources.. building weston from freesedestop works well (it generators those headers) but when i build https://github.com/giucam/weston it fails.. Any idea what could be wrong?

kshanik commented 10 years ago

looks like it is not generating "scaler-server-protocol.h" but it has generated "scaler-client-protocol.h" Let me see, whats wrong.

m@m-HP-EliteBook-8530w:~/sandbox/wayland/westonDev$ make GEN protocol/text-cursor-position-protocol.c GEN protocol/text-cursor-position-client-protocol.h GEN protocol/scaler-protocol.c GEN protocol/scaler-client-protocol.h GEN protocol/workspaces-protocol.c GEN protocol/workspaces-client-protocol.h GEN protocol/presentation_timing-protocol.c GEN protocol/presentation_timing-client-protocol.h GEN protocol/xdg-shell-protocol.c GEN protocol/xdg-shell-client-protocol.h GEN protocol/screenshooter-protocol.c GEN protocol/screenshooter-client-protocol.h GEN protocol/text-protocol.c GEN protocol/text-client-protocol.h GEN protocol/input-method-protocol.c GEN protocol/input-method-client-protocol.h GEN protocol/desktop-shell-client-protocol.h GEN protocol/desktop-shell-protocol.c GEN protocol/fullscreen-shell-protocol.c GEN protocol/fullscreen-shell-client-protocol.h GEN protocol/desktop-shell-server-protocol.h GEN protocol/xdg-shell-server-protocol.h GEN protocol/fullscreen-shell-server-protocol.h GEN protocol/wayland-test-protocol.c GEN protocol/wayland-test-server-protocol.h GEN protocol/wayland-test-client-protocol.h make all-am make[1]: Entering directory `/home/m/sandbox/wayland/westonDev' CC src/libweston_la-log.lo CC src/libweston_la-compositor.lo src/compositor.c:52:36: fatal error: scaler-server-protocol.h: No such file or directory

include "scaler-server-protocol.h"

giucam commented 10 years ago

I get the same error when building out of source, however I can't build upstream master either.

kshanik commented 10 years ago

looks like i found the fix..

diff --git a/Makefile.am b/Makefile.am index 701a0f7..79eadf4 100644 --- a/Makefile.am +++ b/Makefile.am @@ -80,7 +80,7 @@ nodist_libweston_la_SOURCES = \ protocol/scaler-protocol.c \ protocol/scaler-server-protocol.h

-BUILT_SOURCES += $(nodist_weston_SOURCES) +BUILT_SOURCES += $(nodist_libweston_la_SOURCES)

bin_PROGRAMS += weston

giucam commented 10 years ago

Thank you, I'll integrate the fix.