[PATCH] Weston: log.c, log.h: the files themselves

2012-05-26 Thread Martin Minarik
--- src/log.c | 85 + src/log.h | 36 ++ 2 files changed, 121 insertions(+), 0 deletions(-) create mode 100644 src/log.c create mode 100644 src/log.h diff --git a/src/log.c b/src/log.c new file mode 100644 i

[PATCH 2/3] Weston: compositor.c: Logging to $HOME/weston.log, stderr

2012-05-26 Thread Martin Minarik
Signed-off-by: Martin Minarik --- src/compositor.c | 10 +- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/src/compositor.c b/src/compositor.c index 3c1e058..6582e21 100644 --- a/src/compositor.c +++ b/src/compositor.c @@ -25,13 +25,13 @@ #define _GNU_SOURCE #include

[PATCH] Weston: log.c, log.h: Logging

2012-05-26 Thread Martin Minarik
Logging to file can be initiated by: weston_log_file_create() , weston_log_file_destroy() For writing log messages themselves, use wl_log() or W_PRINTF() Provides weston_log_duplicator handler for writing both to file and stderr. --- src/Makefile.am |2 ++ 1 files changed, 2 insertions(+), 0

[PATCH 2/2] Wayland replace printf by WL_PRINTF

2012-05-26 Thread Martin Minarik
Signed-off-by: Martin Minarik --- src/wayland-server.c | 17 +++-- 1 files changed, 7 insertions(+), 10 deletions(-) diff --git a/src/wayland-server.c b/src/wayland-server.c index 9f07b88..5259a18 100644 --- a/src/wayland-server.c +++ b/src/wayland-server.c @@ -437,7 +437,7 @@ wl_c

[PATCH 1/2] Wayland logging functionality

2012-05-26 Thread Martin Minarik
The core libwayland libraries should not handle logging, only passing the error messages to subscribed functions. An application linked to libwayland-server or libwayland-client will be able to set own functions (one per library) to handle error messages. Signed-off-by: Martin Minarik --- src/wa

Re: Weston is not linking libm

2012-05-26 Thread Thiago Macieira
On sábado, 26 de maio de 2012 08.45.04, dar...@chaosreigns.com wrote: > When I run that: > $ pkg-config --libs "cairo vpx" > -L/home/darxus/install.test.master/lib -lcairo -lvpx Looks like it's vpx.pc that is bad. If you're statically linking to it, then pkg-config should display the -lm too, so

Weston is not linking libm

2012-05-26 Thread darxus
I can't get weston to build since the webm support for wcap (video capture) was added. With the latest wayland, weston, and vpx git masters (on ubuntu oneric): /home/darxus/source.test.master/weston/wcap/vpxenc.c:1388: undefined reference to `log' wcap_decode-vpxenc.o: In function `vp8_mse2psnr'