Missing glew.h on compile
#1
Hi All,

I am trying to compile pvr-testing2 on my laptop and am coming un-stuck with this error:

Quote:[bmentink@Laptop2 pvr-testing2]$ make
make xbmc/cores/DllLoader/exports/exports.a
make[1]: Entering directory `/home/bmentink/Builds/xbmc/pvr-testing2'
make -C xbmc/cores/DllLoader/exports
make[2]: Entering directory `/home/bmentink/Builds/xbmc/pvr-testing2/xbmc/cores/DllLoader/exports'
g++ -MD -c -fPIC -DPIC -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -g -D_DEBUG -Wall -O2 -D_LINUX -D_FILE_DEFINED -D__STDC_CONSTANT_MACROS -DBIN_INSTALL_PATH="\"/usr/local/lib/xbmc\"" -DINSTALL_PATH="\"/usr/local/share/xbmc\"" -DHAS_SDL_JOYSTICK -D'SVN_REV="32871"' -DHAVE_CONFIG_H -I. -I../../../ -I../../../linux -I../../../../guilib -DDBUS_API_SUBJECT_TO_CHANGE -D_GNU_SOURCE=1 -D_REENTRANT -I/home/bmentink/Builds/xbmc/pvr-testing2 -I/usr/include/ -I/usr/include/SDL -I/usr/include/alsa -I/usr/include/dbus-1.0 -I/usr/include/freetype2 -I/usr/include/fribidi -I/usr/include/glib-2.0 -I/usr/include/hal -I/usr/include/libpng14 -I/usr/include/lzo -I/usr/include/mysql -I/usr/lib/dbus-1.0/include -I/usr/lib/glib-2.0/include emu_kernel32.cpp -o emu_kernel32.o
In file included from emu_kernel32.h:26:0,
from emu_kernel32.cpp:22:
../../../../guilib/system.h:237:21: fatal error: GL/glew.h: No such file or directory
compilation terminated.
make[2]: *** [emu_kernel32.o] Error 1
make[2]: Leaving directory `/home/bmentink/Builds/xbmc/pvr-testing2/xbmc/cores/DllLoader/exports'
make[1]: *** [xbmc/cores/DllLoader/exports/exports.a] Error 2
make[1]: Leaving directory `/home/bmentink/Builds/xbmc/pvr-testing2'
make: *** [exports] Error 2

I have glew installed ok, i.e

Quote:[bmentink@Laptop2 pvr-testing2]$ yaourt -Ss glew
extra/glew 1.5.2-1 [installed]
A cross-platform C/C++ extension loading library

Anyone know how to resolve this one?

Thanks,
Reply
#2
glew-dev maybe. you need the -dev to get the headers.
Reply
#3
davilla Wrote:glew-dev maybe. you need the -dev to get the headers.

Hmmm, there is no glew-dev in Archlinux, arch normally includes all the dev headers in the normal packages ..

Thanks anyway Big Grin
Reply
#4
sudo find / -name glew.h

see where it is located.
Reply
#5
On my TV (which does compile) I have it in /usr/include/GL/glew.h

On my laptop, I only see it in: /home/bmentink/Builds/xbmc/pvr-testing2/xbmc/visualizations/XBMCProjectM/libprojectM/glew.h

I don't remember what I did on my TV to resolve this ??

Cheers,
Bernie
Reply
#6
bmentink Wrote:On my TV (which does compile) I have it in /usr/include/GL/glew.h

On my laptop, I only see it in: /home/bmentink/Builds/xbmc/pvr-testing2/xbmc/visualizations/XBMCProjectM/libprojectM/glew.h

I don't remember what I did on my TV to resolve this ??

Cheers,
Bernie

ergo, "yaourt -Ss glew" did not install dev headers.
Reply
#7
Ah, but when I find out who owns glew.h I get

Quote:pacman -Qo /usr/include/GL/glew.h
/usr/include/GL/glew.h is owned by glew 1.5.2-1

Yet I have installed the same package glew 1.5.2-1 on the laptopHuh

I think I will try to force a re-install of that package ..

Cheers,
Reply
#8
... and a re-install did the trick ... don't ask me where the missing file went??
Reply

Logout Mark Read Team Forum Stats Members Help
Missing glew.h on compile0