Building Avogadro on OpenBSD

Hi,

I am attempting to build Avogadro on OpenBSD 5.0. During the compile,
I get this error:

In file included from /usr/local/include/X11/qt4/QtOpenGL/QGLWidget:1,
from
/usr/ports/pobj/avogadro-1.0.3/avogadro-1.0.3/libavogadro/src/glwidget.h:35,
from
/usr/ports/pobj/avogadro-1.0.3/avogadro-1.0.3/libavogadro/src/camera.cpp:26:
/usr/local/include/X11/qt4/QtOpenGL/qgl.h:77:20: error: GL/gl.h: No
such file or directory
/usr/local/include/X11/qt4/QtOpenGL/qgl.h:79:23: error: GL/glu.h: No
such file or directory

It looks like it is not finding the GL headers, which are located at
/usr/X11R6/include/GL/gl.h and /usr/X11R6/include/GL/glu.h.

How can I tell the build to look in the right directory for these headers?


Thanks,
Anthony J. Bentley

Hi Anthony,

Run “make VERBOSE=1”, and look at the gcc/g++ commands that are being
executed to see what include dirs ("-I/include/path) are being
searched.

HTH,
Dave

On Sun, Sep 18, 2011 at 12:54 PM, Anthony J. Bentley
anthonyjbentley@gmail.com wrote:

Hi,

I am attempting to build Avogadro on OpenBSD 5.0. During the compile,
I get this error:

In file included from /usr/local/include/X11/qt4/QtOpenGL/QGLWidget:1,
from
/usr/ports/pobj/avogadro-1.0.3/avogadro-1.0.3/libavogadro/src/glwidget.h:35,
from
/usr/ports/pobj/avogadro-1.0.3/avogadro-1.0.3/libavogadro/src/camera.cpp:26:
/usr/local/include/X11/qt4/QtOpenGL/qgl.h:77:20: error: GL/gl.h: No
such file or directory
/usr/local/include/X11/qt4/QtOpenGL/qgl.h:79:23: error: GL/glu.h: No
such file or directory

It looks like it is not finding the GL headers, which are located at
/usr/X11R6/include/GL/gl.h and /usr/X11R6/include/GL/glu.h.

How can I tell the build to look in the right directory for these headers?


Thanks,
Anthony J. Bentley


BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
http://p.sf.net/sfu/rim-devcon-copy2


Avogadro-devel mailing list
Avogadro-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/avogadro-devel

On Tue, Sep 20, 2011 at 10:43 AM, David Lonie loniedavid@gmail.com wrote:

Hi Anthony,

Run “make VERBOSE=1”, and look at the gcc/g++ commands that are being
executed to see what include dirs ("-I/include/path) are being
searched.

HTH,
Dave

On Sun, Sep 18, 2011 at 12:54 PM, Anthony J. Bentley
anthonyjbentley@gmail.com wrote:

Hi,

I am attempting to build Avogadro on OpenBSD 5.0. During the compile,
I get this error:

In file included from /usr/local/include/X11/qt4/QtOpenGL/QGLWidget:1,
from
/usr/ports/pobj/avogadro-1.0.3/avogadro-1.0.3/libavogadro/src/glwidget.h:35,
from
/usr/ports/pobj/avogadro-1.0.3/avogadro-1.0.3/libavogadro/src/camera.cpp:26:
/usr/local/include/X11/qt4/QtOpenGL/qgl.h:77:20: error: GL/gl.h: No
such file or directory
/usr/local/include/X11/qt4/QtOpenGL/qgl.h:79:23: error: GL/glu.h: No
such file or directory

It looks like it is not finding the GL headers, which are located at
/usr/X11R6/include/GL/gl.h and /usr/X11R6/include/GL/glu.h.

I suspect we missed a call to include_directories somewhere, I will take a look.

Marcus