>>> Christophe Fergeau <cferg...@redhat.com> 2016/4/18 星期一 下午 3:40 >>>
>Hey,
>
>On Mon, Apr 18, 2016 at 03:18:25PM +0800, Lin Ma wrote:
>> Because we missed variables GL_LIBS and GL_CFLAGS in generated Makefile.in,
>> The linker flag and the compiler flag wont be generated in Makefile.
>> It causes spice-gtk building failure with --enable-opengl option.
>
>Can you give more details about the error you are getting?
>I cannot find GL_LIBS/GL_CFLAGS in spice-gtk Makefile.am, and in
>spice-common, GL_LIBS and GL_CFLAGS are added SPICE_COMMON_{LIBS,CFLAGS}
>which are AC_SUBST'ed.
>(for what it's worth, using --enable-opengl is not recommended)
I'm doing something about qemu virtio-gpu with spice+opengl.
I need the remote-viewer in virt-viewer package to connect a spice+gl unix 
domain.
the virt-viewer with opengl support requires spice-gtk(with opengl enabled).
 
So I need to build spice-gtk with opengl option. Then I experienced the 
following issue:
~/projects/spice-gtk$ ./autogen.sh --prefix=/usr --libdir=/usr/lib64 
--enable-opengl && make
......
./.libs/libspice-client-glib-2.0.so: undefined reference to `gluTessVertex'
./.libs/libspice-client-glib-2.0.so: undefined reference to `glXCreatePixmap'
./.libs/libspice-client-glib-2.0.so: undefined reference to `glEnd'
./.libs/libspice-client-glib-2.0.so: undefined reference to `glXMakeCurrent'
./.libs/libspice-client-glib-2.0.so: undefined reference to `XFree'
./.libs/libspice-client-glib-2.0.so: undefined reference to `glEnable'
./.libs/libspice-client-glib-2.0.so: undefined reference to `glLineWidth'
./.libs/libspice-client-glib-2.0.so: undefined reference to `glBitmap'
......
 
See, The linker flag variable $GL_LIBS which the value should be '-lGL -lGLU' 
are not passed into Makefile correctly.
The variable $GL_LIBS should be generated/passed into Makefile.in first by m4 
macro, Then finally the value '-lGL -lGLU' can be 
attached to it correctly.
 
Thanks,
Lin
_______________________________________________
Spice-devel mailing list
Spice-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/spice-devel

Reply via email to