[patch] missing include on ubuntu precise and probably fedora 16

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[patch] missing include on ubuntu precise and probably fedora 16

chrysn
hi openscad devs,

openscad fails to build on ubuntu precise with the following error
message:

objects/glview.o: In function `GLView::initializeGL()':
/build/buildd/openscad-2011.12/src/glview.cc:284: undefined reference to
`gluErrorString'

it seems that something included there used to pull in GL/glu.h but does
not do so any more. from [1], i assume that fedora 16 is affected too.

the patch attached adds a GL/glu include to all files that use glu
calls (mostly gluErrorString, sometimes gluLookAt).

[1] https://github.com/MythTV/mythtv/pull/13

--
To use raw power is to make yourself infinitely vulnerable to greater powers.
  -- Bene Gesserit axiom

glu.patch (2K) Download Attachment
signature.asc (836 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [patch] missing include on ubuntu precise and probably fedora 16

kintel
Administrator
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Feb 22, 2012, at 11:37 AM, chrysn wrote:

> it seems that something included there used to pull in GL/glu.h but does
> not do so any more. from [1], i assume that fedora 16 is affected too.
>
Thanks - I added it to system-gl.h.

- -Marius

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org

iEYEARECAAYFAk9E5vIACgkQF4TaqdSZNKRsaQCfR2T672jKcwT2Csx/DzXjuvL/
IUoAniRihrUZxKz2ShtmcDlzZPPpT7La
=kKD7
-----END PGP SIGNATURE-----