PDA

View Full Version : Can't install widgets plugin


maluze
July 3rd, 2007, 05:59 AM
I was told to start a new thread for this, so here it is...I try to install the widgets plugin for CompizConfig, and i get this outout from terminal:

[code:82097]justin@justin-desktop:~/widget$ make install
libtool --mode=compile gcc -Wall -g `pkg-config --cflags compiz` -shared -c -o widget.lo widget.c
gcc -Wall -g -I/usr/include/libpng12 -I/usr/include/libxml2 -I/usr/include/startup-notification-1.0 -I/usr/include/compiz -shared -c widget.c -fPIC -DPIC -o .libs/widget.o
widget.c:132: warning: implicit declaration of function 'N_'
widget.c:132: error: initializer element is not constant
widget.c:132: error: (near initialization for 'paintTypeString[0]')
widget.c:133: error: initializer element is not constant
widget.c:133: error: (near initialization for 'paintTypeString[1]')
widget.c:135: error: initializer element is not constant
widget.c:135: error: (near initialization for 'paintTypeString[2]')
make: *** [widget.lo] Error 1
[/code:82097]

what should i do? i cant find any help on the internet :(

maluze
July 4th, 2007, 02:17 AM
*bump*

Excentrik
July 4th, 2007, 09:35 AM
I didn't replied before because my solution is rather hackish...

In the file widget.c, look for the function paintTypeString[] (~line 131)
and replace
[code:f7f86]
N_("Brightness"),
N_("Saturation"),
N_("Opacity")
[/code:f7f86]
with
[code:f7f86]
"Brightness",
"Saturation",
"Opacity"
[/code:f7f86]

This allows the plugin to compile and it works, although I haven't tried changing the options in ccsm.
Also, I think this will prevent the "internationalization" of the plugin, but that shouldn't be a big problem.

Anyway, if anyone knows a better solution for this (or any big problem with this one), please let us know.

Regards

P.S. Don't bump your own threads. It's ill advised.

Shiruban
July 4th, 2007, 05:17 PM
Thanks Excentrik for the hack it works for me... Happy to have this widget plugin back!!!

maluze
July 4th, 2007, 06:35 PM
I didn't replied before because my solution is rather hackish...

In the file widget.c, look for the function paintTypeString[] (~line 131)
and replace
[code:2f64f]
N_("Brightness"),
N_("Saturation"),
N_("Opacity")
[/code:2f64f]
with
[code:2f64f]
"Brightness",
"Saturation",
"Opacity"
[/code:2f64f]

This allows the plugin to compile and it works, although I haven't tried changing the options in ccsm.
Also, I think this will prevent the "internationalization" of the plugin, but that shouldn't be a big problem.

Anyway, if anyone knows a better solution for this (or any big problem with this one), please let us know.

Regards

P.S. Don't bump your own threads. It's ill advised.


sorry about bumping my own thread...but I did your workaround, and it still didnt change the outcome...Its really weird. I dont understand what's going on.. It keeps saying "implicit declaration of function 'N_', even with it removed! Is there something else I should do?

Excentrik
July 5th, 2007, 01:38 PM
I didn't replied before because my solution is rather hackish...

In the file widget.c, look for the function paintTypeString[] (~line 131)
and replace
[code:7ace9]
N_("Brightness"),
N_("Saturation"),
N_("Opacity")
[/code:7ace9]
with
[code:7ace9]
"Brightness",
"Saturation",
"Opacity"
[/code:7ace9]

This allows the plugin to compile and it works, although I haven't tried changing the options in ccsm.
Also, I think this will prevent the "internationalization" of the plugin, but that shouldn't be a big problem.

Anyway, if anyone knows a better solution for this (or any big problem with this one), please let us know.

Regards

P.S. Don't bump your own threads. It's ill advised.


sorry about bumping my own thread...but I did your workaround, and it still didnt change the outcome...Its really weird. I dont understand what's going on.. It keeps saying "implicit declaration of function 'N_', even with it removed! Is there something else I should do?

Hmm, weird. It shouldn't complain...

Just edit the file and try to search for the 'N_' and take that function, like in the example that I posted above.

Regards

maluze
July 5th, 2007, 09:40 PM
Ok...I got the widgets plugin to compile and show up in CCSM. But, I cannot get the plugin to actually work! I entered "screenletsd.py" in "the force apps to behave like widgets", and set to be enables when going to all screen corners, and enabled the plugin, and nothing happens...

ay ideas?

maluze
July 6th, 2007, 05:58 PM
I got the plugin to work once (the last time I logged in), but after logging again, the plugin seems to not work..it doesnt seem to be stable, becuase, even when it did work, sometimes some widgets would appear, sometimes others wouldnt, sometimes all of them would. But now, it doesnt seem to be working at all :(

any ideas to help me out? *sigh*...