[Spice-devel] Spiceclient (Linux) + OpenGL,qemu monitor
thomast at cs.tu-berlin.de
thomast at cs.tu-berlin.de
Mon Dec 20 07:29:21 PST 2010
Hi,
I tried to compile the latest ( master branch ) Spice Client for Linux/X11
with OpenGL.
I encountered compiling errors in the client/x11/red_window.cpp.
This fix it for me:
//PATCH BEGIN
client/x11/red_window.cpp | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/client/x11/red_window.cpp b/client/x11/red_window.cpp
index d7b19f9..4ac48ca 100644
--- a/client/x11/red_window.cpp
+++ b/client/x11/red_window.cpp
@@ -2075,13 +2075,14 @@ bool RedWindow::get_mouse_anchor_point(SpicePoint&
pt)
#ifdef USE_OGL
RedGlContext RedWindow::create_context_gl()
{
- RedGlContext *context = NULL;
+ // RedGlContext *context =NULL ;
if (XPlatform::get_fbconfig()[_screen]) {
XLockDisplay(x_display);
- context = glXCreateContext(x_display,
XPlatform::get_vinfo()[_screen], NULL, GL_TRUE);
+ RedGlContext context = glXCreateContext(x_display,
XPlatform::get_vinfo()[_screen], NULL, GL_TRUE);
XUnlockDisplay(x_display);
+ return context;
}
- return context;
+ return NULL;
}
RedPbuffer RedWindow::create_pbuff(int width, int height)
//PATCH END
Changes are based on changes introduced in:
[PATCH spice] spicec-x11: Put locks around xlib calls which wait for a reply
I used/tried on Fedora 14 x68_64 (2.6.35.9-64.fc14.x86_64).
Something complete different now, did you remove the qemu monitor spice
commands? All spice.X (eg. spice.stat) commands are not working in my
build. Did I have to active them with some compile or configure flag?
Greetings & happy holidays
Thomas Tyminski
Berlin , Germany
More information about the Spice-devel
mailing list