Eastsun 写了:ubunao 写了:用11.10的都知道11.10仓库中的conky是1.81版本的,而我非常喜欢的这个conky主题却是1.80的,所以我绞尽脑汁的想将它应用在1.81上,奈何尝试了多种办法都没有用,甚至最后我都想到了安装1.80版本的conky,可惜在make那一步
conky.c:3583:49: 错误: ‘own_window_argb_value’未声明(在此函数内第一次使用)实在是不知道如何解决了,所以这里请教下各位高手,如何在UBUNTU11.10中应用如下的conky主题呢?我需要切实可行的办法,谢谢!
http://g0rg0d.deviantart.com/art/Cornet ... onky&qo=18

另,我找到一个外文版的how to,虽然外语看不懂但是那几个命令还是通用的,倒是可以成功运行,但是显示有错误,应该是conky版本的问题把,这里附上那个网站
http://www.lffl.org/2011/04/cornet-conk ... nella.html
谢过各位了!~
另附上原作者的教程,我依然使用失败
【well I,m considering you have conky installed in your box.Now first create a folder "script" in your home directory. Extract all the files in this folder. Now you can see there are 6 files total. Now copy both files (conkyclo and conkyrcmx) one by one to your home directory(~/) and rename them to .conkyclo and .conkyrcmx. Doing this with make these files hidden but you can see them by clicking ctrl+h in your home folder.
Now go to the script folder and open properties of conkycor.sh and in the Permission Tab click the Execte file as program. Now double click on this script and wait for conky to show on your screen. you can put this script in startup applications if you want to start conky on startup everytime. I think this will help you. if you could not get any part of this plz inform me, I will be glad to help you again.. Thanks...
And yes to understand the basic of conky try to read the source files and see how the control flows...】
下面是我折腾多次后总结出来的,楼主可以试一下:
代码: 全选
#install conky 1.8 from source
sudo apt-get install lua5.1-dev #(or liblua5.1-dev)
sudo apt-get install libx11-dev
sudo apt-get install libxext-dev
sudo apt-get install libxdamage-dev libglib2.0-dev
sudo apt-get install libxft-dev
sudo apt-get install libimlib2-dev #for imlib2
sudo apt-get install libiw-dev #for wireless
sudo apt-get install libasound2-dev #for alsa mixer
sudo apt-get install libcairo2-dev #for cairo
sudo apt-get install imagemagick #for photo
#install other soft
sudo apt-get install aptitude python-statgrab ttf-droid hddtemp curl
sudo chmod u+s /usr/sbin/hddtemp
sudo apt-get install libtolua++5.1-dev
cd ./conky-1.8
./configure --enable-x11 --enable-xft --enable-lua --enable-imlib2 --enable-lua-imlib2 --enable-lua-cairo --enable-wlan
make
sudo make install
和之前一样,还是在make的时候出错
conky.c: 在函数‘generate_text_internal’中:
conky.c:756:19: 警告: 变量‘needed’被设定但未被使用 [-Wunused-but-set-variable]
conky.c: 在函数‘main_loop’中:
conky.c:3583:49: 错误: ‘own_window_argb_value’未声明(在此函数内第一次使用)
conky.c:3583:49: 附注: 每个未声明的标识符在其出现的函数内只报告一次
conky.c: 在函数‘X11_create_window’中:
conky.c:4407:46: 错误: ‘own_window_argb_value’未声明(在此函数内第一次使用)
make[2]: *** [conky-conky.o] 错误 1
make[2]:正在离开目录 `/home/viao/conky-1.8.0_rc2/src'
make[1]: *** [all] 错误 2
make[1]:正在离开目录 `/home/viao/conky-1.8.0_rc2/src'
make: *** [all-recursive] 错误 1
不知道是什么原因,怎么解决才好