我初学linux
安装的是chm阅读器
./configure
显示
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for a BSD-compatible install... /usr/bin/install -c
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for unistd.h... (cached) yes
checking math.h usability... yes
checking math.h presence... yes
checking for math.h... yes
checking for stdlib.h... (cached) yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking ft2build.h usability... no
checking ft2build.h presence... no
checking for ft2build.h... no
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for socket... yes
checking for poll... yes
checking "for SDL support"... "yes"
checking "for glut support"... "no"
configure: creating ./config.status
config.status: creating Makefile
config.status: creating foobillard.spec
config.status: creating foobillard-SDL.spec
config.status: creating src/Makefile
config.status: creating data/Makefile
config.status: creating src/config.h
config.status: src/config.h is unchanged
config.status: executing depfiles commands
输入make
Making all in src
make[1]: Entering directory `/root/foobillard-3.0a/src'
make all-am
make[2]: Entering directory `/root/foobillard-3.0a/src'
gcc -Wall `freetype-config --cflags` `sdl-config --cflags` -DUSE_SDL -DUSE_SOUND -g -O2 `freetype-config --libs` `sdl-config --libs` -o foobillard billard3d.o billmove.o billard.o vmath.o ball.o png_loader.o table.o queue.o aiplayer.o options.o evaluate_move.o helpscreen.o textobj.o font.o sys_stuff.o net_socket.o sound_stuff.o menu.o bumpref.o -lSM -lICE -L/usr/X11R6/lib -lGL -lGLU -lXaw -lm -lXi -lpng -lz
ball.o(.text+0x3580): In function `draw_balls':
/root/foobillard-3.0a/src/ball.c:1828: undefined reference to `glProgramParameter4fNV'
ball.o(.text+0x3ba4):/root/foobillard-3.0a/src/ball.c:1796: undefined reference
to `glTrackMatrixNV'
ball.o(.text+0x3bbd):/root/foobillard-3.0a/src/ball.c:1797: undefined reference
to `glTrackMatrixNV'
ball.o(.text+0x3bd3):/root/foobillard-3.0a/src/ball.c:1798: undefined reference
to `glTrackMatrixNV'
ball.o(.text+0x3c01):/root/foobillard-3.0a/src/ball.c:1800: undefined reference
to `glProgramParameter4fNV'
ball.o(.text+0x3c2a):/root/foobillard-3.0a/src/ball.c:1808: undefined reference
to `glBindProgramNV'
ball.o(.text+0x3e9f):/root/foobillard-3.0a/src/ball.c:1581: undefined reference
to `glGenProgramsNV'
ball.o(.text+0x3eb1):/root/foobillard-3.0a/src/ball.c:1582: undefined reference
to `glBindProgramNV'
ball.o(.text+0x3edb):/root/foobillard-3.0a/src/ball.c:1583: undefined reference
to `glLoadProgramNV'
bumpref.o(.text+0x967): In function `bumpref_setup_vp_ts_rc':
/root/foobillard-3.0a/src/bumpref.c:445: undefined reference to `glTrackMatrixNV'
bumpref.o(.text+0x980):/root/foobillard-3.0a/src/bumpref.c:446: undefined reference to `glTrackMatrixNV'
bumpref.o(.text+0x9a9):/root/foobillard-3.0a/src/bumpref.c:447: undefined reference to `glProgramParameter4fNV'
bumpref.o(.text+0x9b9):/root/foobillard-3.0a/src/bumpref.c:453: undefined reference to `glBindProgramNV'
bumpref.o(.text+0xc82):/root/foobillard-3.0a/src/bumpref.c:435: undefined reference to `glGenProgramsNV'
bumpref.o(.text+0xc91):/root/foobillard-3.0a/src/bumpref.c:436: undefined reference to `glBindProgramNV'
bumpref.o(.text+0xcb:/root/foobillard-3.0a/src/bumpref.c:437: undefined reference to `glLoadProgramNV'
bumpref.o(.text+0xebf): In function `bump_setup_vp_rc':
/root/foobillard-3.0a/src/bumpref.c:733: undefined reference to `glGenProgramsNV'
bumpref.o(.text+0xece):/root/foobillard-3.0a/src/bumpref.c:734: undefined reference to `glBindProgramNV'
bumpref.o(.text+0xef5):/root/foobillard-3.0a/src/bumpref.c:735: undefined reference to `glLoadProgramNV'
bumpref.o(.text+0xf25):/root/foobillard-3.0a/src/bumpref.c:742: undefined reference to `glTrackMatrixNV'
bumpref.o(.text+0xf3e):/root/foobillard-3.0a/src/bumpref.c:743: undefined reference to `glTrackMatrixNV'
bumpref.o(.text+0xf62):/root/foobillard-3.0a/src/bumpref.c:744: undefined reference to `glProgramParameter4fNV'
bumpref.o(.text+0xf84):/root/foobillard-3.0a/src/bumpref.c:746: undefined reference to `glProgramParameter4fNV'
bumpref.o(.text+0xf94):/root/foobillard-3.0a/src/bumpref.c:747: undefined reference to `glBindProgramNV'
bumpref.o(.text+0x1604): In function `bump_set_light':
/root/foobillard-3.0a/src/bumpref.c:1130: undefined reference to `glProgramParameter4fNV'
bumpref.o(.text+0x16f2): In function `bump_use':
/root/foobillard-3.0a/src/bumpref.c:1179: undefined reference to `glProgramParameter4fNV'
collect2: ld returned 1 exit status
make[2]: *** [foobillard] Error 1
make[2]: Leaving directory `/root/foobillard-3.0a/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/foobillard-3.0a/src'
make: *** [all-recursive] Error 1
输入make install
[root@gotostool foobillard-3.0a]# make install
Making install in src
make[1]: Entering directory `/root/foobillard-3.0a/src'
gcc -Wall `freetype-config --cflags` `sdl-config --cflags` -DUSE_SDL -DUSE_SOUND -g -O2 `freetype-config --libs` `sdl-config --libs` -o foobillard billard3d.o billmove.o billard.o vmath.o ball.o png_loader.o table.o queue.o aiplayer.o options.o evaluate_move.o helpscreen.o textobj.o font.o sys_stuff.o net_socket.o sound_stuff.o menu.o bumpref.o -lSM -lICE -L/usr/X11R6/lib -lGL -lGLU -lXaw -lm -lXi -lpng -lz
ball.o(.text+0x3580): In function `draw_balls':
/root/foobillard-3.0a/src/ball.c:1828: undefined reference to `glProgramParameter4fNV'
ball.o(.text+0x3ba4):/root/foobillard-3.0a/src/ball.c:1796: undefined reference
to `glTrackMatrixNV'
ball.o(.text+0x3bbd):/root/foobillard-3.0a/src/ball.c:1797: undefined reference
to `glTrackMatrixNV'
ball.o(.text+0x3bd3):/root/foobillard-3.0a/src/ball.c:1798: undefined reference
to `glTrackMatrixNV'
ball.o(.text+0x3c01):/root/foobillard-3.0a/src/ball.c:1800: undefined reference
to `glProgramParameter4fNV'
ball.o(.text+0x3c2a):/root/foobillard-3.0a/src/ball.c:1808: undefined reference
to `glBindProgramNV'
ball.o(.text+0x3e9f):/root/foobillard-3.0a/src/ball.c:1581: undefined reference
to `glGenProgramsNV'
ball.o(.text+0x3eb1):/root/foobillard-3.0a/src/ball.c:1582: undefined reference
to `glBindProgramNV'
ball.o(.text+0x3edb):/root/foobillard-3.0a/src/ball.c:1583: undefined reference
to `glLoadProgramNV'
bumpref.o(.text+0x967): In function `bumpref_setup_vp_ts_rc':
/root/foobillard-3.0a/src/bumpref.c:445: undefined reference to `glTrackMatrixNV'
bumpref.o(.text+0x980):/root/foobillard-3.0a/src/bumpref.c:446: undefined reference to `glTrackMatrixNV'
bumpref.o(.text+0x9a9):/root/foobillard-3.0a/src/bumpref.c:447: undefined reference to `glProgramParameter4fNV'
bumpref.o(.text+0x9b9):/root/foobillard-3.0a/src/bumpref.c:453: undefined reference to `glBindProgramNV'
bumpref.o(.text+0xc82):/root/foobillard-3.0a/src/bumpref.c:435: undefined reference to `glGenProgramsNV'
bumpref.o(.text+0xc91):/root/foobillard-3.0a/src/bumpref.c:436: undefined reference to `glBindProgramNV'
bumpref.o(.text+0xcb:/root/foobillard-3.0a/src/bumpref.c:437: undefined reference to `glLoadProgramNV'
bumpref.o(.text+0xebf): In function `bump_setup_vp_rc':
/root/foobillard-3.0a/src/bumpref.c:733: undefined reference to `glGenProgramsNV'
bumpref.o(.text+0xece):/root/foobillard-3.0a/src/bumpref.c:734: undefined reference to `glBindProgramNV'
bumpref.o(.text+0xef5):/root/foobillard-3.0a/src/bumpref.c:735: undefined reference to `glLoadProgramNV'
bumpref.o(.text+0xf25):/root/foobillard-3.0a/src/bumpref.c:742: undefined reference to `glTrackMatrixNV'
bumpref.o(.text+0xf3e):/root/foobillard-3.0a/src/bumpref.c:743: undefined reference to `glTrackMatrixNV'
bumpref.o(.text+0xf62):/root/foobillard-3.0a/src/bumpref.c:744: undefined reference to `glProgramParameter4fNV'
bumpref.o(.text+0xf84):/root/foobillard-3.0a/src/bumpref.c:746: undefined reference to `glProgramParameter4fNV'
bumpref.o(.text+0xf94):/root/foobillard-3.0a/src/bumpref.c:747: undefined reference to `glBindProgramNV'
bumpref.o(.text+0x1604): In function `bump_set_light':
/root/foobillard-3.0a/src/bumpref.c:1130: undefined reference to `glProgramParameter4fNV'
bumpref.o(.text+0x16f2): In function `bump_use':
/root/foobillard-3.0a/src/bumpref.c:1179: undefined reference to `glProgramParameter4fNV'
collect2: ld returned 1 exit status
make[1]: *** [foobillard] Error 1
make[1]: Leaving directory `/root/foobillard-3.0a/src'
make: *** [install-recursive] Error 1