LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-20-2004, 04:24 PM   #1
slackmagic
Member
 
Registered: Aug 2003
Distribution: Slackware
Posts: 255

Rep: Reputation: 35
need help installing gkrellm plugin


hi there,

I'm having a problem when trying to install a plugin for gkrellm 2 from this website

http://www.sweb.cz/tripie/gkrellm/gamma/


Let's see if I got this right.


I downloaded the gkrellm-gamma-2.03.tar.gz file to my $HOME dir

I did tar zxvf gkrellm-gamma-2.03.tar.gz

it created a folder called gkrellm-gamma-2.03

I went inside the folder and only see these files:

Code:
-rw-r--r--    1 soldier  soldier        84 Jun 24  2003 AUTHORS
-rw-r--r--    1 soldier  soldier     17992 Mar  9  2002 COPYING
drwxr-xr-x    2 soldier  soldier      4096 Sep 14  2003 doc
-rw-r--r--    1 soldier  soldier      6887 Jul  5  2003 main.c
-rwxr-x---    1 soldier  soldier       270 Jun 24  2003 makedist.sh
-rw-r--r--    1 soldier  soldier       635 Sep 14  2003 Makefile
-rw-r--r--    1 soldier  soldier       301 Jun 24  2003 README
-rw-rw-r--    1 soldier  soldier         5 Sep 14  2003 VERSION
I tried cat README but it shows no information on how to "install" this plugin
there was nothing really useful in the doc folder either


when I attempted a make I got lots of errors


Code:
$ make
cc -O -g -Wall -fPIC `pkg-config gtk+-2.0 --cflags`  -I/usr/local/include   -c -o main.o main.c
main.c:22:30: gkrellm2/gkrellm.h: No such file or directory
main.c:33: parse error before '*' token
main.c:33: warning: type defaults to `int' in declaration of `monitor'
main.c:33: warning: data definition has no type or storage class
main.c:34: parse error before '*' token
main.c:34: warning: type defaults to `int' in declaration of `panel'
main.c:34: warning: data definition has no type or storage class
main.c:36: parse error before '*' token
main.c:36: warning: type defaults to `int' in declaration of `krell'
main.c:36: warning: data definition has no type or storage class
main.c:37: parse error before '*' token
main.c:37: warning: type defaults to `int' in declaration of `decal'
main.c:37: warning: data definition has no type or storage class
main.c: In function `set_gamma':
main.c:47: warning: implicit declaration of function `gdk_screen_get_default'
main.c:47: warning: passing arg 1 of `gdk_x11_screen_get_screen_number' makes pointer from integer without a cast
main.c: In function `get_gamma':
main.c:55: warning: passing arg 1 of `gdk_x11_screen_get_screen_number' makes pointer from integer without a cast
main.c: At top level:
main.c:63: parse error before '*' token
main.c: In function `panel_expose_event':
main.c:65: `widget' undeclared (first use in this function)
main.c:65: (Each undeclared identifier is reported only once
main.c:65: for each function it appears in.)
main.c:66: warning: implicit declaration of function `GTK_WIDGET_STATE'
main.c:67: request for member `pixmap' in something not a structure or union
main.c:68: `ev' undeclared (first use in this function)
main.c: At top level:
main.c:75: parse error before '*' token
main.c: In function `slider_motion':
main.c:83: `ev' undeclared (first use in this function)
main.c:87: request for member `full_scale' in something not a structure or union
main.c:87: warning: implicit declaration of function `gkrellm_chart_width'
main.c:92: request for member `previous' in something not a structure or union
main.c:94: warning: implicit declaration of function `gkrellm_update_krell'
main.c:102: warning: implicit declaration of function `gkrellm_draw_decal_text'
main.c:105: warning: implicit declaration of function `gkrellm_draw_panel_layers'
main.c: At top level:
main.c:109: parse error before '*' token
main.c: In function `panel_button_press':
main.c:115: `ev' undeclared (first use in this function)
main.c:117: request for member `full_scale' in something not a structure or union
main.c:127: request for member `previous' in something not a structure or union
main.c:135: request for member `previous' in something not a structure or union
main.c: In function `update_plugin':
main.c:154: request for member `previous' in something not a structure or union
main.c: At top level:
main.c:165: parse error before '*' token
main.c: In function `callback_mouse_wheel':
main.c:171: `event' undeclared (first use in this function)
main.c:184: request for member `previous' in something not a structure or union
main.c: At top level:
main.c:198: parse error before '*' token
main.c: In function `create_plugin':
main.c:200: `GkrellmStyle' undeclared (first use in this function)
main.c:200: `style' undeclared (first use in this function)
main.c:201: `GkrellmPiximage' undeclared (first use in this function)
main.c:201: `krell_image' undeclared (first use in this function)
main.c:202: `GkrellmMargin' undeclared (first use in this function)
main.c:202: `m' undeclared (first use in this function)
main.c:206: `first_create' undeclared (first use in this function)
main.c:207: warning: implicit declaration of function `gkrellm_panel_new0'
main.c:207: warning: assignment makes pointer from integer without a cast
main.c:210: warning: implicit declaration of function `gkrellm_krell_slider_style'
main.c:211: warning: implicit declaration of function `gkrellm_krell_slider_piximage'
main.c:212: warning: implicit declaration of function `gkrellm_create_krell'
main.c:212: warning: assignment makes pointer from integer without a cast
main.c:213: request for member `full_scale' in something not a structure or union
main.c:215: warning: implicit declaration of function `gkrellm_meter_style'
main.c:216: warning: implicit declaration of function `gkrellm_get_style_margins'
main.c:218: warning: implicit declaration of function `gkrellm_meter_textstyle'
main.c:218: invalid type argument of `->'
main.c:219: warning: implicit declaration of function `gkrellm_create_decal_text'
main.c:222: warning: assignment makes pointer from integer without a cast
main.c:224: warning: implicit declaration of function `gkrellm_panel_configure'
main.c:225: warning: implicit declaration of function `gkrellm_panel_create'
main.c:225: `vbox' undeclared (first use in this function)
main.c:233: warning: implicit declaration of function `GTK_OBJECT'
main.c:233: request for member `drawing_area' in something not a structure or union
main.c:233: warning: passing arg 1 of `g_signal_connect_data' makes pointer from integer without a cast
main.c:235: request for member `drawing_area' in something not a structure or union
main.c:235: warning: passing arg 1 of `g_signal_connect_data' makes pointer from integer without a cast
main.c:237: request for member `drawing_area' in something not a structure or union
main.c:237: warning: passing arg 1 of `g_signal_connect_data' makes pointer from integer without a cast
main.c:239: request for member `drawing_area' in something not a structure or union
main.c: At top level:
main.c:246: parse error before "plugin_gamma"
main.c:246: warning: type defaults to `int' in declaration of `plugin_gamma'
main.c:247: warning: initialization makes integer from pointer without a cast
main.c:248: warning: excess elements in scalar initializer
main.c:248: warning: (near initialization for `plugin_gamma')
main.c:249: warning: excess elements in scalar initializer
main.c:249: warning: (near initialization for `plugin_gamma')
main.c:250: warning: excess elements in scalar initializer
main.c:250: warning: (near initialization for `plugin_gamma')
main.c:251: warning: excess elements in scalar initializer
main.c:251: warning: (near initialization for `plugin_gamma')
main.c:252: warning: excess elements in scalar initializer
main.c:252: warning: (near initialization for `plugin_gamma')
main.c:254: warning: excess elements in scalar initializer
main.c:254: warning: (near initialization for `plugin_gamma')
main.c:255: warning: excess elements in scalar initializer
main.c:255: warning: (near initialization for `plugin_gamma')
main.c:256: warning: excess elements in scalar initializer
main.c:256: warning: (near initialization for `plugin_gamma')
main.c:258: warning: excess elements in scalar initializer
main.c:258: warning: (near initialization for `plugin_gamma')
main.c:259: warning: excess elements in scalar initializer
main.c:259: warning: (near initialization for `plugin_gamma')
main.c:260: warning: excess elements in scalar initializer
main.c:260: warning: (near initialization for `plugin_gamma')
main.c:262: `MON_UPTIME' undeclared here (not in a function)
main.c:262: warning: excess elements in scalar initializer
main.c:262: warning: (near initialization for `plugin_gamma')
main.c:264: warning: excess elements in scalar initializer
main.c:264: warning: (near initialization for `plugin_gamma')
main.c:266: warning: excess elements in scalar initializer
main.c:266: warning: (near initialization for `plugin_gamma')
main.c:266: warning: data definition has no type or storage class
main.c:269: parse error before '*' token
main.c:270: warning: return type defaults to `int'
main.c: In function `gkrellm_init_plugin':
main.c:271: warning: implicit declaration of function `gkrellm_add_meter_style'
make: *** [main.o] Error 1


Can anyone tell me how I can go ahead and install this plugin? Thank you very much for your time!
 
Old 04-20-2004, 06:11 PM   #2
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
Code:
bash-2.05b# make cc -O -g -Wall -fPIC `pkg-config gtk+-2.0 
--cflags`  -I/usr/local/include   -c -o main.o main.c                   
cc -Wall -fPIC `pkg-config gtk+-2.0 --cflags`  -I/usr/local/include main.o 
/usr/X11R6/lib/lib   Xxf86vm.a -o gamma.so -L
/usr/X11R6/lib `pkg-config gtk+-2.0 --libs` -shared
hey, nice little plug-in..........
this is my make line...........
look at the directories and see if your missing anything........

Last edited by 320mb; 04-20-2004 at 06:16 PM.
 
Old 04-20-2004, 06:23 PM   #3
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
Quote:
main.c:22:30: gkrellm2/gkrellm.h: No such file or directory
do you have gkrellm2 installed..................??

I have version 2.1.15

Last edited by 320mb; 04-20-2004 at 06:25 PM.
 
Old 04-20-2004, 07:01 PM   #4
slackmagic
Member
 
Registered: Aug 2003
Distribution: Slackware
Posts: 255

Original Poster
Rep: Reputation: 35
I do have gkrellm2, otherwise i couldn't run it i suppose

I have version 2.1.19

however, I do not have a file like /usr/lib/gkrellm2/gkrellm.h

This is quite confusing and I'm not even sure where to start to get this to work.


You said this is your make line - was I supposed to type in the same thing because that won't compile it either, it also gives me error messages
 
Old 04-20-2004, 07:11 PM   #5
slackmagic
Member
 
Registered: Aug 2003
Distribution: Slackware
Posts: 255

Original Poster
Rep: Reputation: 35
nevermind, I fixed it

all I had to do was install the lasted gkrellm version (2.1.28), and after that compiling that gamma plugin was as easy as typing make

thanks for your help though 320mb!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Gkrellm plugin ? ARCIS_house Linux - Software 1 07-20-2005 03:22 AM
GKrellm plugin for Evolution? TheMooch Linux - Software 2 06-14-2004 08:10 AM
Gkrellm Plugin Headaches binarynova Programming 0 10-05-2003 12:14 PM
looking for a gkrellm plugin C8H10N4O2 Linux - Software 1 09-16-2003 08:13 PM
gkrellm plugin... chrismiceli Linux - Software 0 07-04-2003 03:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration