lua with cairo doesnt work in conky
Hi,
I try to use Lua with cairo in conky. But whenever I try to execute conky I get this error: Code:
bash-4.1$ conky -c .conkyrc_test lua tolua++ I've also installed all possible cairo I found at SlackBuild: cairo-compmgr cairo-dock cairo-dock-plugins cairomm Libraries perl-cairo conky -v gives this: Code:
bash-4.1$ conky -v I appreciate any help, thanks. |
Quote:
|
Can you post the contents of .conkyrc_test?
Might give a hint ;) P.S: did you install conky from slakbuilds or from source? |
Quote:
/usr/local/lib/conky /usr/bin/conky Is that correct or should conky be installed somewhere else? If I manually try to find the files above, this is the result: Code:
bash-4.1# find / -name "cairo.lua" Quote:
lua -l 'cairo', it gives same error. Thanks for all your answers! |
I did compiled from SlackBuild with LUA=yes ./conky.SlackBuild. However, still same error.
When executing lua -l 'cairo' or lua -l 'imlib2' I get this errors: Code:
bash-4.1$ lua -l 'cairo' Code:
bash-4.1$ make *EDIT: Have anyone here managed to get lua-cario bindings to work with conky (Slackware 13.37)? If so, could you please share your lua-script and conkyrc-file? |
cairo and imlib2 bindings for lua are bundled with conky (since 1.7.4), and normally you should have them installed in /usr/lib64/conky/.
I tried to follow the example here and works fine (besides the font). I suspect you've got something wrong in your conky config files, but I don't use this so I cannot be of more help :( |
Quote:
thanks for your answer. The problem on the lua example from http://wiki.conky.be/index.php?title=Lua_Cario_bindings, is the following row: require 'cairo' Im just wondering, do you have the listed files above? This files: Code:
lua: module 'cairo' not found: |
I suspect you haven't created in your home the cairo.lua file required by the example (on that same page) and loaded in the rc by lua_load
Code:
lua_load ~/cairo.lua |
I put all the code from the example in a new file called cairo.lua. I also create that .conkyrc.cairo file. I do everything that says on the page... I still cannot get it to work. Then when I execute:
conky -d -f "Radio Space" -c .conkyrc.cairo I get this: Conky: llua_load: ./cairo.lua:3: loop or previous error loading module 'cairo' ??????? |
here works fine.
if the files are exactly the same as the guide, maybe it's because of all the stuff you installed before from source (always use slackbuilds): I would suggest you to try with a fresh account or with a fresh install. |
Thats the thing. I tried this on a newly fresh installed Slackware on a computer. Same error.
However, there is one thing that connect my laptop to that computer, both use custom compiled kernel 3.0.1. Maybe it has something to do with that? |
no, 3.0.2-ck here, but I think it doesn't matter at all.
sorry if I repeat, it works on a fresh install with lua, tolua++ and conky, all from slackbuilds.org. so if you tried, you got something else wrong (or you are using the same home for your user and what breaks it is there). |
No, it is two different, my laptop, and a stationary PC. On the stationary PC I installed lua, tolua++ from sbopkg and conky from SlackBuild. I installed conky with LUA=yes ./conky.SlackBuild.
Oh my... |
Just one last question, what is your Pixman and X.org version?
Mine is: Code:
bash-4.1$ X -version |
I'm using the ones provided with slackware (I suppose you do not).
|
Quote:
I've upgraded everything with src2pkg, because I want to build slackware-specific packages, I dont do manually installation now. Anyway, I will test to do a fresh install with Slackware on another computer, and then just add conky. I will report back here. |
All times are GMT -5. The time now is 06:26 PM. |