[Pkg-octave-devel] Problems in octaviz

Rafael Laboissiere Rafael Laboissiere <rafael@debian.org>
Fri, 4 Mar 2005 21:39:04 +0100


* Rafa Rodriguez Galvan <rafael.rodriguez@uca.es> [2005-03-04 20:25]:

> as I commented before my short vacation period, I'm working
> to port matwrap and octaviz to the DOG Guidelines. I've
> started with the second one

Thanks for that, I really appreciate your involvement.

> But it failed when tested it in a dual desktop, with two 
> Athlon 1.800 processors whit the error message:
> 
> /usr/include/vtk/vtkOpenGLRenderWindow.h:30:40: GL/gl.h: No file
> or directory
> 
> The octave packages instaled are:
> 
> ii  octave2.1      2.1.66-1
> ii  octave2.1-head 2.1.66-1
> 
> I think the relevant package in this error is:
> 
> ii  xlibmesa-gl-dev 4.2.1-12.1

I have here:

ii  xlibmesa-gl-dev 4.2.1-12.0.1

> I copy and paste:
> ---
> $ locate GL/gl.h
> /usr/X11R6/include/GL/gl.h
> $ dpkg -S /usr/X11R6/include/GL/gl.h
> xlibmesa-gl-dev: /usr/X11R6/include/GL/gl.h
> ---
> Though xlibmesa-gl-dev provides GL/gl.h, octaviz
> does not build in this computer.

I have here:

$ locate GL/gl.h
/usr/include/GL/gl.h
/usr/X11R6/include/GL/gl.h
$ dpkg -S /usr/include/GL/gl.h
xlibmesa-gl-dev: /usr/include/GL/gl.h

Do you have the same at your system?

> But in my laptop (where octaviz builds without errors),
> and I have not installed xlibmesa-gl-dev:
> ---
> $ locate GL/gl.h
> /usr/include/GL/gl.h
> $ dpkg -S /usr/include/GL/gl.h
> mesa-common-dev: /usr/include/GL/gl.h
> ---

Notice that xlibmesa-gl-dev provides also the include file above.

> So, it seems that octaviz builds fine if mesa-comon-dev
> is installed, though it is not required by Builds-Depends:
> ---
> Build-Depends: debhelper (>= 4.0.0), cmake, libvtk4-dev (>= 4.4.2),
> octave2.1-headers (>= 2.1.53), lesstif-dev, perl.
> ---
> 
> libvtk4-dev depends on "libvtk4, libgl-dev, xlibs-dev, libc6-dev",
> and libgl-dev is provided by xlibmesa-gl-dev, so it should work,
> but i think it doesn't in my desktop. And strangely, mesa-common-dev
> doesn't provide libgl-dev, but octaviz builds fine with it.

Actually, mesa-common-dev depends on mesag-dev which on its turn provides
libgl-dev.  This is the reason octaviz built in your laptop, otherwise the
build-dependencies would not have been fulfilled.

> The question is: should octaviz include "mesa-common-dev" in
> builds-depend?

No, this is not necessary, according to my explanation above.  I am puzzled
about the failure to build in your desktop machine. 
 
-- 
Rafael