PDA

View Full Version : Problem with compilation.


phini
November 20th, 2006, 04:03 PM
Hello everyone :)
I have a problem with compilation. I've tried some older versions of compiz, and I always get the same error(s):

blueice root {/tmp/compiz} # make
make all-recursive
make[1]: Wejście do katalogu `/tmp/compiz'
Making all in include
make[2]: Wejście do katalogu `/tmp/compiz/include'
make[2]: Nie ma nic do zrobienia w `all'.
make[2]: Opuszczenie katalogu `/tmp/compiz/include'
Making all in src
make[2]: Wejście do katalogu `/tmp/compiz/src'
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/libpng12 -I/usr/include/start
up-notification-1.0 -I../include -DPLUGINDIR=\"/opt/Xgl/lib/compiz\" -DIMAGEDIR=
\"/opt/Xgl/share/compiz\" -g -O2 -Wall -Wpointer-arith -Wstrict-prototypes -W
missing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing
-MT texture.o -MD -MP -MF ".deps/texture.Tpo" -c -o texture.o texture.c; \
then mv -f ".deps/texture.Tpo" ".deps/texture.Po"; else rm -f ".deps/tex
ture.Tpo"; exit 1; fi
texture.c: In function 'bindPixmapToTexture':
texture.c:239: error: 'GLX_TEXTURE_FORMAT_EXT' undeclared (first use in this fun
ction)
texture.c:239: error: (Each undeclared identifier is reported only once
texture.c:239: error: for each function it appears in.)
texture.c:240: error: 'GLX_MIPMAP_TEXTURE_EXT' undeclared (first use in this fun
ction)
texture.c:266: error: 'GLX_TEXTURE_TARGET_EXT' undeclared (first use in this fun
ction)
texture.c:267: warning: passing argument 3 of 'screen->queryDrawable' makes inte
ger from pointer without a cast
texture.c:269: error: 'GLX_TEXTURE_2D_EXT' undeclared (first use in this functio
n)
texture.c:284: error: 'GLX_TEXTURE_RECTANGLE_EXT' undeclared (first use in this
function)
texture.c:284: error: duplicate case value
texture.c:269: error: previously used here
texture.c:318: error: 'GLX_FRONT_LEFT_EXT' undeclared (first use in this functio
n)
texture.c:319: warning: passing argument 3 of 'screen->bindTexImage' makes integ
er from pointer without a cast
texture.c: In function 'releasePixmapFromTexture':
texture.c:350: error: 'GLX_FRONT_LEFT_EXT' undeclared (first use in this functio
n)
texture.c:350: warning: passing argument 3 of 'screen->releaseTexImage' makes in
teger from pointer without a cast
texture.c: In function 'enableTexture':
texture.c:374: error: 'GLX_FRONT_LEFT_EXT' undeclared (first use in this functio
n)
texture.c:375: warning: passing argument 3 of 'screen->bindTexImage' makes integ
er from pointer without a cast
texture.c: In function 'disableTexture':
texture.c:454: error: 'GLX_FRONT_LEFT_EXT' undeclared (first use in this functio
n)
texture.c:454: warning: passing argument 3 of 'screen->releaseTexImage' makes in
teger from pointer without a cast
make[2]: *** [texture.o] Error 1
make[2]: Leaving `/tmp/compiz/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving `/tmp/compiz'
make: *** [all] Error 2

Mesa 6.5.1
Compiz - current version on git.

RYX
November 20th, 2006, 04:58 PM
Hi, phini! It looks like he can't find glx, but I don't really see what's wrong and apparently there are no dev-headers missing. Maybe you should first try the latest "development" version from go-compiz.org. Those versions should be prefered over the git-version. If you have the same problem with the other version (0.3.2) you most likely miss some packages ... report any problems here.

Edit: Can you please add what distribution are you using?

:)

mikedee
November 20th, 2006, 05:15 PM
GLX_TEXTURE_FORMAT_EXT is defined in compiz.h and also in GL/glxtokens.h. Compiz doesnt include GL/glxtokens.h so it doesnt seem like a dependency problem.

Check that GLX_TEXTURE_FORMAT_EXT is in the include/compiz.h file, if not then try a clean checkout, maybe compiz.h is an old version. You have the -I../include/ so it should be picking up the correct header file. Check that there isnt a compiz.h floating around in any of these directories (src, compiz, /usr/include/libpng12, /usr/include/startup-notification-1.0)

RYX
November 20th, 2006, 05:17 PM
Maybe it helps to wipe out all existing compiz (installed, source, git) on your drive and then starting over from a clean install. As mikedee says - it doesnt seem like a dependency problem (because make doesn't complain about missing headers) ...

phini
November 20th, 2006, 05:25 PM
Hi! I found the solution: older Mesa (6.4.2) and now everything works(compiles) fine. Thanks for replies!
PS: I'm using KateOS (http://www.kateos.org/).
Cheers :D
PSS: Sorry for the problem :)