gtkgraph-0.6.2 not working
I am trying to install gtkgraph-0.6.2, but when i try to "make" it, it gives some errors :
student@student-desktop:~/Desktop/gtkgraph-0.6.2$ make make all-recursive make[1]: Entering directory `/home/student/Desktop/gtkgraph-0.6.2' Making all in intl make[2]: Entering directory `/home/student/Desktop/gtkgraph-0.6.2/intl' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/home/student/Desktop/gtkgraph-0.6.2/intl' Making all in src make[2]: Entering directory `/home/student/Desktop/gtkgraph-0.6.2/src' gcc -DHAVE_CONFIG_H -I. -I. -I.. -DLOCALEDIR=\"\" -DLIBDIR=\"/usr/local/lib\" -I../intl -I./../lib -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -O2 -Wall -c main.c main.c: In function ‘set_error’: main.c:102: warning: implicit declaration of function ‘strlen’ main.c:102: warning: incompatible implicit declaration of built-in function ‘strlen’ main.c:112: warning: incompatible implicit declaration of built-in function ‘strlen’ main.c: At top level: main.c:566: fatal error: opening dependency file .deps/main.pp: No such file or directory compilation terminated. make[2]: *** [main.o] Error 1 make[2]: Leaving directory `/home/student/Desktop/gtkgraph-0.6.2/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/student/Desktop/gtkgraph-0.6.2' make: *** [all-recursive-am] Error 2 i have tried with the older version also but same error was there. I am using ubuntu 8.04 Please help me . Regards sunit verma |
Welcome to LQ.
The gtkgraph-0.6.2 source code is 10 years old. 'gtkgraph' is still available for Mandriva, PCLinuxOS, i.e. there is a patch fixing the code for a modern Linux. http://spout.ussg.indiana.edu/linux/...os2007.src.rpm > > gtkgraph-0.6.2-8pclos2007.src.rpm Unpack with : rpm2cpio gtkgraph-0.6.2-8pclos2007.src.rpm | cpio -idmv .. which provides .. gtkgraph-0.6.1-configure.in-fix.optflags.patch.bz2 Extract the patch and copy it into gtkgraph-0.6.2/ 1) cd gtkgraph-0.6.2/ 2) make distclean ( only if you are reusing the gtkgraph-0.6.2/ from your first try.) 3) patch -p1 < gtkgraph-0.6.1-configure.in-fix.optflags.patch 4) ./configure && make ..... |
I tried as you said but still the same error is coming :
student@student-desktop:~/Desktop/gtkgraph-0.6.2$ make make all-recursive make[1]: Entering directory `/home/student/Desktop/gtkgraph-0.6.2' Making all in intl make[2]: Entering directory `/home/student/Desktop/gtkgraph-0.6.2/intl' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/home/student/Desktop/gtkgraph-0.6.2/intl' Making all in src make[2]: Entering directory `/home/student/Desktop/gtkgraph-0.6.2/src' gcc -DHAVE_CONFIG_H -I. -I. -I.. -DLOCALEDIR=\"\" -DLIBDIR=\"/usr/local/lib\" -I../intl -I./../lib -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -g -O2 -Wall -c main.c main.c: In function ‘set_error’: main.c:102: warning: implicit declaration of function ‘strlen’ main.c:102: warning: incompatible implicit declaration of built-in function ‘strlen’ main.c:112: warning: incompatible implicit declaration of built-in function ‘strlen’ main.c: At top level: main.c:566: fatal error: opening dependency file .deps/main.pp: No such file or directory compilation terminated. make[2]: *** [main.o] Error 1 make[2]: Leaving directory `/home/student/Desktop/gtkgraph-0.6.2/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/student/Desktop/gtkgraph-0.6.2' make: *** [all-recursive-am] Error 2 what am i supposed to do now ? regards, sunit verma |
Ubuntu 8.04.1 Hardy .. .. gtkgraph
sudo apt-get install gdk-imlib11-dev imlib11-dev libgtk1.2-dev
And suggest : Start from scratch , example : .. make a new folder in /home/"username"/ : mkdir 4 cp gtkgraph-0.6.2-8pclos2007.src.rpm 4/ cd 4/ rpm2cpio gtkgraph-0.6.2-8pclos2007.src.rpm | cpio -idmv tar xvf gtkgraph-0.6.2.tar.bz2 bzip2 -d gtkgraph-0.6.1-configure.in-fix.optflags.patch.bz2 mv gtkgraph-0.6.1-configure.in-fix.optflags.patch gtkgraph-0.6.2/ cd gtkgraph-0.6.2/ patch -p1 < gtkgraph-0.6.1-configure.in-fix.optflags.patch ./configure && make .. no errors .. using gcc version 4.2.4 The command 'gcc -v' will tell, what you have. Quote:
up the Makefile etc., may be try : cp main.P main.pp ..... |
Thank you now i am able to compile it. but when i am trying to run the object file, it is showing gui with graph and some option keys. these keys do not have the labels which is creating problem to recognize their functions.
Can you please look into this matter ? Regards, sunit verma |
I think it looks OK here.
Also on other Linux's. The image is from PCLinuxOS 2009.2. ..... http://i390.photobucket.com/albums/o...-04-112826.jpg http://i390.photobucket.com/albums/o...g?t=1265370103 |
gtkgraph
1 Attachment(s)
I am using ubuntu 8.04 hardy version. but i am unable to get the labels and also get segmentation fault error when i click on button for "bold" in "set title".
I have attached screenshot of gtkgraph which i am getting on my screen. regards, sunit verma |
1 Attachment(s)
Please read post # 4 : I created gtkgraph-0.6.2 on Ubuntu Hardy.
Are you sure, you have all dependencies installed ? 'ldd gtkgraph' : libgtk-1.2.so.0 libgdk-1.2.so.0 libgdk_imlib.so.2 libgmodule-1.2.so.0 libglib-1.2.so.0 libXau.so.6 libxcb-xlib.so.0 libxcb.so.1 libXdmcp.so.6 libXi.so.6 libXext.so.6 libX11.so.6 libm.so.6 .. which should all be present in /usr/lib/ ( /lib/ ). You could try out the result, I made : Click my name. send an email, and I will attach files to a return mail. ..... |
Email from @sunitverma :
"" I have install all the libraries for gtkgraphs but could not install "libgmodule-1.2.so.0". I have checked in internet but did not find it. "" ..... ..... 'libgmodule-1.2.so.0' is the in package 'libglib1.2ldbl' : sudo apt-get install libglib1.2ldbl libglib1.2-dev http://packages.ubuntu.com/hardy/i38...2ldbl/filelist Search = libglib1.2 ubuntu http://www.google.com/webhp#hl=en&q=...3c88006b48283c > > http://packages.ubuntu.com/hardy/libglib1.2ldbl ..... |
All times are GMT -5. The time now is 07:42 PM. |