Bug 33676 - glew version not detected correctly for cmake/autotools build systems. (WAS: cmake build fail)
Summary: glew version not detected correctly for cmake/autotools build systems. (WAS:...
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Demos (show other bugs)
Version: git
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: mesa-dev
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-28 23:49 UTC by Andrew Randrianasulu
Modified: 2012-09-19 17:25 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Andrew Randrianasulu 2011-01-28 23:49:06 UTC
Using git checkout commit c1be1ce356e9cdedec558c503d6c74e6e1913d9f
("tri-clear: fix redrawing") and gcc (GCC) 4.4.4 (as in Slackware-13.1) / cmake version 2.8.1 i see this compilation failure:

guest@slax:/mnt/sda3/src/demos$ LANG=C make
[  0%] Building C object src/util/CMakeFiles/util.dir/shaderutil.c.o
/mnt/sda3/src/demos/src/util/shaderutil.c:45: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fake_ValidateProgram'
/mnt/sda3/src/demos/src/util/shaderutil.c: In function 'ShadersSupported':
/mnt/sda3/src/demos/src/util/shaderutil.c:67: error: 'fake_ValidateProgram' undeclared (first use in this function)
/mnt/sda3/src/demos/src/util/shaderutil.c:67: error: (Each undeclared identifier is reported only once
/mnt/sda3/src/demos/src/util/shaderutil.c:67: error: for each function it appears in.)
make[2]: *** [src/util/CMakeFiles/util.dir/shaderutil.c.o] Error 1
make[1]: *** [src/util/CMakeFiles/util.dir/all] Error 2
make: *** [all] Error 2
Comment 1 Andrew Randrianasulu 2011-01-28 23:57:54 UTC
and  i have glew-1.5.1-i486-1.txz installed .... Initially i tried to just use ./configure (and it complained about missing glew). Then it run OK and build few demos, but far from all. Then I run "ccmake ." in demos top dir , pressed "c" and "g" there, exit and run make. Error appear.
Comment 2 Andrew Randrianasulu 2011-01-29 12:12:54 UTC
"You'll  need  [3]glew  version  1.5.4 or later <...> " - from index.html ......

Probably, correct name for this bug then ... glew version not detected correctly for cmake/autotools build systems.
Comment 3 Andreas Boll 2012-09-19 17:25:45 UTC
Fixed with c2ae57e483c0ab596bbbb386eed8ed7213654e4d


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.