Conky-lua errors
I am receiving the following error after installing conky-lua from AUR:
Conky: llua_do_call: function conky_main execution failed: attempt to call a nil value
Conky: llua_do_call: function conky_main execution failed: attempt to call a nil value
Conky: llua_do_call: function conky_main execution failed: attempt to call a nil value
Conky: llua_do_call: function conky_main execution failed: attempt to call a nil value
Conky: llua_do_call: function conky_main execution failed: attempt to call a nil value
Conky: llua_do_call: function conky_main execution failed: attempt to call a nil value
Conky: llua_do_call: function conky_main execution failed: attempt to call a nil value
Conky: llua_do_call: function conky_main execution failed: attempt to call a nil value
Conky: llua_do_call: function conky_main execution failed: attempt to call a nil value
Conky: llua_do_call: function conky_main execution failed: attempt to call a nil value
Conky: llua_do_call: function conky_main execution failed: attempt to call a nil value
Conky: llua_do_call: function conky_main execution failed: attempt to call a nil value
Conky: llua_do_call: function conky_main execution failed: attempt to call a nil value
Here is what my conky looks like:
Conky error
And here are the text files:
conkyrc-blue
background yes
update_interval 1
cpu_avg_samples 2
net_avg_samples 2
temperature_unit celsius
double_buffer yes
no_buffers yes
text_buffer_size 2048
gap_x 10
gap_y 240
minimum_size 210 450
maximum_width 210
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorate,below,sticky,skip_taskbar,skip_pager
border_inner_margin 0
border_outer_margin 0
alignment tr
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
override_utf8_locale yes
use_xft yes
xftfont Dejavu Sans:size=8
xftalpha 0.5
uppercase no
default_color 1994D1
color1 DDDDDD
color2 AAAAAA
color3 888888
color4 666666
lua_load /home/terry/.conky/conky_grey.lua
lua_draw_hook_post main
TEXT
${voffset 35}
${goto 95}${color4}${font Dejavu Sans:size=22}${time %e}${color1}${offset -50}${font Dejavu Sans:size=10}${time %A}
${goto 85}${color2}${voffset -2}${font Dejavu Sans:size=9}${time %b}${voffset -2} ${color3}${font Dejavu Sans:size=12}${time %Y}${font}
${voffset 80}
${goto 90}${font Dejavu Sans:size=7,weight:bold}${color}CPU$
${goto 90}${font Dejavu Sans:size=7,weight:normal}${color1}${top name 1}${alignr}${top cpu 1}%
${goto 90}${font Dejavu Sans:size=7,weight:normal}${color2}${top name 2}${alignr}${top cpu 2}%
${goto 90}${font Dejavu Sans:size=7,weight:normal}${color3}${top name 3}${alignr}${top cpu 3}%
${goto 90}${cpugraph 10,100 666666 666666}
${goto 90}${voffset -10}${font Dejavu Sans:size=7,weight:normal}${color}${threads} process
${voffset 20}
${goto 90}${font Dejavu Sans:size=7,weight:bold}${color}MEM - ${mem}
${goto 90}${font Dejavu Sans:size=7,weight:normal}${color1}${top_mem name 1}${alignr}${top_mem mem 1}%
${goto 90}${font Dejavu Sans:size=7,weight:normal}${color2}${top_mem name 2}${alignr}${top_mem mem 2}%
${goto 90}${font Dejavu Sans:size=7,weight:normal}${color3}${top_mem name 3}${alignr}${top_mem mem 3}%
${voffset 15}
${goto 90}${font Dejavu Sans:size=7,weight:bold}${color}DISKS
${goto 90}${diskiograph 30,100 666666 666666}${voffset -30}
${goto 90}${font Dejavu Sans:size=7,weight:normal}${color}used: ${fs_used /home/terry} /home/terry
${goto 90}${font Dejavu Sans:size=7,weight:normal}${color}used: ${fs_used /} /
${voffset 10}
${goto 70}${font Dejavu Sans:size=18,weight:bold}${color3}NET${alignr}${color2}${font Dejavu Sans:size=7,weight:bold}${color}${if_up wlan0}wifi ${addr wlan0}${endif}
${goto 90}${font Dejavu Sans:size=7,weight:normal}${color1}Up: ${upspeed wlan0}${goto 90}${font}${alignr}${color3}${upspeedgraph wlan0 8,50}
${goto 90}${font Dejavu Sans:size=7,weight:normal}${color1}Down: ${downspeed wlan0}${goto 90}${font}${alignr}${color3}${downspeedgraph wlan0 8,40}
${goto 90}${font Dejavu Sans:size=7,weight:normal}${color1}Total Up: ${totalup wlan0}
${goto 90}${font Dejavu Sans:size=7,weight:normal}${color1}Total Down: ${totaldown wlan0}
conky_grey.lua
==============================================================================
-- conky_grey.lua
-- author : SLK
-- version : v2011011001
-- license : Distributed under the terms of GNU GPL version 2 or later
--==============================================================================
require 'cairo'
-- clock DATA
-- HOURS
clock_h = {
name='time', arg='%H', max_value=12,
x=110, y=80,
graph_radius=53,
graph_thickness=3,
graph_unit_angle=30, graph_unit_thickness=30,
graph_bg_colour=0xffffff, graph_bg_alpha=0.0,
graph_fg_colour=0xFFFFFF, graph_fg_alpha=0.3,
txt_radius=34,
txt_weight=1, txt_size=10.0,
txt_fg_colour=0xFFFFFF, txt_fg_alpha=0.6,
graduation_radius=53,
graduation_thickness=6, graduation_mark_thickness=2,
graduation_unit_angle=30,
graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
-- MINUTES
clock_m = {
name='time', arg='%M', max_value=60,
x=110, y=80,
graph_radius=57,
graph_thickness=2,
graph_unit_angle=6, graph_unit_thickness=6,
graph_bg_colour=0xffffff, graph_bg_alpha=0.1,
graph_fg_colour=0xFFFFFF, graph_fg_alpha=0.3,
txt_radius=70,
txt_weight=0, txt_size=9.0,
txt_fg_colour=0xFFFFFF, txt_fg_alpha=0.6,
graduation_radius=57,
graduation_thickness=0, graduation_mark_thickness=2,
graduation_unit_angle=30,
graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
-- SECONDS
clock_s = {
name='time', arg='%S', max_value=60,
x=110, y=80,
graph_radius=50,
graph_thickness=2,
graph_unit_angle=6, graph_unit_thickness=2,
graph_bg_colour=0xffffff, graph_bg_alpha=0.0,
graph_fg_colour=0xFFFFFF, graph_fg_alpha=0.2,
txt_radius=40,
txt_weight=0, txt_size=12.0,
txt_fg_colour=0xFFFFFF, txt_fg_alpha=0.3,
graduation_radius=0,
graduation_thickness=0, graduation_mark_thickness=0,
graduation_unit_angle=0,
graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.0,
-- gauge DATA
gauge = {
name='cpu', arg='cpu0', max_value=100,
x=85, y=200,
graph_radius=24,
graph_thickness=5,
graph_start_angle=180,
graph_unit_angle=2.7, graph_unit_thickness=2.7,
graph_bg_colour=0xffffff, graph_bg_alpha=0.1,
graph_fg_colour=0xFFFFFF, graph_fg_alpha=0.5,
hand_fg_colour=0xEF5A29, hand_fg_alpha=0.0,
txt_radius=34,
txt_weight=0, txt_size=8.0,
txt_fg_colour=0xFFFFFF, txt_fg_alpha=0.3,
graduation_radius=28,
graduation_thickness=0, graduation_mark_thickness=1,
graduation_unit_angle=27,
graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
caption='',
caption_weight=1, caption_size=8.0,
caption_fg_colour=0xFFFFFF, caption_fg_alpha=0.3,
name='cpu', arg='cpu1', max_value=100,
x=85, y=200,
graph_radius=18,
graph_thickness=5,
graph_start_angle=180,
graph_unit_angle=2.7, graph_unit_thickness=2.7,
graph_bg_colour=0xffffff, graph_bg_alpha=0.1,
graph_fg_colour=0xFFFFFF, graph_fg_alpha=0.5,
hand_fg_colour=0xEF5A29, hand_fg_alpha=0.0,
txt_radius=10,
txt_weight=0, txt_size=8.0,
txt_fg_colour=0xFFFFFF, txt_fg_alpha=0.3,
graduation_radius=28,
graduation_thickness=0, graduation_mark_thickness=1,
graduation_unit_angle=27,
graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
caption='',
caption_weight=1, caption_size=8.0,
caption_fg_colour=0xFFFFFF, caption_fg_alpha=0.3,
name='memperc', arg='', max_value=100,
x=85, y=300,
graph_radius=24,
graph_thickness=5,
graph_start_angle=180,
graph_unit_angle=2.7, graph_unit_thickness=2.7,
graph_bg_colour=0xffffff, graph_bg_alpha=0.1,
graph_fg_colour=0xFFFFFF, graph_fg_alpha=0.5,
hand_fg_colour=0xEF5A29, hand_fg_alpha=0.0,
txt_radius=10,
txt_weight=0, txt_size=8.0,
txt_fg_colour=0xFFFFFF, txt_fg_alpha=0.3,
graduation_radius=23,
graduation_thickness=8, graduation_mark_thickness=2,
graduation_unit_angle=27,
graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.5,
caption='',
caption_weight=1, caption_size=8.0,
caption_fg_colour=0xFFFFFF, caption_fg_alpha=0.3,
name='fs_used_perc', arg='/', max_value=100,
x=85, y=380,
graph_radius=24,
graph_thickness=5,
graph_start_angle=180,
graph_unit_angle=2.7, graph_unit_thickness=2.7,
graph_bg_colour=0xffffff, graph_bg_alpha=0.1,
graph_fg_colour=0xFFFFFF, graph_fg_alpha=0.5,
hand_fg_colour=0xEF5A29, hand_fg_alpha=0.0,
txt_radius=34,
txt_weight=0, txt_size=8.0,
txt_fg_colour=0xFFFFFF, txt_fg_alpha=0.5,
graduation_radius=28,
graduation_thickness=0, graduation_mark_thickness=1,
graduation_unit_angle=27,
graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
caption='/',
caption_weight=1, caption_size=8.0,
caption_fg_colour=0xFFFFFF, caption_fg_alpha=0.5,
name='fs_used_perc', arg='/home/terry', max_value=100,
x=85, y=380,
graph_radius=18,
graph_thickness=5,
graph_start_angle=180,
graph_unit_angle=2.7, graph_unit_thickness=2.7,
graph_bg_colour=0xffffff, graph_bg_alpha=0.1,
graph_fg_colour=0xFFFFFF, graph_fg_alpha=0.5,
hand_fg_colour=0xEF5A29, hand_fg_alpha=0.0,
txt_radius=10,
txt_weight=0, txt_size=8.0,
txt_fg_colour=0xFFFFFF, txt_fg_alpha=0.5,
graduation_radius=28,
graduation_thickness=0, graduation_mark_thickness=1,
graduation_unit_angle=27,
graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
caption='/data',
caption_weight=1, caption_size=8.0,
caption_fg_colour=0xFFFFFF, caption_fg_alpha=0.5,
-- rgb_to_r_g_b
-- converts color in hexa to decimal
function rgb_to_r_g_b(colour, alpha)
return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end
-- angle_to_position
-- convert degree to rad and rotate (0 degree is top/north)
function angle_to_position(start_angle, current_angle)
local pos = current_angle + start_angle
return ( ( pos * (2 * math.pi / 360) ) - (math.pi / 2) )
end
-- draw_clock_ring
-- displays clock
function draw_clock_ring(display, data, value)
local max_value = data['max_value']
local x, y = data['x'], data['y']
local graph_radius = data['graph_radius']
local graph_thickness, graph_unit_thickness = data['graph_thickness'], data['graph_unit_thickness']
local graph_unit_angle = data['graph_unit_angle']
local graph_bg_colour, graph_bg_alpha = data['graph_bg_colour'], data['graph_bg_alpha']
local graph_fg_colour, graph_fg_alpha = data['graph_fg_colour'], data['graph_fg_alpha']
-- background ring
cairo_arc(display, x, y, graph_radius, 0, 2 * math.pi)
cairo_set_source_rgba(display, rgb_to_r_g_b(graph_bg_colour, graph_bg_alpha))
cairo_set_line_width(display, graph_thickness)
cairo_stroke(display)
-- arc of value
local val = (value % max_value)
local i = 1
while i <= val do
cairo_arc(display, x, y, graph_radius,( ((graph_unit_angle * i) - graph_unit_thickness)*(2*math.pi/360) )-(math.pi/2),((graph_unit_angle * i) * (2*math.pi/360))-(math.pi/2))
cairo_set_source_rgba(display,rgb_to_r_g_b(graph_fg_colour,graph_fg_alpha))
cairo_stroke(display)
i = i + 1
end
local angle = (graph_unit_angle * i) - graph_unit_thickness
-- graduations marks
local graduation_radius = data['graduation_radius']
local graduation_thickness, graduation_mark_thickness = data['graduation_thickness'], data['graduation_mark_thickness']
local graduation_unit_angle = data['graduation_unit_angle']
local graduation_fg_colour, graduation_fg_alpha = data['graduation_fg_colour'], data['graduation_fg_alpha']
if graduation_radius > 0 and graduation_thickness > 0 and graduation_unit_angle > 0 then
local nb_graduation = 360 / graduation_unit_angle
local i = 1
while i <= nb_graduation do
cairo_set_line_width(display, graduation_thickness)
cairo_arc(display, x, y, graduation_radius, (((graduation_unit_angle * i)-(graduation_mark_thickness/2))*(2*math.pi/360))-(math.pi/2),(((graduation_unit_angle * i)+(graduation_mark_thickness/2))*(2*math.pi/360))-(math.pi/2))
cairo_set_source_rgba(display,rgb_to_r_g_b(graduation_fg_colour,graduation_fg_alpha))
cairo_stroke(display)
cairo_set_line_width(display, graph_thickness)
i = i + 1
end
end
-- text
local txt_radius = data['txt_radius']
local txt_weight, txt_size = data['txt_weight'], data['txt_size']
local txt_fg_colour, txt_fg_alpha = data['txt_fg_colour'], data['txt_fg_alpha']
local movex = txt_radius * (math.cos((angle * 2 * math.pi / 360)-(math.pi/2)))
local movey = txt_radius * (math.sin((angle * 2 * math.pi / 360)-(math.pi/2)))
cairo_select_font_face (display, "ubuntu", CAIRO_FONT_SLANT_NORMAL, txt_weight);
cairo_set_font_size (display, txt_size);
cairo_set_source_rgba (display, rgb_to_r_g_b(txt_fg_colour, txt_fg_alpha));
cairo_move_to (display, x + movex - (txt_size / 2), y + movey + 3);
cairo_show_text (display, value);
cairo_stroke (display);
end
-- draw_gauge_ring
-- displays gauges
function draw_gauge_ring(display, data, value)
local max_value = data['max_value']
local x, y = data['x'], data['y']
local graph_radius = data['graph_radius']
local graph_thickness, graph_unit_thickness = data['graph_thickness'], data['graph_unit_thickness']
local graph_start_angle = data['graph_start_angle']
local graph_unit_angle = data['graph_unit_angle']
local graph_bg_colour, graph_bg_alpha = data['graph_bg_colour'], data['graph_bg_alpha']
local graph_fg_colour, graph_fg_alpha = data['graph_fg_colour'], data['graph_fg_alpha']
local hand_fg_colour, hand_fg_alpha = data['hand_fg_colour'], data['hand_fg_alpha']
local graph_end_angle = (max_value * graph_unit_angle) % 360
-- background ring
cairo_arc(display, x, y, graph_radius, angle_to_position(graph_start_angle, 0), angle_to_position(graph_start_angle, graph_end_angle))
cairo_set_source_rgba(display, rgb_to_r_g_b(graph_bg_colour, graph_bg_alpha))
cairo_set_line_width(display, graph_thickness)
cairo_stroke(display)
-- arc of value
local val = value % (max_value + 1)
local start_arc = 0
local stop_arc = 0
local i = 1
while i <= val do
start_arc = (graph_unit_angle * i) - graph_unit_thickness
stop_arc = (graph_unit_angle * i)
cairo_arc(display, x, y, graph_radius, angle_to_position(graph_start_angle, start_arc), angle_to_position(graph_start_angle, stop_arc))
cairo_set_source_rgba(display, rgb_to_r_g_b(graph_fg_colour, graph_fg_alpha))
cairo_stroke(display)
i = i + 1
end
local angle = start_arc
-- hand
start_arc = (graph_unit_angle * val) - (graph_unit_thickness * 2)
stop_arc = (graph_unit_angle * val)
cairo_arc(display, x, y, graph_radius, angle_to_position(graph_start_angle, start_arc), angle_to_position(graph_start_angle, stop_arc))
cairo_set_source_rgba(display, rgb_to_r_g_b(hand_fg_colour, hand_fg_alpha))
cairo_stroke(display)
-- graduations marks
local graduation_radius = data['graduation_radius']
local graduation_thickness, graduation_mark_thickness = data['graduation_thickness'], data['graduation_mark_thickness']
local graduation_unit_angle = data['graduation_unit_angle']
local graduation_fg_colour, graduation_fg_alpha = data['graduation_fg_colour'], data['graduation_fg_alpha']
if graduation_radius > 0 and graduation_thickness > 0 and graduation_unit_angle > 0 then
local nb_graduation = graph_end_angle / graduation_unit_angle
local i = 0
while i < nb_graduation do
cairo_set_line_width(display, graduation_thickness)
start_arc = (graduation_unit_angle * i) - (graduation_mark_thickness / 2)
stop_arc = (graduation_unit_angle * i) + (graduation_mark_thickness / 2)
cairo_arc(display, x, y, graduation_radius, angle_to_position(graph_start_angle, start_arc), angle_to_position(graph_start_angle, stop_arc))
cairo_set_source_rgba(display,rgb_to_r_g_b(graduation_fg_colour,graduation_fg_alpha))
cairo_stroke(display)
cairo_set_line_width(display, graph_thickness)
i = i + 1
end
end
-- text
local txt_radius = data['txt_radius']
local txt_weight, txt_size = data['txt_weight'], data['txt_size']
local txt_fg_colour, txt_fg_alpha = data['txt_fg_colour'], data['txt_fg_alpha']
local movex = txt_radius * math.cos(angle_to_position(graph_start_angle, angle))
local movey = txt_radius * math.sin(angle_to_position(graph_start_angle, angle))
cairo_select_font_face (display, "ubuntu", CAIRO_FONT_SLANT_NORMAL, txt_weight)
cairo_set_font_size (display, txt_size)
cairo_set_source_rgba (display, rgb_to_r_g_b(txt_fg_colour, txt_fg_alpha))
cairo_move_to (display, x + movex - (txt_size / 2), y + movey + 3)
cairo_show_text (display, value)
cairo_stroke (display)
-- caption
local caption = data['caption']
local caption_weight, caption_size = data['caption_weight'], data['caption_size']
local caption_fg_colour, caption_fg_alpha = data['caption_fg_colour'], data['caption_fg_alpha']
local tox = graph_radius * (math.cos((graph_start_angle * 2 * math.pi / 360)-(math.pi/2)))
local toy = graph_radius * (math.sin((graph_start_angle * 2 * math.pi / 360)-(math.pi/2)))
cairo_select_font_face (display, "ubuntu", CAIRO_FONT_SLANT_NORMAL, caption_weight);
cairo_set_font_size (display, caption_size)
cairo_set_source_rgba (display, rgb_to_r_g_b(caption_fg_colour, caption_fg_alpha))
cairo_move_to (display, x + tox + 5, y + toy + 1)
-- bad hack but not enough time !
if graph_start_angle < 105 then
cairo_move_to (display, x + tox - 30, y + toy + 1)
end
cairo_show_text (display, caption)
cairo_stroke (display)
end
-- go_clock_rings
-- loads data and displays clock
function go_clock_rings(display)
local function load_clock_rings(display, data)
local str, value = '', 0
str = string.format('${%s %s}',data['name'], data['arg'])
str = conky_parse(str)
value = tonumber(str)
draw_clock_ring(display, data, value)
end
for i in pairs(clock_h) do
load_clock_rings(display, clock_h[i])
end
for i in pairs(clock_m) do
load_clock_rings(display, clock_m[i])
end
for i in pairs(clock_s) do
load_clock_rings(display, clock_s[i])
end
end
-- go_gauge_rings
-- loads data and displays gauges
function go_gauge_rings(display)
local function load_gauge_rings(display, data)
local str, value = '', 0
str = string.format('${%s %s}',data['name'], data['arg'])
str = conky_parse(str)
value = tonumber(str)
draw_gauge_ring(display, data, value)
end
for i in pairs(gauge) do
load_gauge_rings(display, gauge[i])
end
end
-- MAIN
function conky_main()
if conky_window == nil then
return
end
local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
local display = cairo_create(cs)
local updates = conky_parse('${updates}')
update_num = tonumber(updates)
if update_num > 5 then
go_clock_rings(display)
go_gauge_rings(display)
end
end
Sorry, I wanted to put code tags, but I was unaware of the command. I am running conky-lua-nv 1.8.0-1 from the AUR. There also seems to be some issue with the drawing of the rings, as it shows percents but not the graphical rings that go with it. I suspect it has something to do with the lua file. Anyone see any issue?
Similar Messages
-
[SOLVED] conky-lua build fails due to toluapp package issues
I am trying to install conky-lua from AUR on 64 bit Arch and failing miserably.
When running the following:
yaourt -Sy conky-lua
I get the following error:
/usr/bin/ld: /usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.2/../../../../lib/libtolua++.a(tolua_is.o): relocation R_X86_64_32S against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.2/../../../../lib/libtolua++.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[1]: *** [libcairo.la] Error 1
make[1]: Leaving directory `/tmp/yaourt-tmp-mark/aur-conky-lua/conky-lua/src/conky-1.7.2/lua'
make: *** [all-recursive] Error 1
==> ERROR: Build Failed.
Aborting...
Error: Makepkg was unable to build conky-lua package.
I have read through what search results I can find on the topic (both here and via google) and have attempted to remedy the situation by adding build options to the toluapp build to provide for the conky-lua build. I have tried this by adding CCFLAGS = '-fPIC' to the scons call in the PKGBUILD file, I have also tried editing the config_linux.py file, which sits along side the main build file, to include the -fPIC switch also, which doesn't work either. i.e. I have this in the config_linux.py now:
CCFLAGS = ['-O2', '-ansi', '-Wall', '-fPIC']
Which doesn't work, it results in:
==> Validating source files with md5sums...
tolua++-1.0.93.tar.bz2 ... Passed
config_linux.py ... FAILED
==> ERROR: One or more files did not pass the validity check!
Error: Makepkg was unable to build toluapp package.
Can someone help me through a build as I have never come across scons before and maybe I am providing directives to the toluapp build incorrectly? I am still thinking in "make" terms...
I NEED lua in conky
Thanks in advance
Regards,
Kaivalagi
Last edited by kaivalagi (2009-11-11 07:32:04)I was asked by email on what exactly I did to get conky-lua installed and working on 64bit Arch, so I thought I would post my reply below in case it is of help to anyone else. Cheers
Run "yaourt -S conky-lua". Amongst other things this will try to install a dependancy which you need to mess about with, the package you need to edit is "toluapp".
When the "toluapp" package is downloaded by yaourt answer y to the edit question and provide something like gedit or kate as the editor to use
You'll now see the PKGBUILD file in the editor, this doesn't need editing just yet. But if you open file from the editor you'll see the directory thie PKGBUILD is in, and you want to edit the config_linux.py file you'll see there.
You should see this line in the config_linux.py file:
CCFLAGS = ['-O2', '-ansi', '-Wall']
Change it so it is like this:
CCFLAGS = ['-O2', '-ansi', '-Wall', '-fPIC']
Now, back to the PKGBUILD file, you'll see this line:
md5sums=('100aa6907b8108582080b37d79c0afd7' 'bab107cdd2d18d3453a2344341b77c45')
These checksums line up with tarball and config_linux.py files, and this will stop you're edit from working if not amended because the .py file isn't what it should be, we changed it. So run md5sum against the .py file and update the second checksum in the line appropriately.
Carry on with the package installation and conky should have lua support
Last edited by kaivalagi (2010-01-14 08:50:55) -
[SOLVED] Conky lua problem (transparency)
Hi,
I'm trying to transfer my conky from Ubuntu to Arch: below is a screenshot of the Ubuntu version (what it should look like). On Arch I have a solid black background. If it's relevant, I'm running Archbang rather than pure Arch, so with Openbox.
My main issue at the moment is the semi-transparency (and I'd like to have the rounded corners too). I understand that conky 1.8.0 can do transparency, but only with a compositor, and I'd rather keep my system as light as possible. So I've replaced my conky with 1.7.2 conky-lua from AUR and (don't know if this was necessary) installed cairo and lua from the repos. Unfortunately the lua script I used on Ubuntu isn't working; when I run conky in the terminal I get the message ".conkyrc: 121: config file error". At lines 120 and 121 I have my
lua_load ~/scripts/draw_bg.lua
lua_draw_hook_pre
My .conkyrc and lua script are below. Thanks for looking!
# conky configuration
# edited by Mark Buck (Kaivalagi) <[email protected]>
# set to yes if you want Conky to be forked in the background
background no
# X font when Xft is disabled, you can pick one with program xfontsel
#font 5x7
#font 6x10
#font 7x13
#font 8x13
#font 9x15
#font *mintsmild.se*
#font -*-*-*-*-*-*-34-*-*-*-*-*-*-*
# Use Xft?
use_xft yes
# Xft font when Xft is enabled
xftfont Bitstream Vera Sans Mono:size=9
# Text alpha when using Xft
xftalpha 0.8
# Update interval in seconds
update_interval 1.0
# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
# Minimum size of text area
minimum_size 200 700
maximum_width 200
# Draw shades?
draw_shades yes
# Draw outlines?
draw_outline no
# Draw borders around text
draw_borders no
draw_graph_borders yes
# Stippled borders?
stippled_borders 8
# border margins
border_inner_margin 2
border_outer_margin 2
# border width
border_width 1
# Default colors and also border colors
default_color white
default_shade_color black
default_outline_color white
# own window options
own_window yes
own_window_type desktop
#own_window_hints undecorated,skip_taskbar
# Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right
# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 5
gap_y 35
# Subtract file system buffers from used memory?
no_buffers yes
# set to yes if you want all text to be in uppercase
uppercase no
# number of cpu samples to average
# set to 1 to disable averaging
cpu_avg_samples 2
# number of net samples to average
# set to 1 to disable averaging
net_avg_samples 2
# Force UTF8? note that UTF8 support required XFT
override_utf8_locale yes
# Add spaces to keep things from moving about? This only affects certain objects.
use_spacer right
# colours
color1 white
# light blue
color2 6892C6
color3 6892C6
# green
color4 78BF39
# red
color5 CC0000
color6 88ff88
text_buffer_size 2048
# variable is given either in format $variable or in ${variable}. Latter
# allows characters right after the variable and must be used in network
# stuff because of an argument
# stuff after 'TEXT' will be formatted on screen
lua_load ~/scripts/draw_bg.lua
lua_draw_hook_pre
TEXT
${offset -5}${font StyleBats:style=CleanCut:size=12}q ${voffset -2}${font Bitstream Vera Sans Mono:style=Bold:size=11}Weather${font} ${hr}${color1}
${execpi 1800 conkyForecast --location=MZXX0003 --template=/home/mark/conky/conkyForecast.template}
${goto 25}${color1}${font Bitstream Vera Sans Mono:size=14}${execi 1800 conkyForecast --location=MZXX0003 --datatype=CT}${font}
${goto 20}${font ConkyWeather:style=Bold:size=30}${execi 1800 conkyForecast --location=MZXX0003 --datatype=WF} ${goto 120}${font ConkyWindNESW:size=30}${execi 1800 conkyForecast --location=MZXX0003 --datatype=BS}${font}
${goto 10}${execi 1800 conkyForecast --location=MZXX0003 --datatype=HT --centeredwidth=4}/${execi 1800 conkyForecast --location=MZXX0003 --datatype=LT --centeredwidth=4} ${goto 100}${execi 1800 conkyForecast --location=MZXX0003 --datatype=WS --imperial} - ${execi 1800 conkyForecast --location=MZXX0003 --datatype=WD}
$if_mpd_playing${offset -5}${font StyleBats:style=CleanCut:size=12}q ${voffset -2}${font Bitstream Vera Sans Mono:style=Bold:size=11}Music${font} ${hr}${color1}
${font Bitstream Vera Sans:size=9}${color2}MPD:${color6} $mpd_status
${color}${texeci 10 /home/mark/conky/composer.sh}
${font Bitstream Vera Sans:size=9}$color$mpd_artist
${font Bitstream Vera Sans:size=9}$mpd_album
${font Bitstream Vera Sans:size=9}$mpd_title
${color #ccddff} ${mpd_bar 5, 100}
$endif
${offset -5}${font StyleBats:style=CleanCut:size=12}q ${voffset -2}${font Bitstream Vera Sans Mono:style=Bold:size=11}${color1}System${font} ${hr}${color1}
${color2}CPU Temp: ${color}${acpitemp}${color}°${font Bitstream Vera Sans Mono:size=9}
$color2}CPU1: $color${cpu cpu1}% ${cpubar cpu1 4,65}${font Bitstream Vera Sans Mono:size=9}
$color2}CPU2: $color${cpu cpu2}% ${cpubar cpu2 4,65}${font Bitstream Vera Sans Mono:size=9}
${color2}RAM:$color $mem/$memmax
${color2}Root: $color${fs_used /}/${fs_size /}${font Bitstream Vera Sans Mono:size=9}
${color2}Home: $color${fs_used /home/}/${fs_size /home/}${font Bitstream Vera Sans Mono:size=9}
${color2}Today:${color6}${execi 10 vnstat -i eth0 | grep "today" | awk '{print $5 $6}'}${goto 120}${color1}${execi 10 vnstat -i eth0 | grep "today" | awk '{print $8 $9}'}
${color2}Week: ${color6}${execi 10 vnstat -i eth0 -w | grep "current week" | awk '{print $6 $7}'}${goto 120}${color1}${execi 10 vnstat -i eth0 -w | grep "current week" | awk '{print $9 $10}'}
${color2}Month: ${color6}${execi 10 vnstat -i eth0 -m | grep "`date +"%b '%y"`" | awk '{print $6 $7}'}${goto 120}${color1}${execi 10 vnstat -i eth0 -m | grep "`date +"%b '%y"`" | awk '{print $9 $10}'}${font}
${color2}Battery:$color ${color red}${battery_bar 4,50 BAT0}
Background by londonali1010 (2009)
This script draws a background to the Conky window. It covers the whole of the Conky window, but you can specify rounded corners, if you wish.
To call this script in Conky, use (assuming you have saved this script to ~/scripts/):
lua_load ~/scripts/draw_bg.lua
lua_draw_hook_pre
Changelog:
+ v1.0 -- Original release (07.10.2009)
-- Change these settings to affect your background.
-- "corner_r" is the radius, in pixels, of the rounded corners. If you don't want rounded corners, use 0.
corner_r=15
-- Set the colour and transparency (alpha) of your background.
bg_colour=0x000000
bg_alpha=0.4
require 'cairo'
function rgb_to_r_g_b(colour,alpha)
return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end
function conky_draw_bg()
if conky_window==nil then return end
local w=conky_window.width
local h=conky_window.height
local cs=cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, w, h)
cr=cairo_create(cs)
cairo_move_to(cr,corner_r,0)
cairo_line_to(cr,w-corner_r,0)
cairo_curve_to(cr,w,0,w,0,w,corner_r)
cairo_line_to(cr,w,h-corner_r)
cairo_curve_to(cr,w,h,w,h,w-corner_r,h)
cairo_line_to(cr,corner_r,h)
cairo_curve_to(cr,0,h,0,h,0,h-corner_r)
cairo_line_to(cr,0,corner_r)
cairo_curve_to(cr,0,0,0,0,corner_r,0)
cairo_close_path(cr)
cairo_set_source_rgba(cr,rgb_to_r_g_b(bg_colour,bg_alpha))
cairo_fill(cr)
end
Last edited by Henry Flower (2010-04-13 04:54:08)The error in line 121 is because of lua_draw_hook_pre command must have a function name. In your file, it would be:
lua_draw_hook_pre draw_bg
To get the transparency put the command:
own_window_transparent yes
I have tried this in an AwesomeWM, with conky 1.8.0 compiled with lua support, and without compositing. -
I was trying to install conky-lua when I got this error, and I don't know how to proceed from here.
Please help.
Last edited by Laplace_ (2009-12-29 05:15:15)http://dpaste.com/138484/ wrote:llua.c:29:21: error: tolua++.h: No such file or directory
This is because toluapp installs to / instead of /usr. Change its installation command to this:
scons prefix="$pkgdir/usr" install
I've made a comment on the toluapp AUR page regarding this. -
[SOLVED] Attempting to build conky-lua
Trying to get conky-1.9.0 to work with lua, got all the flags set so it does, but anytime I attempt to run make on it, It constantly gives me this error.
Making all in src
make[1]: Entering directory `/home/multimoon/Documents/conky-1.9.0/src'
make all-am
make[2]: Entering directory `/home/multimoon/Documents/conky-1.9.0/src'
make[2]: Leaving directory `/home/multimoon/Documents/conky-1.9.0/src'
make[1]: Leaving directory `/home/multimoon/Documents/conky-1.9.0/src'
Making all in doc
make[1]: Entering directory `/home/multimoon/Documents/conky-1.9.0/doc'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/multimoon/Documents/conky-1.9.0/doc'
Making all in lua
make[1]: Entering directory `/home/multimoon/Documents/conky-1.9.0/lua'
Makefile:678: *** missing separator. Stop.
make[1]: Leaving directory `/home/multimoon/Documents/conky-1.9.0/lua'
make: *** [all-recursive] Error 1
I'm decent with linux, rather new to Archlinux, so If anyone can give me a hand, I would appreciate it.
Last edited by Multimoon (2012-10-13 02:38:51)Output for pacman -Ql conky-lua:
conky-lua /etc/conky/conky.conf
conky-lua /etc/conky/conky_no_x11.conf
conky-lua /usr/
conky-lua /usr/bin/
conky-lua /usr/bin/conky
conky-lua /usr/lib/
conky-lua /usr/lib/conky/
conky-lua /usr/lib/conky/libcairo.a
conky-lua /usr/lib/conky/libcairo.la
conky-lua /usr/lib/conky/libcairo.so
conky-lua /usr/lib/conky/libcairo.so.0
conky-lua /usr/lib/conky/libcairo.so.0.0.0
conky-lua /usr/lib/conky/libimlib2.a
conky-lua /usr/lib/conky/libimlib2.la
conky-lua /usr/lib/conky/libimlib2.so
conky-lua /usr/lib/conky/libimlib2.so.0
conky-lua /usr/lib/conky/libimlib2.so.0.0.0
conky-lua /usr/share/
conky-lua /usr/share/licenses/
conky-lua /usr/share/licenses/conky/
conky-lua /usr/share/licenses/conky/LICENSE
conky-lua /usr/share/man/
conky-lua /usr/share/man/man1/
conky-lua /usr/share/man/man1/conky.1.gz
conky-lua /usr/share/vim/
conky-lua /usr/share/vim/vimfiles/
conky-lua /usr/share/vim/vimfiles/ftdetect/
conky-lua /usr/share/vim/vimfiles/ftdetect/conkyrc.vim
conky-lua /usr/share/vim/vimfiles/syntax/
conky-lua /usr/share/vim/vimfiles/syntax/conkyrc.vim
Then for find:
/usr/lib/libcairo.so
/usr/lib/conky/libcairo.so
Last edited by Multimoon (2012-10-11 20:19:04) -
I can't seems to get conky-lua install nor build. This is the error I got.
gcc: error: /tmp/packerbuild-1000/conky-lua/conky-lua/src/conky-1.9.0/lua/.libs/libcairo.so: No such file or directory
make[2]: *** [libcairo.la] Error 1
make[2]: Leaving directory `/tmp/packerbuild-1000/conky-lua/conky-lua/src/conky-1.9.0/lua'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/tmp/packerbuild-1000/conky-lua/conky-lua/src/conky-1.9.0/lua'
make: *** [all-recursive] Error 1
==> ERROR: A failure occurred in build().
Aborting...
The build failed.
Using PKGBUILD from AUR. Tried both way, using AUR helper packer -S conky-lua and download PKGBUILD and makepkg it still give me the same error. Anyone would be kind enough to tell me what did I do wrong?Joxy wrote:
Actually, you did install conky, it just installed with a warning.
As far as I know, you can safely ignore that warning.
What is this warning anyway?
conky needs to get its directory permission fixed. Please submit a bug report.
Someone had same problem with nitrogen and conky and reported a bug (cant find link right now). Should I report a bug also?
The warning is just what it says. Permissions for the directory /man/man1 in the package differs on the one in your system. Permissions should be set right in the PKGBUILD. You may try to contact the contributors of the PKGBUILDs (conky, nitrogen,..) and tell them that -> bugreport. -
while trying to run a conky lua script i get this out put
no field package.preload['cairo']
no file './cairo.lua'
no file '/usr/share/lua/5.1/cairo.lua'
no file '/usr/share/lua/5.1/cairo/init.lua'
no file '/usr/lib/lua/5.1/cairo.lua'
no file '/usr/lib/lua/5.1/cairo/init.lua'
no file './cairo.so'
no file '/usr/lib/lua/5.1/cairo.so'
no file '/usr/lib/lua/5.1/loadall.so'
i have installed conky-lua-nv and all dependices are installed, what am i missing to get this running i have tried googling the answer but nothing helped.
here is conky -v output
Conky 1.9.0 compiled Sat Aug 18 20:07:34 EDT 2012 for Linux 3.4.9-1-ARCH (x86_64)
Compiled in features:
System config file: /etc/conky/conky.conf
Package library path: /usr/lib/conky
X11:
* Xdamage extension
* XDBE (double buffer extension)
* Xft
* ARGB visual
Music detection:
* MPD
* MOC
General:
* math
* hddtemp
* portmon
* Curl
* RSS
* wireless
* support for IBM/Lenovo notebooks
* nvidia
* config-output
* Imlib2
* apcupsd
* iostats
* ncurses
* Lua
Lua bindings:
* Cairo
* Imlib2
edit
nothing appears to be in the folder even resembling cairo
Last edited by xcabal (2012-08-19 00:22:05)xcabal wrote:
while trying to run a conky lua script i get this out put
no field package.preload['cairo']
no file './cairo.lua'
no file '/usr/share/lua/5.1/cairo.lua'
no file '/usr/share/lua/5.1/cairo/init.lua'
no file '/usr/lib/lua/5.1/cairo.lua'
no file '/usr/lib/lua/5.1/cairo/init.lua'
no file './cairo.so'
no file '/usr/lib/lua/5.1/cairo.so'
no file '/usr/lib/lua/5.1/loadall.so'
i have installed conky-lua-nv and all dependices are installed, what am i missing to get this running i have tried googling the answer but nothing helped.
here is conky -v output
Conky 1.9.0 compiled Sat Aug 18 20:07:34 EDT 2012 for Linux 3.4.9-1-ARCH (x86_64)
Compiled in features:
System config file: /etc/conky/conky.conf
Package library path: /usr/lib/conky
X11:
* Xdamage extension
* XDBE (double buffer extension)
* Xft
* ARGB visual
Music detection:
* MPD
* MOC
General:
* math
* hddtemp
* portmon
* Curl
* RSS
* wireless
* support for IBM/Lenovo notebooks
* nvidia
* config-output
* Imlib2
* apcupsd
* iostats
* ncurses
* Lua
Lua bindings:
* Cairo
* Imlib2
edit
nothing appears to be in the folder even resembling cairo
Did you check the AUR, or the Wiki? Go check the AUR package for Conky-lua and see if any of the comments on there are helpful, please. -
[SOLVED] Question about conky-lua-arch.
I've managed to get conky-lua-arch up and working except for one minor issue. When I launch it, it automatically displays on the far right side of my 2nd monitor. This leads me to believe its alignment is pre-configured to run on the right side of the screen, which is fine, but how do I get it to be on the right side of my "primary" monitor instead? I've looked thru /usr/share/conky-lua-arch/clock-rings.lua but could not find an alignment or position parameter. I also could not find any other conky-lua-arch config files to look at. Any tips or suggestions are appreciated, thanks.
EDIT: The config file was located elsewhere. Solved.
Last edited by GunnDawg (2015-05-22 08:53:10)Please remember to mark the thread as solved https://bbs.archlinux.org/viewtopic.php?id=130309
-
I used this as a lua script guide for conky (semi-relvent)
error message I can't resolve with my current lua knowledge or though research/script reading.
Conky: llua_do_call: function conky_main execution failed: attempt to call a nil value
conky config
# Conky, a system monitor, based on torsmo
# Any original torsmo code is licensed under the BSD license
# All code written since the fork of torsmo is licensed under the GPL
# Please see COPYING for details
# Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen
# Copyright (c) 2005-2010 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS)
# All rights reserved.
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# - Conky settings - #
update_interval .5
total_run_times 0
net_avg_samples 1
cpu_avg_samples 1
imlib_cache_size 0
double_buffer yes
no_buffers yes
# - Text settings - #
use_xft yes
xftfont Ubuntu:size=9
override_utf8_locale yes
text_buffer_size 2048
# - Window specifications - #
own_window_class Conky
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
#own_window_argb_visual yes
#own_window_argb_value 100
alignment bottom_right
alignment tr
gap_x -2
gap_y 180
minimum_size 350 300
default_bar_size 100 8
draw_shades no
default_color efefef
default_shade_color 1d1d1d
background no
border_width 1
default_color white
default_outline_color white
default_shade_color white
draw_borders no
draw_graph_borders yes
draw_outline no
out_to_console no
out_to_stderr no
extra_newline no
own_window yes
own_window_class Conky
own_window_type desktop
stippled_borders 0
update_interval 1.0
uppercase no
use_spacer none
show_graph_scale no
show_graph_range no
lua_load ./conky_outline.lua
lua_draw_hook_post main
TEXT
$alignc CPU
#${scroll 16 $nodename - $sysname $kernel on $machine | }
#$hr
#${color grey}Uptime:$color $uptime
#${color grey}Frequency (in MHz):$color $freq
#${color grey}Frequency (in GHz):$color $freq_g
#${color grey}RAM Usage:$color $mem/$memmax - $memperc% ${membar 4}
#${color grey}Swap Usage:$color $swap/$swapmax - $swapperc% ${swapbar 4}
#${color grey}CPU Usage:$color ${cpu cpu0}% ${cpugauge 0}
#${color grey}Processes:$color $processes ${color grey}Running:$color $running_processes
#$hr
#${color grey}File systems:
# / $color${fs_used /}/${fs_size /} ${fs_bar 6 /}
#${color grey}Networking:
#Up:$color ${upspeed eth0} ${color grey} - Down:$color ${downspeed eth0}
#$hr
#${color grey}Name PID CPU% MEM%
#${color lightgrey} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
#${color lightgrey} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
#${color lightgrey} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
#${color lightgrey} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
the lua script giving the errors
--[[line_width=5
top_left_x=20
top_left_y=20
rec_width=50
rec_height=50
red=1
green=0
blue=0
alpha=1 ]]
--draw it
require 'cario'
line_width=5
top_left_x=20
top_left_y=20
rec_width=50
rec_height=50
red=1
green=0
blue=0
alpha=1
function conky_main()
if value == nil then value = 0 end
pct = value/pt['max']
if conky_window == nil then return end
--local updates = conky_parse('${updates}')
-- update_num = tonumber(updates)
--if updates_num>5 then
cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
cr = cairo_create(cs)
--local updates=tonumber(conky_parse('${updates}')
cairo_set_line_width (cr,line_width)
cairo_rectangle (cr,top_left_x,top_left_y,rec_width,rec_height)
cairo_set_source_rgba (cr,red,green,blue,alpha)
--end-- if updates>5
cairo_destroy(cr)
cairo_surface_destroy(cs)
cr=nil
end-- end main function
ra
backgroud for anybody that cares.
Ive been trying to learn enough about lua and conky enough to make my own lua script for conky for flexabilty reasons. I want to be able to draw the background with lua which is what im trying to do here as a proof of concept.runny6play wrote:
I tried it. It had no effect. also I changed lua_draw_hook_post main to lua_draw_hook_post conky_main
and this is what i got. though i think its just annother error for the setting i just changed because its incorrect.
Conky: llua_load: /home/alec/conky_outline.lua:11: module 'cario' not found:
no field package.preload['cario']
no file './cario.lua'
no file '/usr/share/lua/5.1/cario.lua'
no file '/usr/share/lua/5.1/cario/init.lua'
no file '/usr/lib/lua/5.1/cario.lua'
no file '/usr/lib/lua/5.1/cario/init.lua'
no file '/usr/lib/conky/libcario.so'
no file './cario.so'
no file '/usr/lib/lua/5.1/cario.so'
no file '/usr/lib/lua/5.1/loadall.so'
Conky: desktop window (15d) is root window
Conky: window type - desktop
Conky: drawing to created window (0x1200001)
Conky: drawing to double buffer
Conky: llua_do_call: function conky_main execution failed: attempt to call a nil value
Conky: llua_do_call: function conky_main execution failed: attempt to call a nil value
Conky: llua_do_call: function conky_main execution failed: attempt to call a nil value
Conky: llua_do_call: function conky_main execution failed: attempt to call a nil value
Shouldn't that be "Cairo" and not "Cario"? -
Memory Leakage in Conky with Lua
Hi there, I've been experiencing ongoing memory leakage using my Conky + Lua scripts. It tends to keep accumulating memory until I kill the process and restart it. Highest I've seen it go is 10% of my 4gb of RAM, so it does get to be substantial if unchecked.
I did google it, and it mentioned something about cairo_destroy(cr), so I inserted it at the end of functions randomly where it made sense (to my limited scripting skills) and where it didn't (just in case), but it didn't seem to make any difference.
Here is the lua script - it creates rings as % bars, I believe it was taken from somewhere on the arch forums months ago where it was also modified.
Ring Meters by londonali1010 (2009)
This script draws percentage meters as rings. It is fully customisable; all options are described in the script.
To call this script in Conky, use the following (assuming that you save this script to ~/scripts/rings.lua):
lua_load ~/scripts/rings-v1.2.1.lua
lua_draw_hook_pre ring_stats
-- Background settings
corner_r=20
main_bg_colour=0x060606
main_bg_alpha=0.4
-- Ring color settings
ring_background_color = 0x000000
ring_background_alpha = 0.6
ring_foreground_color = 0x909090
ring_foreground_alpha = 1
-- Rings settings
settings_table = {
name='cpu',
arg='cpu2',
max=100,
bg_colour=ring_background_color,
bg_alpha=ring_background_alpha,
fg_colour=ring_foreground_color,
fg_alpha=ring_foreground_alpha,
x=50, y=55,
radius=31,
thickness=3,
start_angle=-180,
end_angle=0
name='cpu',
arg='cpu1',
max=100,
bg_colour=ring_background_color,
bg_alpha=ring_background_alpha,
fg_colour=ring_foreground_color,
fg_alpha=ring_foreground_alpha,
x=50, y=55,
radius=35,
thickness=3,
start_angle=-180,
end_angle=0
name='memperc',
arg='',
max=100,
bg_colour=ring_background_color,
bg_alpha=ring_background_alpha,
fg_colour=ring_foreground_color,
fg_alpha=ring_foreground_alpha,
x=205, y=55,
radius=32,
thickness=10,
start_angle=-180,
end_angle=-0
require 'cairo'
local function rgb_to_r_g_b(colour,alpha)
return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end
local function draw_ring(cr,t,pt)
local w,h=conky_window.width,conky_window.height
local xc,yc,ring_r,ring_w,sa,ea=pt['x'],pt['y'],pt['radius'],pt['thickness'],pt['start_angle'],pt['end_angle']
local bgc, bga, fgc, fga=pt['bg_colour'], pt['bg_alpha'], pt['fg_colour'], pt['fg_alpha']
local angle_0=sa*(2*math.pi/360)-math.pi/2
local angle_f=ea*(2*math.pi/360)-math.pi/2
local t_arc=t*(angle_f-angle_0)
-- Draw background ring
cairo_arc(cr,xc,yc,ring_r,angle_0,angle_f)
cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga))
cairo_set_line_width(cr,ring_w)
cairo_stroke(cr)
-- Draw indicator ring
cairo_arc(cr,xc,yc,ring_r,angle_0,angle_0+t_arc)
cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
cairo_stroke(cr)
end
local function conky_ring_stats()
local function setup_rings(cr,pt)
local str=''
local value=0
str=string.format('${%s %s}',pt['name'],pt['arg'])
str=conky_parse(str)
value=tonumber(str)
if value == nil then value = 0 end
pct=value/pt['max']
draw_ring(cr,pct,pt)
end
if conky_window==nil then return end
local cs=cairo_xlib_surface_create(conky_window.display,conky_window.drawable,conky_window.visual, conky_window.width,conky_window.height)
local cr=cairo_create(cs)
local updates=conky_parse('${updates}')
update_num=tonumber(updates)
if update_num>1 then
for i in pairs(settings_table) do
setup_rings(cr,settings_table[i])
end
end
cairo_destroy(cr)
end
--[[ This is a script made for draw a transaprent background for conky ]]
local function conky_draw_bg()
if conky_window==nil then return end
local w=conky_window.width
local h=conky_window.height
local cs=cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, w, h)
local cr=cairo_create(cs)
-- local thick=2
cairo_move_to(cr,corner_r,0)
cairo_line_to(cr,w-corner_r,0)
cairo_curve_to(cr,w,0,w,0,w,corner_r)
cairo_line_to(cr,w,h-corner_r)
cairo_curve_to(cr,w,h,w,h,w-corner_r,h)
cairo_line_to(cr,corner_r,h)
cairo_curve_to(cr,0,h,0,h,0,h-corner_r)
cairo_line_to(cr,0,corner_r)
cairo_curve_to(cr,0,0,0,0,corner_r,0)
cairo_close_path(cr)
cairo_set_source_rgba(cr,rgb_to_r_g_b(main_bg_colour,main_bg_alpha))
--cairo_set_line_width(cr,thick)
--cairo_stroke(cr)
cairo_fill(cr)
cairo_destroy(cr)
end
function conky_main()
conky_draw_bg()
conky_ring_stats()
cairo_destroy(cr)
end
And this is called into conky via:
background no
override_utf8_locale no
use_xft yes
xftfont Monospace:size=8
## orig font cure
text_buffer_size 2048
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent yes
own_window_type desktop
own_window_colour 191919
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 600 90
maximum_width 320
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color 909090
default_shade_color fed053
default_outline_color 7f8f9f
alignment br
gap_x 30
gap_y 50
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale no
color1 fff
border_inner_margin 5
border_outer_margin 5
own_window_argb_visual no
own_window_argb_value 200
lua_load ~/.conky/rings.lua
lua_draw_hook_pre main
Left out the conky TEXT section unless anybody desperately needs to see that too.
If anybody can point me in the right direction with this silly thing, that would be appreciated. Thanks!
Last edited by ugugii (2011-11-16 17:42:00)No I meant that the destroy functions should not be in conky_main at all. Why? Because you are using cr as an argument when you have no local cr defined. You are passing the undefined value (nil) to these destroy functions and they do nothing.
Like I said, I don't use conky or cairo but it is generally a good idea to destroy a resource you create. If you don't you will get memory leaks because "creating" is usually vague language that comes down to allocating memory and "destroy" deallocates memory.
This line from your own post creates a surface and stores it in the cs variable:
local cs=cairo_xlib_surface_create(conky_window.display,conky_window.drawable,conky_window.visual, conky_window.width,conky_window.height)
Yet you forget to deallocate the surface stored in cs. So add a line like this after each cairo_destroy(cr):
cairo_surface_destroy(cs)
I hope that helps. -
[SOLVED]After a logout/in , can't start conky as user.
I logged out of my xfce session. Logged back in and conky did not start.
I now get this error:
xxx@xxx~]$ conky -c ~/AccuW_2/accuw.Toronto.conky
[1] 1442
bash: -c: command not found
[xxx@xxx ~]$ conky: no process found
No changes at all were made to the computer. No software was uninstalled/reinstalled.
Here is my conky config that I've been using for months:
## killall conky && conky -c ~/AccuW_2/accuw.Toronto.conky &
# 1e_Accuweather_USA_Images script by TeoBigusGeekus
# http://crunchbanglinux.org/forums/post/212605/
### Begin Window Settings ##################################################
# Create own window instead of using desktop (required in nautilus)
own_window yes
# Use the Xdbe extension? (eliminates flicker)
# It is highly recommended to use own window with this one
# so double buffer won't be so big.
double_buffer yes
own_window_type normal #override
own_window_transparent yes
#own_window_hints undecorated,below,skip_taskbar,skip_pager
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_colour black
own_window_class Conky
own_window_title tedbell
### ARGB can be used for real transparency
### NOTE that a composite manager is required for real transparency.
### This option will not work as desired (in most cases) in conjunction with
### own_window_type override
# own_window_argb_visual yes
### When ARGB visuals are enabled, this use this to modify the alpha value
### Use: own_window_type normal
### Use: own_window_transparent no
### Valid range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity.
#own_window_argb_value 150
#minimum_size 310 0 ## width, height
maximum_width 310 ## width, usually a good idea to equal minimum width
gap_x 10 ### left &right
gap_y 10 ### up & down
alignment top_right
#################################################### End Window Settings ###
### Font Settings ##########################################################
# Use Xft (anti-aliased font and stuff)
use_xft yes
xftfont MonoCondensed:bold:size=10
# Alpha of Xft font. Must be a value at or between 1 and 0 ###
xftalpha 1
# Force UTF8? requires XFT ###
override_utf8_locale yes
draw_shades yes #no #### <<<--- To see it easier on light screens.
default_shade_color black
draw_outline yes #no #### <<<--- Amplifies text if yes
default_outline_color black
uppercase no
###################################################### End Font Settings ###
### Color Settings #########################################################
default_shade_color gray
default_outline_color black
default_color DCDCDC #Gainsboro
color0 ffe595 #Teo Gold
color1 778899 #LightSlateGrey
color2 FF8C00 #Darkorange
color3 7FFF00 #Chartreuse
color4 FFA07A #LightSalmon
color5 000000 #NavajoWhite
color6 00BFFF #DeepSkyBlue
color7 00FFFF #Cyan #48D1CC #MediumTurquoise
color8 FFFF00 #Yellow
color9 FF0000 #Red #A52A2A #DarkRed
##################################################### End Color Settings ###
### Borders Section ########################################################
draw_borders no
# Stippled borders?
stippled_borders 0
# border margins
border_inner_margin 5
border_outer_margin 0
# border width
border_width 0
# graph borders
draw_graph_borders no
##################################################### End Borders Secton ###
### Miscellaneous Section ##################################################
# Boolean value, if true, Conky will be forked to background when started.
background no
# Adds spaces around certain objects to stop them from moving other things
# around, this only helps if you are using a mono font
# Options: right, left or none
use_spacer right
# Default and Minimum size is 256 - needs more for single commands that
# "call" a lot of text IE: bash scripts
text_buffer_size 256
# Subtract (file system) buffers from used memory?
no_buffers yes
# change GiB to G and MiB to M
short_units yes
# Like it says, ot pads the decimals on % values
# doesn't seem to work since v1.7.1
pad_percents 2
# Maximum size of user text buffer, i.e. layout below TEXT line in config file
# (default is 16384 bytes)
# max_user_text 16384
############################################## End Miscellaneous Section ###
### LUA Settings ###########################################################
## Above and After TEXT - requires a composite manager or blinks.
# lua_load ~/Conky/LUA/draw-bg.lua
#TEXT
#${lua conky_draw_bg 10 0 0 0 0 0x000000 0.6}
## ${lua conky_draw_bg corner_radius x_position y_position width height color alpha}
## OR Both above TEXT (No composite manager required - no blinking!)
lua_load ~/Conky/LUA/draw-bg.lua
lua_draw_hook_pre draw_bg 5 0 0 0 0 0x000000 0.0
####################################################### End LUA Settings ###
# The all important - How often conky refreshes.
# If you have a "Crey" try: 0.2 - smokin' - but watch the CPU useage go UP!
update_interval 1
## ${image ~/Conky/images/red_1.png -p 0,15 -s 67x40}
## ${image ~/Conky/images/red_1.png -p 165,52 -s 125x75}
## $HOME/AccuW_2/Toronto/acc_int_images
default_bar_size 100 12
# stuff after 'TEXT' will be formatted on screen
TEXT
${color0}${time %A %d %b %Y} ${color1}--${color0} Scarborough, ON ${color1}--${color0} ${time %T}${color}\
${texeci 500 bash $HOME/AccuW_2/Toronto/acc_int_images}\
${image $HOME/AccuW_2/Toronto/cc.png -p 220,25 -s 67x40}
${execpi 600 sed -n '1p' $HOME/AccuW_2/Toronto/messages}
${font Instruction:size=20} Now ${execpi 600 sed -n '29p' $HOME/AccuW_2/Toronto/curr_cond}${goto 120} FL ${execpi 600 sed -n '30p' $HOME/AccuW_2/Toronto/curr_cond}${font}
${color0}Wind: ${color}${execpi 600 sed -n '31p' $HOME/AccuW_2/Toronto/curr_cond} ${execpi 600 sed -n '32p' $HOME/AccuW_2/Toronto/curr_cond}\
${color0}Today Tonight${color}
${color0}Hum: ${color}${execpi 600 sed -n '33p' $HOME/AccuW_2/Toronto/curr_cond}\
${font Toronto Subway:size=14}${goto 170}${color6}${execpi 600 sed -n '26p' $HOME/AccuW_2/Toronto/first_days}${color}\
${goto 210}${color9}${execpi 600 sed -n '27p' $HOME/AccuW_2/Toronto/first_days}${color}\
${goto 245}${color6}${execpi 600 sed -n '32p' $HOME/AccuW_2/Toronto/first_days}${color}\
${goto 290}${color9}${execpi 600 sed -n '31p' $HOME/AccuW_2/Toronto/first_days}${color} ${font}
${color0}Bar: ${color}${execpi 600 sed -n '34p' $HOME/AccuW_2/Toronto/curr_cond}\
${image $HOME/AccuW_2/Toronto/tod.png -p 160,100 -s 67x40}\
${image $HOME/AccuW_2/Toronto/ton.png -p 235,100 -s 67x40}
${color0}Cloud: ${color}${execpi 600 sed -n '35p' $HOME/AccuW_2/Toronto/curr_cond}
${color0}UVI: ${color}${execpi 600 sed -n '36p' $HOME/AccuW_2/Toronto/curr_cond}
${color0}Vis: ${color}${execpi 600 sed -n '38p' $HOME/AccuW_2/Toronto/curr_cond}
${color0}DP: ${color}${execpi 600 sed -n '37p' $HOME/AccuW_2/Toronto/curr_cond}°
${color0}Sunrise: ${color}${execpi 600 sed -n '39p' $HOME/AccuW_2/Toronto/curr_cond}\
${goto 160}${color0} Sunset: ${color}${execpi 600 sed -n '40p' $HOME/AccuW_2/Toronto/curr_cond}
${color0}Moonrise: ${color}${execpi 600 sed -n '41p' $HOME/AccuW_2/Toronto/curr_cond}\
${goto 160}${color0}Moonset: ${color}${execpi 600 sed -n '42p' $HOME/AccuW_2/Toronto/curr_cond}
${color0}9 DAY FORECAST ${color1}${hr}${color}
${color1}${execpi 600 sed -n '5p' $HOME/AccuW_2/Toronto/first_days}\
${execpi 600 sed -n '10p' $HOME/AccuW_2/Toronto/first_days}\
${execpi 600 sed -n '15p' $HOME/AccuW_2/Toronto/first_days}${color}\
${image $HOME/AccuW_2/Toronto/6.png -p 5,232 -s 67x40}\
${image $HOME/AccuW_2/Toronto/11.png -p 120,232 -s 67x40}\
${image $HOME/AccuW_2/Toronto/16.png -p 220,232 -s 67x40}
${font Toronto Subway:size=11}
${color6}${execpi 600 sed -n '8p' $HOME/AccuW_2/Toronto/first_days}°\
${color6}${goto 180}${execpi 600 sed -n '13p' $HOME/AccuW_2/Toronto/first_days}°\
${color6}${goto 283}${execpi 600 sed -n '18p' $HOME/AccuW_2/Toronto/first_days}°
${color9}${execpi 600 sed -n '9p' $HOME/AccuW_2/Toronto/first_days}°\
${color9}${goto 180}${execpi 600 sed -n '14p' $HOME/AccuW_2/Toronto/first_days}°\
${color9}${goto 283}${execpi 600 sed -n '19p' $HOME/AccuW_2/Toronto/first_days}° ${font}${color}
${color1} ${execpi 600 sed -n '20p' $HOME/AccuW_2/Toronto/first_days}\
${execpi 600 sed -n '1p' $HOME/AccuW_2/Toronto/last_days}\
${execpi 600 sed -n '6p' $HOME/AccuW_2/Toronto/last_days}${color}\
${image $HOME/AccuW_2/Toronto/21.png -p 5,310 -s 67x40}\
${image $HOME/AccuW_2/Toronto/last_2.png -p 120,310 -s 67x40}\
${image $HOME/AccuW_2/Toronto/last_7.png -p 223,310 -s 67x40}
${font Toronto Subway:size=11}
${color6}${execpi 600 sed -n '23p' $HOME/AccuW_2/Toronto/first_days}°\
${color6}${goto 180}${execpi 600 sed -n '4p' $HOME/AccuW_2/Toronto/last_days}°\
${color6}${goto 283}${execpi 600 sed -n '9p' $HOME/AccuW_2/Toronto/last_days}°
${color9}${execpi 600 sed -n '24p' $HOME/AccuW_2/Toronto/first_days}°\
${color9}${goto 180}${execpi 600 sed -n '5p' $HOME/AccuW_2/Toronto/last_days}°\
${color9}${goto 283}${execpi 600 sed -n '10p' $HOME/AccuW_2/Toronto/last_days}° ${font}
${color1} ${execpi 600 sed -n '11p' $HOME/AccuW_2/Toronto/last_days}\
${execpi 600 sed -n '16p' $HOME/AccuW_2/Toronto/last_days}\
${execpi 600 sed -n '21p' $HOME/AccuW_2/Toronto/last_days}${color}\
${image $HOME/AccuW_2/Toronto/last_12.png -p 5,385 -s 67x40}\
${image $HOME/AccuW_2/Toronto/last_17.png -p 120,385 -s 67x40}\
${image $HOME/AccuW_2/Toronto/last_22.png -p 225,385 -s 67x40}
${font Toronto Subway:size=11}
${color6}${execpi 600 sed -n '14p' $HOME/AccuW_2/Toronto/last_days}°\
${color6}${goto 180}${execpi 600 sed -n '19p' $HOME/AccuW_2/Toronto/last_days}°\
${color6}${goto 283}${execpi 600 sed -n '24p' $HOME/AccuW_2/Toronto/last_days}°
${color9}${execpi 600 sed -n '15p' $HOME/AccuW_2/Toronto/last_days}°\
${color9}${goto 180}${execpi 600 sed -n '20p' $HOME/AccuW_2/Toronto/last_days}°\
${color9}${goto 283}${execpi 600 sed -n '25p' $HOME/AccuW_2/Toronto/last_days}° ${font}
${color0}COMPUTER ${color1}${hr}${color}
${font Instruction:size=7.5}
${color1}CPU0:${goto 70}${color7}${cpubar cpu0}${goto 70}${color1}${cpubar cpu4}${goto 80}${color5}${cpu cpu0}%${color}${goto 190}${color7}${execi 8 sensors | grep 'Core 0:' | cut -c16-17}°
${color1}CPU1:${goto 70}${color6}${cpubar cpu1}${goto 70}${color1}${cpubar cpu4}${goto 80}${color5}${cpu cpu1}%${color}${goto 190}${color6}${execi 8 sensors | grep 'Core 1:' | cut -c16-17}°
${color1}RAM:${goto 70}${color4}${membar}${goto 70}${color1}${cpubar cpu4}${goto 80}${color5}${memperc}%${color4}${goto 190}$mem/$memmax${font}
${color0}DISK ${color1}${hr}${color}
${color1}sda: ${color9}Write: ${diskio_write /dev/sda} ${color3}Read: ${diskio_read /dev/sda} ${color8}Temp: ${color8}${execpi 15 hddtemp -n /dev/sda} °
${font Instruction:size=7.5}
${color1}/:${goto 70}${color2}${fs_bar /}${goto 70}${color1}${cpubar cpu4}${goto 80}${color5}${fs_used_perc /} %${color2}\
${goto 190}${fs_used /}/${fs_size /}
${color1}/home:${goto 70}${color8}${fs_bar /home}${goto 70}${color1}${cpubar cpu4}${goto 80}${color5}${fs_used_perc /home} %${color8}\
${goto 190}${fs_used /home}/${fs_size /home}
${color1}../sda3:${goto 70}${color0}${fs_bar /media/sda3}${goto 70}${color1}${cpubar cpu4}${goto 80}${color5}${fs_used_perc /media/sda3} %${color0}\
${goto 190}${fs_used /media/sda3}/${fs_size /media/sda3}${font}
${color0}NETWORK ${color1}${hr}${color}
${color1}wlan0: ${color9}Down: ${downspeedf wlan0}${color3}Up: ${upspeedf wlan0}
${color8}RX${goto 110}${color8}TX${goto 200}${color8}Total
${color0}Today:${color}
${color} ${execi 300 vnstat -i wlan0 | grep "today" | awk '{print $2 $3}'}\
${color}${goto 110}${execi 300 vnstat -i wlan0 | grep "today" | awk '{print $5 $6}'}\
${color}${goto 200}${execi 300 vnstat -i wlan0 | grep "today" | awk '{print $8 $9}'}${color}
${color0}Yesterday:${color}
${color} ${execi 300 vnstat -i wlan0 | grep "yesterday" | awk '{print $2 $3}'}\
${color}${goto 110}${execi 300 vnstat -i wlan0 | grep "yesterday" | awk '{print $5 $6}'}\
${color}${goto 200}${execi 300 vnstat -i wlan0 | grep "yesterday" | awk '{print $8 $9}'}${color}
${color0}Last Week:${color}
${color} ${execi 300 vnstat -w -i wlan0 | grep "current week" | awk '{print $3 $4}'}\
${color}${goto 110}${execi 300 vnstat -w -i wlan0 | grep "current week" | awk '{print $6 $7}'}\
${color}${goto 200}${execi 300 vnstat -w -i wlan0 | grep "current week" | awk '{print $9 $10}'}${color}
${color0}${time %B}:${color}
${color} ${execi 300 vnstat -m -i wlan0 | grep "`date +"%b '%y"`" | awk '{print $3 $4}'}\
${color}${goto 110}${execi 300 vnstat -m -i wlan0 | grep "`date +"%b '%y"`" | awk '{print $6 $7}'}\
${color}${goto 200}${execi 300 vnstat -m -i wlan0 | grep "`date +"%b '%y"`" | awk '{print $9 $10}'} ${color}
Can anyone tell me how to get it to be able to run as user again. I've traced the problem down to that.
Thanks,
Last edited by tedbell (2012-08-14 11:22:09)DSpider wrote:
tedbell wrote:
P.s. In never needed the '&' to run this. If it matters, I edited my bash rc to alias the command to just 'conky'
alias conky='killall conky && conky -c ~/AccuW_2/accuw.Toronto.conky &'
Ok, there's your problem. When you're running "$ conky -c ~/AccuW_2/accuw.Toronto.conky", you're effectively running:
$ <insert 'conky' alias here> -c ~/AccuW_2/accuw.Toronto.conky
Or in other words:
$ killall conky && conky -c ~/AccuW_2/accuw.Toronto.conky & -c ~/AccuW_2/accuw.Toronto.conky
Heh. Told you this belongs in the newbie section.
There's an "-c ~/AccuW_2/accuw.Toronto.conky" appendage at the end that Bash doesn't know how to interpret.
I guess I never noticed the problem because conky always autostarted. I deleted the line and restarted and everything works now. Thanks!
Mods. move this to newbie or better yet delete it, it's embarassing. -
Cannot build conky 1.8.2 (abs)
[doctor@doctor abs]$ abs extra/conky
==> Starting ABS sync...
receiving file list ... done
extra/
extra/conky/
extra/conky/PKGBUILD
extra/conky/PKGBUILD.cmake
sent 124 bytes received 2993 bytes 890.57 bytes/sec
total size is 2759 speedup is 0.89
[doctor@doctor abs]$ cp ~/Desktop/PKGBUILD /var/abs/extra/conky/PKGBUILD
[doctor@doctor abs]$ cd extra/conky/
[doctor@doctor conky]$ makepkg
==> Making package: conky 1.8.2git20111107-1 (Tue Dec 20 13:58:28 EET 2011)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving Sources...
-> Downloading conky-1.8.2git20111107.tar.xz...
--2011-12-20 13:58:28-- ftp://ftp.archlinux.org/other/conky/conky-1.8.2git20111107.tar.xz
=> `conky-1.8.2git20111107.tar.xz.part'
Resolving ftp.archlinux.org... 209.85.41.143, 209.85.41.144
Connecting to ftp.archlinux.org|209.85.41.143|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD (1) /other/conky ... done.
==> SIZE conky-1.8.2git20111107.tar.xz ... 244616
==> PASV ... done. ==> RETR conky-1.8.2git20111107.tar.xz ... done.
Length: 244616 (239K) (unauthoritative)
100%[========================================================================================================================================================>] 244,616 54.1K/s in 4.5s
2011-12-20 13:58:36 (52.8 KB/s) - `conky-1.8.2git20111107.tar.xz.part' saved [244616]
==> Validating source files with sha1sums...
conky-1.8.2git20111107.tar.xz ... Passed
==> Extracting Sources...
-> Extracting conky-1.8.2git20111107.tar.xz with bsdtar
==> Starting build()...
Running aclocal -I m4 ...
Running libtoolize --force --copy ...
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
Running autoheader ...
Running automake --add-missing --copy --gnu ...
configure.ac:37: installing `./compile'
configure.ac:33: installing `./config.guess'
configure.ac:33: installing `./config.sub'
configure.ac:17: installing `./install-sh'
configure.ac:17: installing `./missing'
lua/Makefile.am: installing `./depcomp'
Running autoconf ...
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking how to print strings... printf
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... no
checking if : is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether gcc and cc understand -c and -o together... yes
checking for pkg-config... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.19... yes
checking for fopencookie... yes
checking for funopen... no
checking for X11... yes
checking for LUA... yes
checking for cairo... yes
checking for cairo_xlib... yes
checking for tolua++... tolua++
checking for library containing tolua_error... -ltolua++
checking for ld used by GCC... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking for shared library run path origin... done
checking for iconv... yes
checking for working iconv... yes
checking for iconv declaration...
extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking for Xext... yes
checking for XDamage... yes
checking for Xft... yes
checking for libcurl... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking for unistd.h... (cached) yes
checking sys/utsname.h usability... yes
checking sys/utsname.h presence... yes
checking for sys/utsname.h... yes
checking for sys/stat.h... (cached) yes
checking linux/soundcard.h usability... yes
checking linux/soundcard.h presence... yes
checking for linux/soundcard.h... yes
checking alsa/asoundlib.h usability... yes
checking alsa/asoundlib.h presence... yes
checking for alsa/asoundlib.h... yes
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking mcheck.h usability... yes
checking mcheck.h presence... yes
checking for mcheck.h... yes
checking sys/statfs.h usability... yes
checking sys/statfs.h presence... yes
checking for sys/statfs.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking semaphore.h usability... yes
checking semaphore.h presence... yes
checking for semaphore.h... yes
checking assert.h usability... yes
checking assert.h presence... yes
checking for assert.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking for sys/mount.h... yes
checking sys/inotify.h usability... yes
checking sys/inotify.h presence... yes
checking for sys/inotify.h... yes
checking for calloc... yes
checking for malloc... yes
checking for free... yes
checking for popen... yes
checking for sysinfo... yes
checking for getloadavg... yes
checking for memrchr... yes
checking for strndup... yes
checking for gethostbyname_r... yes
checking for library containing clock_gettime... -lrt
checking for struct statfs.f_fstypename... no
checking for db2x_xsltproc... db2x_xsltproc
checking for db2x_manxml... db2x_manxml
checking for xsltproc... xsltproc
checking if /usr/bin/ld -m elf_x86_64 accepts -O1... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating data/Makefile
config.status: creating doc/Makefile
config.status: creating src/Makefile
config.status: creating src/build.h
config.status: creating lua/Makefile
config.status: creating src/config.h
config.status: executing depfiles commands
config.status: executing libtool commands
conky 1.8.2_preNONE configured successfully:
Installing into: /usr
System config dir: /etc
C compiler flags: -I/usr/include/freetype2 -Wall -W
Libraries: -lX11 -llua -lm -ltolua++ -Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu -lXext -lXdamage -lXfixes -lXft -lcurl -lrt -ltolua++ -Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu
Linker flags: -Wl,-O1
* X11:
X11 support: yes
XDamage support: yes
XDBE support: yes
Xft support: yes
ARGB support yes
* Music detection:
Audacious: no
BMPx: no
MPD: no
MOC: no
XMMS2: no
* General:
math: no
hddtemp: yes
portmon: no
RSS: no
Curl: yes
Weather
METAR: no
XOAP: no
wireless: no
IBM: no
nvidia: no
eve-online: no
config-output: yes
Imlib2: no
ALSA mixer: no
apcupsd: yes
I/O stats: yes
ncurses: no
* Lua (yes) bindings:
Cairo: yes
Imlib2: no
Making all in src
make[1]: Entering directory `/var/abs/extra/conky/src/conky-1.8.2git20111107/src'
sh ./../text2c.sh ./../data/conky.conf defconfig.h defconfig
make all-am
make[2]: Entering directory `/var/abs/extra/conky/src/conky-1.8.2git20111107/src'
gcc -DHAVE_CONFIG_H -I. -DSYSTEM_CONFIG_FILE=\"/etc/conky/conky.conf\" -DPACKAGE_LIBDIR=\"/usr/lib/conky\" -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -I/usr/include/freetype2 -Wall -W -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT conky-conf_cookie.o -MD -MP -MF .deps/conky-conf_cookie.Tpo -c -o conky-conf_cookie.o `test -f 'conf_cookie.c' || echo './'`conf_cookie.c
mv -f .deps/conky-conf_cookie.Tpo .deps/conky-conf_cookie.Po
gcc -DHAVE_CONFIG_H -I. -DSYSTEM_CONFIG_FILE=\"/etc/conky/conky.conf\" -DPACKAGE_LIBDIR=\"/usr/lib/conky\" -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -I/usr/include/freetype2 -Wall -W -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT conky-linux.o -MD -MP -MF .deps/conky-linux.Tpo -c -o conky-linux.o `test -f 'linux.c' || echo './'`linux.c
linux.c: In function ‘get_battery_stuff’:
linux.c:1908:10: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
linux.c: In function ‘get_acpi_ac_adapter’:
linux.c:1405:9: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
linux.c: In function ‘get_acpi_fan’:
linux.c:1329:8: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
linux.c: In function ‘update_load_average’:
linux.c:825:9: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
linux.c: In function ‘update_threads’:
linux.c:592:9: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
linux.c: In function ‘update_net_stats’:
linux.c:364:7: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
linux.c:365:7: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
linux.c: In function ‘update_gateway_info’:
linux.c:288:8: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
linux.c: In function ‘get_ioscheduler’:
linux.c:230:9: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
linux.c: In function ‘get_laptop_mode’:
linux.c:208:9: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
linux.c: In function ‘update_uptime’:
linux.c:126:9: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
linux.c: In function ‘is_disk’:
linux.c:2311:18: warning: ‘dev_last’ may be used uninitialized in this function [-Wuninitialized]
mv -f .deps/conky-linux.Tpo .deps/conky-linux.Po
gcc -DHAVE_CONFIG_H -I. -DSYSTEM_CONFIG_FILE=\"/etc/conky/conky.conf\" -DPACKAGE_LIBDIR=\"/usr/lib/conky\" -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -I/usr/include/freetype2 -Wall -W -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT conky-users.o -MD -MP -MF .deps/conky-users.Tpo -c -o conky-users.o `test -f 'users.c' || echo './'`users.c
mv -f .deps/conky-users.Tpo .deps/conky-users.Po
gcc -DHAVE_CONFIG_H -I. -DSYSTEM_CONFIG_FILE=\"/etc/conky/conky.conf\" -DPACKAGE_LIBDIR=\"/usr/lib/conky\" -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -I/usr/include/freetype2 -Wall -W -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT conky-sony.o -MD -MP -MF .deps/conky-sony.Tpo -c -o conky-sony.o `test -f 'sony.c' || echo './'`sony.c
mv -f .deps/conky-sony.Tpo .deps/conky-sony.Po
gcc -DHAVE_CONFIG_H -I. -DSYSTEM_CONFIG_FILE=\"/etc/conky/conky.conf\" -DPACKAGE_LIBDIR=\"/usr/lib/conky\" -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -I/usr/include/freetype2 -Wall -W -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT conky-i8k.o -MD -MP -MF .deps/conky-i8k.Tpo -c -o conky-i8k.o `test -f 'i8k.c' || echo './'`i8k.c
mv -f .deps/conky-i8k.Tpo .deps/conky-i8k.Po
gcc -DHAVE_CONFIG_H -I. -DSYSTEM_CONFIG_FILE=\"/etc/conky/conky.conf\" -DPACKAGE_LIBDIR=\"/usr/lib/conky\" -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -I/usr/include/freetype2 -Wall -W -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT conky-x11.o -MD -MP -MF .deps/conky-x11.Tpo -c -o conky-x11.o `test -f 'x11.c' || echo './'`x11.c
mv -f .deps/conky-x11.Tpo .deps/conky-x11.Po
gcc -DHAVE_CONFIG_H -I. -DSYSTEM_CONFIG_FILE=\"/etc/conky/conky.conf\" -DPACKAGE_LIBDIR=\"/usr/lib/conky\" -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -I/usr/include/freetype2 -Wall -W -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT conky-fonts.o -MD -MP -MF .deps/conky-fonts.Tpo -c -o conky-fonts.o `test -f 'fonts.c' || echo './'`fonts.c
mv -f .deps/conky-fonts.Tpo .deps/conky-fonts.Po
gcc -DHAVE_CONFIG_H -I. -DSYSTEM_CONFIG_FILE=\"/etc/conky/conky.conf\" -DPACKAGE_LIBDIR=\"/usr/lib/conky\" -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -I/usr/include/freetype2 -Wall -W -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT conky-hddtemp.o -MD -MP -MF .deps/conky-hddtemp.Tpo -c -o conky-hddtemp.o `test -f 'hddtemp.c' || echo './'`hddtemp.c
mv -f .deps/conky-hddtemp.Tpo .deps/conky-hddtemp.Po
gcc -DHAVE_CONFIG_H -I. -DSYSTEM_CONFIG_FILE=\"/etc/conky/conky.conf\" -DPACKAGE_LIBDIR=\"/usr/lib/conky\" -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -I/usr/include/freetype2 -Wall -W -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT conky-ccurl_thread.o -MD -MP -MF .deps/conky-ccurl_thread.Tpo -c -o conky-ccurl_thread.o `test -f 'ccurl_thread.c' || echo './'`ccurl_thread.c
mv -f .deps/conky-ccurl_thread.Tpo .deps/conky-ccurl_thread.Po
gcc -DHAVE_CONFIG_H -I. -DSYSTEM_CONFIG_FILE=\"/etc/conky/conky.conf\" -DPACKAGE_LIBDIR=\"/usr/lib/conky\" -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -I/usr/include/freetype2 -Wall -W -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT conky-llua.o -MD -MP -MF .deps/conky-llua.Tpo -c -o conky-llua.o `test -f 'llua.c' || echo './'`llua.c
mv -f .deps/conky-llua.Tpo .deps/conky-llua.Po
gcc -DHAVE_CONFIG_H -I. -DSYSTEM_CONFIG_FILE=\"/etc/conky/conky.conf\" -DPACKAGE_LIBDIR=\"/usr/lib/conky\" -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -I/usr/include/freetype2 -Wall -W -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT conky-apcupsd.o -MD -MP -MF .deps/conky-apcupsd.Tpo -c -o conky-apcupsd.o `test -f 'apcupsd.c' || echo './'`apcupsd.c
apcupsd.c: In function ‘update_apcupsd’:
apcupsd.c:219:7: warning: ‘sock’ may be used uninitialized in this function [-Wuninitialized]
mv -f .deps/conky-apcupsd.Tpo .deps/conky-apcupsd.Po
gcc -DHAVE_CONFIG_H -I. -DSYSTEM_CONFIG_FILE=\"/etc/conky/conky.conf\" -DPACKAGE_LIBDIR=\"/usr/lib/conky\" -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -I/usr/include/freetype2 -Wall -W -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT conky-iconv_tools.o -MD -MP -MF .deps/conky-iconv_tools.Tpo -c -o conky-iconv_tools.o `test -f 'iconv_tools.c' || echo './'`iconv_tools.c
mv -f .deps/conky-iconv_tools.Tpo .deps/conky-iconv_tools.Po
gcc -DHAVE_CONFIG_H -I. -DSYSTEM_CONFIG_FILE=\"/etc/conky/conky.conf\" -DPACKAGE_LIBDIR=\"/usr/lib/conky\" -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -I/usr/include/freetype2 -Wall -W -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT conky-colours.o -MD -MP -MF .deps/conky-colours.Tpo -c -o conky-colours.o `test -f 'colours.c' || echo './'`colours.c
mv -f .deps/conky-colours.Tpo .deps/conky-colours.Po
gcc -DHAVE_CONFIG_H -I. -DSYSTEM_CONFIG_FILE=\"/etc/conky/conky.conf\" -DPACKAGE_LIBDIR=\"/usr/lib/conky\" -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -I/usr/include/freetype2 -Wall -W -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT conky-combine.o -MD -MP -MF .deps/conky-combine.Tpo -c -o conky-combine.o `test -f 'combine.c' || echo './'`combine.c
mv -f .deps/conky-combine.Tpo .deps/conky-combine.Po
gcc -DHAVE_CONFIG_H -I. -DSYSTEM_CONFIG_FILE=\"/etc/conky/conky.conf\" -DPACKAGE_LIBDIR=\"/usr/lib/conky\" -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -I/usr/include/freetype2 -Wall -W -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT conky-common.o -MD -MP -MF .deps/conky-common.Tpo -c -o conky-common.o `test -f 'common.c' || echo './'`common.c
mv -f .deps/conky-common.Tpo .deps/conky-common.Po
gcc -DHAVE_CONFIG_H -I. -DSYSTEM_CONFIG_FILE=\"/etc/conky/conky.conf\" -DPACKAGE_LIBDIR=\"/usr/lib/conky\" -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -I/usr/include/freetype2 -Wall -W -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT conky-conky.o -MD -MP -MF .deps/conky-conky.Tpo -c -o conky-conky.o `test -f 'conky.c' || echo './'`conky.c
conky.c: In function ‘generate_text_internal’:
conky.c:887:7: error: unknown type name ‘bool’
conky.c:887:28: error: ‘false’ undeclared (first use in this function)
conky.c:887:28: note: each undeclared identifier is reported only once for each function it appears in
conky.c:892:17: error: ‘true’ undeclared (first use in this function)
conky.c:742:19: warning: variable ‘needed’ set but not used [-Wunused-but-set-variable]
conky.c: In function ‘draw_each_line_inner’:
conky.c:2827:6: warning: variable ‘last_special_needed’ set but not used [-Wunused-but-set-variable]
make[2]: *** [conky-conky.o] Error 1
make[2]: Leaving directory `/var/abs/extra/conky/src/conky-1.8.2git20111107/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/abs/extra/conky/src/conky-1.8.2git20111107/src'
make: *** [all-recursive] Error 1
==> ERROR: A failure occurred in build().
Aborting...
My PKGBUILD is
# $Id: PKGBUILD 142242 2011-11-07 05:35:59Z bisson $
# Contributor: Giovanni Scafora <[email protected]>
# Contributor: James Rayner <[email protected]>
# Contributor: Partha Chowdhury <[email protected]>
# Maintainer: Gaetan Bisson <[email protected]>
pkgname=conky
pkgver=1.8.2git20111107
pkgrel=1
pkgdesc='Lightweight system monitor for X'
url='http://conky.sourceforge.net/'
license=('BSD' 'GPL')
arch=('i686' 'x86_64')
options=('!emptydirs')
makedepends=('pkg-config' 'docbook2x')
depends=('alsa-lib' 'libxml2' 'curl' 'libxft' 'glib2' 'libxdamage' 'imlib2')
backup=('etc/conky/conky.conf' 'etc/conky/conky_no_x11.conf')
source=("ftp://ftp.archlinux.org/other/${pkgname}/${pkgname}-${pkgver}.tar.xz")
sha1sums=('133fc6fdc725162af9a98c72c1b7349efc22447c')
# git clone git://git.omp.am/conky.git; cd conky; git archive --prefix=${pkgname}-${pkgver}/ origin/1.8.2 | xz > ../${pkgname}-${pkgver}.tar.xz
replaces=('torsmo')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
sh autogen.sh
CPPFLAGS="${CXXFLAGS}" LIBS="${LDFLAGS}" ./configure \
--prefix=/usr \
--sysconfdir=/etc \
--disable-ibm \
--enable-curl \
--enable-lua \
--enable-lua-cairo \
--disable-ncurses \
--disable-math --disable-mpd --disable-moc --disable-xmms2 \
--disable-weather-xoap --disable-portmon --disable-alsa
make
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"Does it still segment fault without a .conkyrc?
Also FWIW, heres my conky settings:
# Use Xft?
use_xft yes
xftfont mono:size=9
xftalpha 0.8
text_buffer_size 2048
# Update interval in seconds
update_interval 1
# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0
# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_transparent no
own_window_type override
own_window_hints undecorated,sticky,skip_taskbar,skip_pager
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
# Minimum size of text area
minimum_size 1280 0
# Draw shades?
draw_shades no
# Draw outlines?
draw_outline no
# Draw borders around text
draw_borders no
# Draw borders around graphs
draw_graph_borders yes
# Stippled borders?
stippled_borders 0
# border margins
border_margin 0
# border width
border_width 0
# Default colors and also border colors
default_color white
color2 1994D1
default_shade_color black
default_outline_color 3c3c3c
own_window_colour 3c3c3c
# Text alignment, other possible values are commented
#alignment top_left
#alignment top_right
alignment bottom_left
#alignment bottom_right
# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 0
gap_y 3
# Subtract file system buffers from used memory?
no_buffers yes
# set to yes if you want all text to be in uppercase
uppercase no
# number of cpu samples to average
# set to 1 to disable averaging
cpu_avg_samples 2
# number of net samples to average
# set to 1 to disable averaging
net_avg_samples 2
# Force UTF8? note that UTF8 support required XFT
override_utf8_locale yes
# Add spaces to keep things from moving about? This only affects certain objects.
use_spacer right
TEXT -
I hate to post such a seemingly mundane question but I can't seem to find my answer anywhere. I've tried other forums and I've tried google. I was hoping there was a conky specific thread here but I couldn't find one so I posted here.
Anyway, I've been revamping my conky and I copy/pasted one I found online as a model for me to modify. It has circle graphs and a large analog clock so it obviously has lua scripts associated with it. The lua parts aren't showing up. To be safe I've made sure that lua is installed as well as all dependecies. I installed all conky dependencies too just for the hell of it. I've also made sure that I'm calling the lua scripts from the right directory, and yes, I've restarted conky many times. Here are the files:
Conky
# Conky settings #
background no
update_interval 1
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale yes
double_buffer yes
no_buffers yes
text_buffer_size 2048
#imlib_cache_size 0
temperature_unit fahrenheit
# Window specifications #
own_window yes
own_window_type override
own_window_transparent #000000
own_window_transparent yes
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
border_inner_margin 0
border_outer_margin 5
minimum_size 250 300
maximum_width 250
alignment tr
gap_x 10
gap_y 0
# Graphics settings #
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes
# Text settings #
use_xft yes
xftfont caviar dreams:size=8
xftalpha 0.5
uppercase no
temperature_unit celsius
default_color FFFFFF
# Lua Load #
lua_load ~/.openbox/conky/conky_blue/clock_rings.lua
lua_draw_hook_pre clock_rings
TEXT
# Time and date
${voffset 7}${font Radio Space:size=16}${color 0ABFFF}${time %A}${font}$color${font Radio Space:size=38}${goto 167}${voffset -8} ${time %e}${font}
${font Radio Space:size=18}${voffset -30}${time %b}${font}${voffset -3} ${font Radio Space:size=20}${time %Y}${font}${color 0ABFFF} ${hr 1}
# Battery Circle
${color FFFFFF}${goto 209}${voffset 34}${battery_percent}%
${color 0ABFFF}${goto 202}${voffset 25}Battery
# CPU usage
${color #0ABFFF}${hr 1}$color
${color #0ABFFF}${voffset 6}Temp: $color ${acpitemp}°C
${color #0ABFFF}${voffset 6}Processes:$color $processes
${color #0ABFFF}${voffset 6}Running: $color $running_processes${goto 116}${voffset 8}${cpu cpu0}% ${color 0ABFFF}${goto 116}${voffset 13}CPU1$color${goto 191}${voffset -12}${cpu cpu1}% ${color 0ABFFF}${goto 191}${voffset 12}CPU2$color
${color #0ABFFF}${voffset -12}FREQ:$color ${freq}MHz
${color #0ABFFF}${voffset 6}Load:$color ${loadavg}
# Network
${color 0ABFFF}${voffset 2}${hr 1}
${color 0ABFFF}essid: $color$alignr${wireless_essid wlan0}
${color 0ABFFF}wlan0: $color$alignr${addr wlan0}
${color 0ABFFF}Current: $color${alignr}${execi 10 /sbin/iwconfig wlan0|grep Rate|cut -d"M" -f1|cut -b20-24} Mbits/sec
${color 0ABFFF}eth0: $color$alignr${addr eth0}
${color #0ABFFF}Down: $color${downspeed wlan0} k/s ${alignr}${color #0ABFFF}Up:$color ${upspeed wlan0} k/s
${downspeedgraph wlan0 30,120 000000 0ABFFF} ${alignr}${upspeedgraph wlan0 30,120 000000 0ABFFF}$color
${color #0ABFFF}Total:$color ${totaldown wlan0} ${alignr}${color #0ABFFF}Total:$color ${totalup wlan0}
# DISK/RAM/SWAP usage
${color 0ABFFF}${voffset 2}${hr 1}
${color FFFFFF}${goto 7}${voffset 39}${fs_used_perc /}%
${color 0ABFFF}${goto 7}DISK
${color FFFFFF}${goto 102}${voffset -27}${memperc}%
${color 0ABFFF}${goto 102}RAM
# Running processes
${color 0ABFFF}${voffset 2} ${hr 1}
${color #0ABFFF}${voffset 5}NAME${goto 122}PID${goto 163}CPU%${goto 210}MEM%$color${voffset 5}
${top name 1}${goto 115}${top pid 1}${goto 160}${top cpu 1}${goto 205}${top mem 1}
${top name 2}${goto 115}${top pid 2}${goto 160}${top cpu 2}${goto 205}${top mem 2}
${top name 3}${goto 115}${top pid 3}${goto 160}${top cpu 3}${goto 205}${top mem 3}
${top name 4}${goto 115}${top pid 5}${goto 160}${top cpu 5}${goto 205}${top mem 5}
# Computer info
${color 0ABFFF}${voffset 2}${hr 1}${voffset 5}
${color 0ABFFF}Hostname:$color${alignr}${nodename}
${color 0ABFFF}OS:$color${alignr}${pre_exec cat /etc/issue.net} $machine
${color 0ABFFF}Kernel:$color${alignr}${kernel}$color
${color 0ABFFF}${font Radio Space:size=20}ARCH${color FFFFFF}LINUX
${color 0ABFFF}${voffset -10}${hr 1}
Lua
# Clock Rings by Linux Mint (2012) reEdited by Altin.
# This script draws percentage meters as rings, and also draws clock hands if you want! It is fully customisable; all options are described in the script.
# This script is based off a combination of my clock.lua script and my rings.lua script.
# IMPORTANT: If you are using the 'cpu' function, it will cause a segmentation fault if it tries to draw a ring straight away.
# The if statement on line 324 uses a delay to make sure that this doesn't happen.
# It calculates the length of the delay by the number of updates since Conky started.
# Generally, a value of 5s is long enough, so if you update Conky every 1s,
# use update_num>5 in that if statement (the default).
# If you only update Conky every 2s, you should change it to update_num>3;
# conversely if you update Conky every 0.5s, you should use update_num>10.
# ALSO, if you change your Conky, is it best to use "killall conky; conky" to update it,
# otherwise the update_num will not be reset and you will get an error.
# To call this script in Conky, use the following in your conkyrc:
# lua_load ~/.fluxbox/conky/conky_blue/clock_rings.lua
# lua_draw_hook_pre clock_rings
# Changelog:
# * v1.0 --> Original release (30.09.2009)
# * v1.1p --> Jpope edit londonali1010 (05.10.2009)
# * vX 2011mint --> reEdit despot77 (18.02.2011)
# * vX 2012 --> Altin reEdit (22.07.2012)
# * Added weather function (Accu Weather)
# * Added battery monitoring
# * Syslog monitoring
# * Running processes monitoring
# * Rearanged rings
# * Exctra network functions/monitoring
# * Changed Fonts
settings_table = {
-- Edit this table to customise your rings.
-- You can create more rings simply by adding more elements to settings_table.
-- "name" is the type of stat to display; you can choose from 'cpu', 'memperc', 'fs_used_perc', 'battery_used_perc'.
name='time',
-- "arg" is the argument to the stat type, e.g. if in Conky you would write ${cpu cpu0}, 'cpu0' would be the argument. If you would not use an argument in the Conky variable, use ''.
arg='%I.%M',
-- "max" is the maximum value of the ring. If the Conky variable outputs a percentage, use 100.
max=12,
-- "bg_colour" is the colour of the base ring.
bg_colour=0xffffff,
-- "bg_alpha" is the alpha value of the base ring.
bg_alpha=0.15,
-- "fg_colour" is the colour of the indicator part of the ring.
fg_colour=0x0ABFFF,
-- "fg_alpha" is the alpha value of the indicator part of the ring.
fg_alpha=0.3,
-- "x" and "y" are the x and y coordinates of the centre of the ring, relative to the top left corner of the Conky window.
x=100, y=175,
-- "radius" is the radius of the ring.
radius=50,
-- "thickness" is the thickness of the ring, centred around the radius.
thickness=5,
-- "start_angle" is the starting angle of the ring, in degrees, clockwise from top. Value can be either positive or negative.
start_angle=0,
-- "end_angle" is the ending angle of the ring, in degrees, clockwise from top. Value can be either positive or negative, but must be larger than start_angle.
end_angle=360
name='battery_percent',
arg='',
max=100,
bg_colour=0xffffff,
bg_alpha=0.2,
fg_colour=0x0ABFFF,
fg_alpha=0.8,
x=222, y=110,
radius=27,
thickness=5,
start_angle=-90,
end_angle=270
name='time',
arg='%M.%S',
max=60,
bg_colour=0xffffff,
bg_alpha=0.1,
fg_colour=0x0ABFFF,
fg_alpha=0.4,
x=100, y=175,
radius=66,
thickness=5,
start_angle=0,
end_angle=360
name='time',
arg='%S',
max=60,
bg_colour=0xffffff,
bg_alpha=0.1,
fg_colour=0x0ABFFF,
fg_alpha=0.6,
x=100, y=175,
radius=72,
thickness=5,
start_angle=0,
end_angle=360
name='time',
arg='%d',
max=31,
bg_colour=0xffffff,
bg_alpha=0.1,
fg_colour=0x0ABFFF,
fg_alpha=0.8,
x=100, y=175,
radius=80,
thickness=5,
start_angle=-90,
end_angle=90
name='time',
arg='%m',
max=12,
bg_colour=0xffffff,
bg_alpha=0.1,
fg_colour=0x0ABFFF,
fg_alpha=1,
x=100, y=175,
radius=86,
thickness=5,
start_angle=-90,
end_angle=90
name='cpu',
arg='cpu0',
max=100,
bg_colour=0xffffff,
bg_alpha=0.3,
fg_colour=0x0ABFFF,
fg_alpha=0.8,
x=145, y=337,
radius=25,
thickness=5,
start_angle=-90,
end_angle=180
name='cpu',
arg='cpu1',
max=100,
bg_colour=0xffffff,
bg_alpha=0.3,
fg_colour=0x0ABFFF,
fg_alpha=0.8,
x=220, y=337,
radius=25,
thickness=5,
start_angle=-90,
end_angle=180
name='fs_used_perc',
arg='/',
max=100,
bg_colour=0xffffff,
bg_alpha=0.2,
fg_colour=0x0ABFFF,
fg_alpha=0.8,
x=35, y=590,
radius=25,
thickness=5,
start_angle=-90,
end_angle=180
name='memperc',
arg='',
max=100,
bg_colour=0xffffff,
bg_alpha=0.2,
fg_colour=0x0ABFFF,
fg_alpha=0.8,
x=130, y=590,
radius=25,
thickness=5,
start_angle=-90,
end_angle=180
name='swapperc',
arg='',
max=100,
bg_colour=0xffffff,
bg_alpha=0.2,
fg_colour=0x0ABFFF,
fg_alpha=0.8,
x=220, y=590,
radius=25,
thickness=5,
start_angle=-90,
end_angle=172
-- Use these settings to define the origin and extent of your clock.
clock_r=65
-- "clock_x" and "clock_y" are the coordinates of the centre of the clock, in pixels, from the top left of the Conky window.
clock_x=100
clock_y=175
show_seconds=true -- Change to true if you want the seconds hand
require 'cairo'
function rgb_to_r_g_b(colour,alpha)
return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end
function window_background(colour,alpha)
return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end
function draw_ring(cr,t,pt)
local w,h=conky_window.width,conky_window.height
local xc,yc,ring_r,ring_w,sa,ea=pt['x'],pt['y'],pt['radius'],pt['thickness'],pt['start_angle'],pt['end_angle']
local bgc, bga, fgc, fga=pt['bg_colour'], pt['bg_alpha'], pt['fg_colour'], pt['fg_alpha']
local angle_0=sa*(2*math.pi/360)-math.pi/2
local angle_f=ea*(2*math.pi/360)-math.pi/2
local t_arc=t*(angle_f-angle_0)
-- Draw background ring
cairo_arc(cr,xc,yc,ring_r,angle_0,angle_f)
cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga))
cairo_set_line_width(cr,ring_w)
cairo_stroke(cr)
-- Draw indicator ring
cairo_arc(cr,xc,yc,ring_r,angle_0,angle_0+t_arc)
cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
cairo_stroke(cr)
end
function draw_clock_hands(cr,xc,yc)
local secs,mins,hours,secs_arc,mins_arc,hours_arc
local xh,yh,xm,ym,xs,ys
secs=os.date("%S")
mins=os.date("%M")
hours=os.date("%I")
secs_arc=(2*math.pi/60)*secs
mins_arc=(2*math.pi/60)*mins+secs_arc/60
hours_arc=(2*math.pi/12)*hours+mins_arc/12
-- Draw hour hand
xh=xc+0.76*clock_r*math.sin(hours_arc)
yh=yc-0.72*clock_r*math.cos(hours_arc)
cairo_move_to(cr,xc,yc)
cairo_line_to(cr,xh,yh)
cairo_set_line_cap(cr,CAIRO_LINE_CAP_ROUND)
cairo_set_line_width(cr,5)
cairo_set_source_rgba(cr,1.0,1.0,1.0,1.0)
cairo_stroke(cr)
-- Draw minute hand
xm=xc+0.98*clock_r*math.sin(mins_arc)
ym=yc-1.02*clock_r*math.cos(mins_arc)
cairo_move_to(cr,xc,yc)
cairo_line_to(cr,xm,ym)
cairo_set_line_width(cr,3)
cairo_stroke(cr)
-- Draw seconds hand
if show_seconds then
xs=xc+1.1*clock_r*math.sin(secs_arc)
ys=yc-clock_r*math.cos(secs_arc)
cairo_move_to(cr,xc,yc)
cairo_line_to(cr,xs,ys)
cairo_set_line_width(cr,1)
cairo_stroke(cr)
end
end
function conky_clock_rings()
local function setup_rings(cr,pt)
local str=''
local value=0
str=string.format('${%s %s}',pt['name'],pt['arg'])
str=conky_parse(str)
value=tonumber(str)
pct=value/pt['max']
draw_ring(cr,pct,pt)
end
-- Check that Conky has been running for at least 5s
if conky_window==nil then return end
local cs=cairo_xlib_surface_create(conky_window.display,conky_window.drawable,conky_window.visual, conky_window.width,conky_window.height)
local cr=cairo_create(cs)
local updates=conky_parse('${updates}')
update_num=tonumber(updates)
if update_num>5 then
for i in pairs(settings_table) do
setup_rings(cr,settings_table[i])
end
end
draw_clock_hands(cr,clock_x,clock_y)
end
To be honest I'm not even sure what to look for. I'm not sure that it's a problem with the code because as I've said, I copy/pasted as a template for modifying. Thanks for reading.
EDIT: I've been starting conky from a different directory instead of starting it with ~/.conkyrc and I just copied the conky I'm using to ~/.conkyrc and killed/restarted it and noticed this error:
Conky: /home/'user'/.conkyrc: 53: no such configuration: 'lua_load'
Conky: /home/'user'/.conkyrc: 54: no such configuration: 'lua_draw_hook_pre'
cat: /etc/issue.net: No such file or directory
Conky: desktop window (c1) is root window
Conky: window type - override
Conky: drawing to created window (0x1000001)
Conky: drawing to double buffer
The top two lines seem to be the most relevant but I'm not sure what to do about it.
Last edited by xworld (2012-12-28 01:06:01)::facepalm::
No I didn't. Although I just tried now and it failed. It said I needed toluapp before I could install conky-lua. The trouble is that when I try to install toluapp it fails. I looked in the AUR page and it shows that it's out of date. Is there a workaround for this?
EDIT: Here's the error if it helps.
==> Making package: toluapp 1.0.93-5 (Thu Dec 27 21:23:18 UTC 2012)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving Sources...
-> Downloading tolua++-1.0.93.tar.bz2...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 160k 100 160k 0 0 80172 0 0:00:02 0:00:02 --:--:-- 88576
-> Found config_linux.py
==> Validating source files with md5sums...
tolua++-1.0.93.tar.bz2 ... Passed
config_linux.py ... Passed
==> Extracting Sources...
-> Extracting tolua++-1.0.93.tar.bz2 with bsdtar
==> Starting build()...
scons: Reading SConscript files ...
scons: warning: The Options class is deprecated; use the Variables class instead.
File "/home/lucid/conf/pkgs/tmp/toluapp/src/tolua++-1.0.93/SConstruct", line 19, in <module>
('********* tolua is ', 'bin/tolua++_bootstrap')
scons: warning: The env.Copy() method is deprecated; use the env.Clone() method instead.
File "/home/lucid/conf/pkgs/tmp/toluapp/src/tolua++-1.0.93/src/tests/SCsub", line 2, in <module>
scons: done reading SConscript files.
scons: Building targets ...
gcc -o src/bin/tolua.o -c -O2 -ansi -Wall -fPIC -Iinclude src/bin/tolua.c
src/bin/tolua.c: In function 'add_extra':
src/bin/tolua.c:70:2: warning: implicit declaration of function 'luaL_getn' [-Wimplicit-function-declaration]
gcc -o src/bin/toluabind_default.o -c -O2 -ansi -Wall -fPIC -Iinclude src/bin/toluabind_default.c
gcc -o src/lib/tolua_event.o -c -O2 -ansi -Wall -fPIC -Iinclude src/lib/tolua_event.c
src/lib/tolua_event.c: In function 'storeatubox':
src/lib/tolua_event.c:26:3: warning: implicit declaration of function 'lua_getfenv' [-Wimplicit-function-declaration]
src/lib/tolua_event.c:31:4: warning: implicit declaration of function 'lua_setfenv' [-Wimplicit-function-declaration]
gcc -o src/lib/tolua_is.o -c -O2 -ansi -Wall -fPIC -Iinclude src/lib/tolua_is.c
gcc -o src/lib/tolua_map.o -c -O2 -ansi -Wall -fPIC -Iinclude src/lib/tolua_map.c
src/lib/tolua_map.c: In function 'tolua_bnd_setpeer':
src/lib/tolua_map.c:266:2: warning: implicit declaration of function 'lua_setfenv' [-Wimplicit-function-declaration]
src/lib/tolua_map.c: In function 'tolua_bnd_getpeer':
src/lib/tolua_map.c:274:2: warning: implicit declaration of function 'lua_getfenv' [-Wimplicit-function-declaration]
src/lib/tolua_map.c: In function 'tolua_usertype':
src/lib/tolua_map.c:398:2: warning: passing argument 2 of 'tolua_newmetatable' discards 'const' qualifier from pointer target type [enabled by default]
src/lib/tolua_map.c:28:12: note: expected 'char *' but argument is of type 'const char *'
src/lib/tolua_map.c: In function 'tolua_beginmodule':
src/lib/tolua_map.c:414:19: error: 'LUA_GLOBALSINDEX' undeclared (first use in this function)
src/lib/tolua_map.c:414:19: note: each undeclared identifier is reported only once for each function it appears in
src/lib/tolua_map.c: In function 'tolua_module':
src/lib/tolua_map.c:448:19: error: 'LUA_GLOBALSINDEX' undeclared (first use in this function)
src/lib/tolua_map.c: In function 'tolua_dobuffer':
src/lib/tolua_map.c:699:36: warning: value computed is not used [-Wunused-value]
scons: *** [src/lib/tolua_map.o] Error 1
scons: building terminated because of errors.
==> ERROR: A failure occurred in build().
Aborting...
Last edited by xworld (2012-12-28 03:24:41) -
I get this error when I use the makepkg -s
"==> Making package: conky-lua-nv 1.8.0-1 (Sun Jul 11 19:35:18 PDT 2010)
==> Checking Runtime Dependencies...
==> Installing missing dependencies...
Password:
error: 'toluapp': could not find or read package
==> ERROR: 'pacman' failed to install missing dependencies.
how do I fix it?http://aur.archlinux.org/packages.php?ID=1819
Install the missing dep from here? -
[SOLVED] error toluapp makepkg [SOLVED]
i wanna try conky-lua in my arch machine but i found error when trying to install toluapp :
==> Making package: toluapp 1.0.93-5 (Fri Mar 25 08:59:20 WIT 2011)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving Sources...
-> Found tolua++-1.0.93.tar.bz2
-> Found config_linux.py
==> Validating source files with md5sums...
tolua++-1.0.93.tar.bz2 ... Passed
config_linux.py ... Passed
==> Extracting Sources...
-> Extracting tolua++-1.0.93.tar.bz2 with bsdtar
==> Removing existing pkg/ directory...
==> Starting build()...
scons: Reading SConscript files ...
scons: warning: The Options class is deprecated; use the Variables class instead.
File "/home/arch-winter/test/toluapp/src/src/tolua++-1.0.93/SConstruct", line 19, in <module>
('********* tolua is ', 'bin/tolua++_bootstrap')
scons: warning: The env.Copy() method is deprecated; use the env.Clone() method instead.
File "/home/arch-winter/test/toluapp/src/src/tolua++-1.0.93/src/tests/SCsub", line 2, in <module>
scons: done reading SConscript files.
scons: Building targets ...
gcc -o bin/tolua++_bootstrap src/bin/tolua.o src/bin/toluabind_default.o lib/libtolua++_static.a -Llib -llua50 -llualib50 -ldl -lm
/usr/bin/ld: cannot find -llua50
/usr/bin/ld: cannot find -llualib50
collect2: ld returned 1 exit status
scons: *** [bin/tolua++_bootstrap] Error 1
scons: building terminated because of errors.
==> ERROR: A failure occurred in build().
Aborting...
thank's for help, and sorry for my bad english
edit :
someone suggest me to use yaourt and the conky-lua installed well. thank's
Last edited by rishadd (2011-03-25 03:55:09)i wanna try conky-lua in my arch machine but i found error when trying to install toluapp :
==> Making package: toluapp 1.0.93-5 (Fri Mar 25 08:59:20 WIT 2011)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving Sources...
-> Found tolua++-1.0.93.tar.bz2
-> Found config_linux.py
==> Validating source files with md5sums...
tolua++-1.0.93.tar.bz2 ... Passed
config_linux.py ... Passed
==> Extracting Sources...
-> Extracting tolua++-1.0.93.tar.bz2 with bsdtar
==> Removing existing pkg/ directory...
==> Starting build()...
scons: Reading SConscript files ...
scons: warning: The Options class is deprecated; use the Variables class instead.
File "/home/arch-winter/test/toluapp/src/src/tolua++-1.0.93/SConstruct", line 19, in <module>
('********* tolua is ', 'bin/tolua++_bootstrap')
scons: warning: The env.Copy() method is deprecated; use the env.Clone() method instead.
File "/home/arch-winter/test/toluapp/src/src/tolua++-1.0.93/src/tests/SCsub", line 2, in <module>
scons: done reading SConscript files.
scons: Building targets ...
gcc -o bin/tolua++_bootstrap src/bin/tolua.o src/bin/toluabind_default.o lib/libtolua++_static.a -Llib -llua50 -llualib50 -ldl -lm
/usr/bin/ld: cannot find -llua50
/usr/bin/ld: cannot find -llualib50
collect2: ld returned 1 exit status
scons: *** [bin/tolua++_bootstrap] Error 1
scons: building terminated because of errors.
==> ERROR: A failure occurred in build().
Aborting...
thank's for help, and sorry for my bad english
edit :
someone suggest me to use yaourt and the conky-lua installed well. thank's
Last edited by rishadd (2011-03-25 03:55:09)
Maybe you are looking for
-
I regretfully downloaded the new 1.1 software onto my ipod. I let it go on but ir froze for the longest time. I left it over night and in the morring i disconnected. Now my screen is only white, It beeps when i reset it and my comp wont recognize it.
-
Im conducting a proof of concept using OWB Workflow version 2.4. To give some background, the objective is to run numerous dependant SQL scripts that in effect hand craft the ETL process, at a pre-scheduled time, that provide logging and re-starting
-
How to install me new audigy Se c
hello all, I recenly purchased a sound blaster audigy se card but cannot get any audio out of it. I have disabled onboard sound in the bios and downloaded the ltest driver from the creative web-site, but to no avail. I am on a dell 670 and have insta
-
Credit check status in MV45AFZZ
Dear All expert, I want to do update a custom table in MV45AFZZ when the order passed credit check. But I do not know , is there any indicator about the result of the credit check? I mean some field or table stored those kind of data. Many thanks in
-
I have just bought the lenovo B6000-f and the connection to the WiFi is very poor. Even if I'm in the same room as the router. How can infix this?