# # gaztelan.bi.ehu.es/~inigo/gcad/ # # www.student.oulu.fi/~jlof/gtkglarea GTK lib # [root@redhat src]# tar zxvf gcad-0.0.3.tar.gz # [root@redhat gcad-0.0.3]# ./autogen.sh Preparing gCAD to be configured Preparing main automake: configure.in: installing `./install-sh' automake: configure.in: installing `./mkinstalldirs' automake: configure.in: installing `./missing' configure.in: 20: required file `./ltconfig' not found automake: Makefile.am: installing `./INSTALL' # # [root@redhat gcad-0.0.3]# ./configure .... configure: error: Can't find GTKGL library. You can download it from http://www.student.oulu.fi/~jlof/gtkglarea # # # [root@redhat src]# tar zxvf gtkglarea-1.2.2.tar.gz # [root@redhat gtkglarea-1.2.2]# ./configure # [root@redhat gtkglarea-1.2.2]# make [root@redhat gtkglarea-1.2.2]# make install ---------------------------------------------------------------------- Libraries have been installed in: /usr/local/lib If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use `-LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the `LD_LIBRARY_PATH' environment variable during execution - add LIBDIR to the `LD_RUN_PATH' environment variable during linking - use the `-Wl,--rpath -Wl,LIBDIR' linker flag - have your system administrator add LIBDIR to `/etc/ld.so.conf' See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. ---------------------------------------------------------------------- # # back to compile gcad # [root@redhat gcad-0.0.3]# ./configure # [root@redhat gcad-0.0.3]# make .... In file included from zoom.c:22: /usr/include/glib.h:66: glibconfig.h: No such file or directory ... error .... [root@redhat gcad-0.0.3]# find / -name glibconfig.h -ls 109506 4 -rw-r--r-- 1 root root 3662 Feb 4 13:42 /usr/lib/glib/include/glibconfig.h # # fix the include # [root@redhat include]# cd /usr/include ; ln -s /usr/lib/glib/include/glibconfig.h . # # contine compile # [root@redhat gcad-0.0.3]# make [root@redhat gcad-0.0.3]# make install # # [root@redhat gcad-0.0.3]# gcad gcad: error in loading shared libraries: libgtkgl.so.5: cannot open shared object file: No such file or directory # # # vi /etc/ld.so.conf # /usr/local/lib add # root# ldconfig -p root# ldconfig -v root# ldconfig -p # root# gcad - no Open-GL # #