[GRASSLIST:9769] Re: NVIZ fails to build on an up-to-date Ubuntu Hoary (was: errors building today's NVIZ)

Glynn Clements glynn at gclements.plus.com
Mon Jan 9 05:15:56 EST 2006


Dylan Beaudette wrote:

> here is something that came up related to NVIZ and X.org last september:
> 
> http://grass.itc.it/pipermail/grass5/2005-September/019676.html

Right. However, NVIZ isn't using these functions; libGL itself is.

The obvious question is: why is libGL a static library rather than a
shared library? A shared library would have the relevant dependency
information:

	$ ldd /usr/lib/libGL.so
		libpthread.so.0 => /lib/libpthread.so.0 (0x4007e000)
		libXxf86vm.so.1 => /usr/lib/libXxf86vm.so.1 (0x400d1000)
		libXext.so.6 => /usr/lib/libXext.so.6 (0x400d7000)
		libX11.so.6 => /usr/lib/libX11.so.6 (0x400e5000)
		libdl.so.2 => /lib/libdl.so.2 (0x401ae000)
		libc.so.6 => /lib/libc.so.6 (0x401b2000)
		/lib/ld-linux.so.2 (0x80000000)

Static libraries don't have dependency information, so the only
solution is for the configure script to try adding various other
libraries which might be required.

The libGL check in configure.in should probably be updated to:

LOC_CHECK_LIBS(GL,glBegin,OpenGL,$OPENGL_LIB_PATH,OPENGLLIB,$X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB,,,-lpthread,-ldl,-lXxf86vm)

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-user mailing list