[GRASS-user] configure no longer finds opengl
Seb
spluque at gmail.com
Sun Oct 7 17:29:49 EDT 2007
On Sun, 7 Oct 2007 22:00:05 +0100,
Glynn Clements <glynn at gclements.plus.com> wrote:
[...]
> The config.log file is called config.log, not config_log.txt.
Ok, my config_log.txt is a log of the messages received during configure.
It's harder for me to understand the config.log, but here is what I think
are the relevant lines:
,-----[ tail -n 70 /usr/local/src/grass-cvs/config.log ]
| ; return 0; }
| configure:10878: checking whether to use SQLite
| configure:11108: checking whether to use FFMPEG
| configure:11345: checking whether to use OpenGL
| configure:11379: checking for location of OpenGL includes
| configure:11405: checking for GL/gl.h
| configure:11413: gcc -E -I/usr/include/GL conftest.c >/dev/null 2>conftest.out
| configure:11405: checking for GL/glu.h
| configure:11413: gcc -E -I/usr/include/GL conftest.c >/dev/null 2>conftest.out
| configure:11447: checking for location of OpenGL library
| configure:11476: checking for glBegin in -lGL
| configure:11493: gcc -o conftest -g -Wall -L/usr/lib64 -Wl,--export-dynamic -L/usr/lib64 conftest.c -lGL -lSM -lICE -lX11 -lm 1>&5
| /usr/bin/ld: cannot find -lGL
| collect2: ld returned 1 exit status
| configure: failed program was:
| #line 11482 "configure"
| #include "confdefs.h"
| /* Override any gcc2 internal prototype to avoid an error. */
| /* We use char because int might match the return type of a gcc2
| builtin and then its argument prototype would still apply. */
| char glBegin();
|
| int main() {
| glBegin()
| ; return 0; }
| configure:11512: checking for glBegin in -lGL
| configure:11529: gcc -o conftest -g -Wall -L/usr/lib64 -Wl,--export-dynamic -L/usr/lib64 conftest.c -lGL -lSM -lICE -lX11 -lm -lXext 1>&5
| /usr/bin/ld: cannot find -lGL
| collect2: ld returned 1 exit status
| configure: failed program was:
| #line 11518 "configure"
| #include "confdefs.h"
| /* Override any gcc2 internal prototype to avoid an error. */
| /* We use char because int might match the return type of a gcc2
| builtin and then its argument prototype would still apply. */
| char glBegin();
|
| int main() {
| glBegin()
| ; return 0; }
| configure:11548: checking for glBegin in -lGL
| configure:11565: gcc -o conftest -g -Wall -L/usr/lib64 -Wl,--export-dynamic -L/usr/lib64 conftest.c -lGL -lSM -lICE -lX11 -lm -lpthread 1>&5
| /usr/bin/ld: cannot find -lGL
| collect2: ld returned 1 exit status
| configure: failed program was:
| #line 11554 "configure"
| #include "confdefs.h"
| /* Override any gcc2 internal prototype to avoid an error. */
| /* We use char because int might match the return type of a gcc2
| builtin and then its argument prototype would still apply. */
| char glBegin();
|
| int main() {
| glBegin()
| ; return 0; }
| configure:11584: checking for glBegin in -lGL
| configure:11601: gcc -o conftest -g -Wall -L/usr/lib64 -Wl,--export-dynamic -L/usr/lib64 conftest.c -lGL -lSM -lICE -lX11 -lm -lpthread -lXext 1>&5
| /usr/bin/ld: cannot find -lGL
| collect2: ld returned 1 exit status
| configure: failed program was:
| #line 11590 "configure"
| #include "confdefs.h"
| /* Override any gcc2 internal prototype to avoid an error. */
| /* We use char because int might match the return type of a gcc2
| builtin and then its argument prototype would still apply. */
| char glBegin();
|
| int main() {
| glBegin()
| ; return 0; }
`-----
My exact call to configure is:
CFLAGS="-g -Wall" ./configure --enable-64bit --with-libs=/usr/lib64 \
--with-tcltk-includes=/usr/include/tcl8.4 --with-readline --with-cxx \
--with-odbc --with-mysql --with-mysql-includes=/usr/include/mysql \
--with-postgres --with-postgres-includes=/usr/include/postgresql \
--with-proj-share=/usr/share/proj --with-motif \
--with-freetype --with-freetype-includes=/usr/include/freetype2 \
2>&1 | tee config_log.txt
> As Brad says, we can't help you without seeing the relevant portion of
> config.log.
> BTW: OpenGL includes are in /usr/include, not /usr/include/GL. The
> leading GL/ is part of the header name, so you need to specify the
> directory containing the GL subdirectory. But /usr/include is searched
> automatically, so there's no need to specify it (on some systems, doing
> so can break compilation).
I tried both with and without specifying it, but that didn't seem to make
a difference. Thanks.
--
Seb
More information about the grass-user
mailing list