You are not logged in.

#1 2012-11-01 01:29:14

Diadara
Member
Registered: 2012-09-10
Posts: 11

OpenGL libraries missing

I am getting this conmpilation error when trying to compile an opengl program ,i am new to this and starting out with the hellow world.I have multilib enabled and seems to have installed all the usual suspects .

GL/glu.h: No such file or directory

Which package provides these headers Or do I have to manually get them ?

Offline

#2 2012-11-01 01:36:34

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,554
Website

Re: OpenGL libraries missing

$ pkgfile glu.h
extra/fltk
extra/glu
community/arm-wince-cegcc-w32api
community/cuda
community/mingw32-w32api

I'd go with the second one - hopefully obviously.

Last edited by Trilby (2012-11-01 01:37:22)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2012-11-01 02:03:58

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: OpenGL libraries missing

Just to add to what Trilby posted, please read our FAQ: https://wiki.archlinux.org/index.php/FA … is_X_in.3F

Offline

#4 2012-11-01 13:56:43

GordonGR
Member
From: Thessaloniki, Greece
Registered: 2011-11-07
Posts: 276

Re: OpenGL libraries missing

glu/lib32-glu is a new package introduced in Mesa 9. Before that, the Glu funtionality was packaged in mesa/lib32-mesa. So the rule of thumb is: if an opengl package that used to work under Mesa 8 doesn't now, just install glu.


Intel(R) Celeron(R) CPU E3400 @ 2.60GHz, x86_64. AURs.

“No one without the knowledge of geometry may enter.“ Plato.

Offline

#5 2012-11-05 00:35:40

Diadara
Member
Registered: 2012-09-10
Posts: 11

Re: OpenGL libraries missing

Sorry for late reply ,I have both extra/glu and multilib/lib32-glu installed already ,i still dont have glu.h the file in include/GL What am I missing ?
EDIT: I instaled the first fltk package ,that seemed to get glu.h,but why is there nno glu.h in glu in the first place ?

Last edited by Diadara (2012-11-05 00:54:59)

Offline

#6 2012-11-05 00:59:14

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,554
Website

Re: OpenGL libraries missing

Glu must not be properly installed.  /usr/include/GL/glu.h is in extra/glu.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#7 2013-01-03 18:07:54

mynis01
Member
Registered: 2011-04-29
Posts: 72

Re: OpenGL libraries missing

I was having this same problem for a few hours and was trying different things to resolve it. Uninstalling and reinstalling glu didn't work. What eventually fixed it was reinstalling glu without uninstalling it first. Just doing a simple

pacman -S glu

while having glu already installed worked. No idea why it won't work on a fresh install, but that's what fixed it. Hope that helps anyone else that runs into this problem in the future.

Offline

Board footer

Powered by FluxBB