Urgent......Please help on installing Xdotool

497 views
Skip to first unread message

Melody Yang

unread,
May 13, 2010, 2:53:46 AM5/13/10
to xdotoo...@googlegroups.com

Hello,

 

I need some help about installing Xdotool. Could you please help me about it? Thank you very much!

 

My Ubuntu version is 8.10. According to the instructions on Xdotool website, I used “apt-get install Xdotool” command to install it. But after the installation, I find its version is quite old (about 2008-06). Many new commands cannot be used in this version.

 

So, I download the latest version “xdotool-1.20100318.2737.tar.gz”, extract the files, and use the terminal to install it. But there are many error messages when installing:

 

I input the command “make all install”

Errors:

cc -pipe -pedantic -Wall -W -Wundef -Wendif-labels -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wdisabled-optimization -Wno-missing-field-initializers -std=c99 -I/usr/X11R6/include -I/usr/local/include -c xdotool.c

cc1: warning: -funit-at-a-time is required for inlining of functions that are only called once

In file included from xdotool.c:26:

xdo.h:14:22: error: X11/Xlib.h: No such file or directory

In file included from xdotool.c:26:

xdo.h:32: error: expected specifier-qualifier-list before ‘KeyCode’

xdo.h:40: error: expected specifier-qualifier-list before ‘Display’

xdo.h:48: warning: struct has no members

xdo.h:84: error: expected ‘)’ before ‘*’ token

xdo.h:91: error: expected declaration specifiers or ‘...’ before ‘Window’

xdo.h:93: error: expected declaration specifiers or ‘...’ before ‘Window’

xdo.h:94: error: expected declaration specifiers or ‘...’ before ‘Window’

xdo.h:97: error: expected declaration specifiers or ‘...’ before ‘Window’

xdo.h:99: error: expected declaration specifiers or ‘...’ before ‘Window’

xdo.h:100: error: expected declaration specifiers or ‘...’ before ‘Window’

xdo.h:101: error: expected declaration specifiers or ‘...’ before ‘Window’

xdo.h:102: error: expected declaration specifiers or ‘...’ before ‘Window’

xdo.h:103: error: expected declaration specifiers or ‘...’ before ‘Window’

xdo.h:108: error: expected declaration specifiers or ‘...’ before ‘Window’

xdo.h:109: error: expected declaration specifiers or ‘...’ before ‘Window’

xdo.h:110: error: expected declaration specifiers or ‘...’ before ‘Window’

xdo.h:111: error: expected declaration specifiers or ‘...’ before ‘Window’

xdo.h:112: error: expected declaration specifiers or ‘...’ before ‘Window’

xdo.h:113: error: expected declaration specifiers or ‘...’ before ‘Window’

xdo.h:114: error: expected declaration specifiers or ‘...’ before ‘Window’

xdo.h:115: error: expected declaration specifiers or ‘...’ before ‘Window’

xdo.h:116: error: expected declaration specifiers or ‘...’ before ‘Window’

xdo.h:117: error: expected declaration specifiers or ‘...’ before ‘Window’

xdo.h:119: error: expected declaration specifiers or ‘...’ before ‘Window’

xdo.h:120: error: expected declaration specifiers or ‘...’ before ‘Window’

xdo.h:123: error: expected declaration specifiers or ‘...’ before ‘Window’

xdo.h:128: error: expected declaration specifiers or ‘...’ before ‘Window’

xdo.h:129: error: expected declaration specifiers or ‘...’ before ‘Window’

xdo.h:132: error: expected declaration specifiers or ‘...’ before ‘Window’

xdo.h:134: error: expected declaration specifiers or ‘...’ before ‘Window’

xdo.h:134: error: expected declaration specifiers or ‘...’ before ‘Atom’

xdo.h:135: error: expected declaration specifiers or ‘...’ before ‘Atom’

xdo.h:142: error: expected declaration specifiers or ‘...’ before ‘Window’

xdo.h:143: error: expected declaration specifiers or ‘...’ before ‘Window’

xdotool.c:60: error: expected ‘)’ before ‘wid’

xdotool.c:232: error: expected ‘)’ before ‘wid’

xdotool.c:237: warning: unused parameter ‘unused_argc’

xdotool.c:237: warning: unused parameter ‘unused_args’

xdotool.c:246: warning: unused parameter ‘unused_argc’

xdotool.c:246: warning: unused parameter ‘unused_args’

xdotool.c: In function ‘cmd_mousemove’:

xdotool.c:260: error: ‘Window’ undeclared (first use in this function)

xdotool.c:260: error: (Each undeclared identifier is reported only once

xdotool.c:260: error: for each function it appears in.)

xdotool.c:260: error: expected ‘;’ before ‘window’

xdotool.c:288: error: ‘window’ undeclared (first use in this function)

xdotool.c:310: error: too many arguments to function ‘xdo_clear_active_modifiers’

xdotool.c:314: error: too many arguments to function ‘xdo_mousemove_relative_to_window’

xdotool.c:323: error: too many arguments to function ‘xdo_set_active_modifiers’

xdotool.c: In function ‘cmd_mousedown’:

xdotool.c:379: error: ‘Window’ undeclared (first use in this function)

xdotool.c:379: error: expected ‘;’ before ‘window’

xdotool.c:406: error: ‘window’ undeclared (first use in this function)

xdotool.c:427: error: too many arguments to function ‘xdo_clear_active_modifiers’

xdotool.c:430: error: too many arguments to function ‘xdo_mousedown’

xdotool.c:433: error: too many arguments to function ‘xdo_set_active_modifiers’

xdotool.c: In function ‘cmd_mouseup’:

xdotool.c:446: error: ‘Window’ undeclared (first use in this function)

xdotool.c:446: error: expected ‘;’ before ‘window’

xdotool.c:473: error: ‘window’ undeclared (first use in this function)

xdotool.c:494: error: too many arguments to function ‘xdo_clear_active_modifiers’

xdotool.c:497: error: too many arguments to function ‘xdo_mouseup’

xdotool.c:500: error: too many arguments to function ‘xdo_set_active_modifiers’

xdotool.c: In function ‘cmd_click’:

xdotool.c:553: error: ‘Window’ undeclared (first use in this function)

xdotool.c:553: error: expected ‘;’ before ‘window’

xdotool.c:579: error: ‘window’ undeclared (first use in this function)

xdotool.c:600: error: too many arguments to function ‘xdo_clear_active_modifiers’

xdotool.c:603: error: too many arguments to function ‘xdo_click’

xdotool.c:606: error: too many arguments to function ‘xdo_set_active_modifiers’

xdotool.c: In function ‘cmd_type’:

xdotool.c:622: error: ‘Window’ undeclared (first use in this function)

xdotool.c:622: error: expected ‘;’ before ‘window’

xdotool.c:645: error: ‘window’ undeclared (first use in this function)

xdotool.c:675: error: too many arguments to function ‘xdo_clear_active_modifiers’

xdotool.c:679: warning: passing argument 3 of ‘xdo_type’ makes integer from pointer without a cast

xdotool.c:679: error: too many arguments to function ‘xdo_type’

xdotool.c:689: error: too many arguments to function ‘xdo_set_active_modifiers’

xdotool.c: In function ‘cmd_key’:

xdotool.c:704: error: ‘Window’ undeclared (first use in this function)

xdotool.c:704: error: expected ‘;’ before ‘window’

xdotool.c:724: error: ‘window’ undeclared (first use in this function)

xdotool.c:748: error: expected declaration specifiers or ‘...’ before ‘Window’

xdotool.c:763: error: too many arguments to function ‘xdo_clear_active_modifiers’

xdotool.c:767: error: too many arguments to function ‘func’

xdotool.c:774: error: too many arguments to function ‘xdo_set_active_modifiers’

xdotool.c: In function ‘cmd_windowmove’:

xdotool.c:784: error: ‘Window’ undeclared (first use in this function)

xdotool.c:784: error: expected ‘;’ before ‘wid’

xdotool.c:815: error: ‘wid’ undeclared (first use in this function)

xdotool.c:815: error: expected ‘;’ before ‘strtol’

xdotool.c:819: error: too many arguments to function ‘xdo_window_move’

xdotool.c: In function ‘cmd_windowactivate’:

xdotool.c:828: error: ‘Window’ undeclared (first use in this function)

xdotool.c:828: error: expected ‘;’ before ‘wid’

xdotool.c:859: error: ‘wid’ undeclared (first use in this function)

xdotool.c:859: error: expected ‘;’ before ‘strtol’

xdotool.c:860: error: too many arguments to function ‘xdo_window_activate’

xdotool.c: In function ‘cmd_windowfocus’:

xdotool.c:870: error: ‘Window’ undeclared (first use in this function)

xdotool.c:870: error: expected ‘;’ before ‘wid’

xdotool.c:901: error: ‘wid’ undeclared (first use in this function)

xdotool.c:901: error: expected ‘;’ before ‘strtol’

xdotool.c:902: error: too many arguments to function ‘xdo_window_focus’

xdotool.c: In function ‘cmd_windowraise’:

xdotool.c:911: error: ‘Window’ undeclared (first use in this function)

xdotool.c:911: error: expected ‘;’ before ‘wid’

xdotool.c:942: error: ‘wid’ undeclared (first use in this function)

xdotool.c:942: error: expected ‘;’ before ‘strtol’

xdotool.c:943: error: too many arguments to function ‘xdo_window_raise’

xdotool.c: In function ‘cmd_windowsize’:

xdotool.c:953: error: ‘Window’ undeclared (first use in this function)

xdotool.c:953: error: expected ‘;’ before ‘wid’

xdotool.c:995: error: ‘wid’ undeclared (first use in this function)

xdotool.c:995: error: expected ‘;’ before ‘strtol’

xdotool.c:999: error: too many arguments to function ‘xdo_window_setsize’

xdotool.c: In function ‘cmd_set_window’:

xdotool.c:1058: error: ‘Window’ undeclared (first use in this function)

xdotool.c:1058: error: expected ‘;’ before ‘wid’

xdotool.c:1061: error: ‘wid’ undeclared (first use in this function)

xdotool.c:1061: error: too many arguments to function ‘xdo_window_setprop’

xdotool.c:1063: error: too many arguments to function ‘xdo_window_setprop’

xdotool.c:1065: error: too many arguments to function ‘xdo_window_setprop’

xdotool.c:1067: error: too many arguments to function ‘xdo_window_setclass’

xdotool.c: In function ‘cmd_search’:

xdotool.c:1073: error: ‘Window’ undeclared (first use in this function)

xdotool.c:1073: error: ‘list’ undeclared (first use in this function)

xdotool.c:1153: error: ‘True’ undeclared (first use in this function)

xdotool.c:1201: error: too many arguments to function ‘xdo_window_search’

xdotool.c:1203: warning: implicit declaration of function ‘window_print’

xdotool.c:1203: warning: nested extern declaration of ‘window_print’

xdotool.c: In function ‘cmd_getwindowfocus’:

xdotool.c:1216: error: ‘Window’ undeclared (first use in this function)

xdotool.c:1216: error: expected ‘;’ before ‘wid’

xdotool.c:1252: error: ‘wid’ undeclared (first use in this function)

xdotool.c:1252: error: too many arguments to function ‘xdo_window_sane_get_focus’

xdotool.c:1254: error: too many arguments to function ‘xdo_window_get_focus’

xdotool.c: In function ‘cmd_getwindowpid’:

xdotool.c:1267: error: ‘Window’ undeclared (first use in this function)

xdotool.c:1267: error: expected ‘;’ before ‘wid’

xdotool.c:1300: error: ‘wid’ undeclared (first use in this function)

xdotool.c:1300: error: expected ‘;’ before ‘strtol’

xdotool.c:1301: error: too many arguments to function ‘xdo_window_get_pid’

xdotool.c: In function ‘cmd_getactivewindow’:

xdotool.c:1311: error: ‘Window’ undeclared (first use in this function)

xdotool.c:1311: error: expected ‘;’ before ‘wid’

xdotool.c:1343: error: ‘wid’ undeclared (first use in this function)

xdotool.c:1343: error: too many arguments to function ‘xdo_window_get_active’

xdotool.c: In function ‘cmd_windowmap’:

xdotool.c:1356: error: ‘Window’ undeclared (first use in this function)

xdotool.c:1356: error: expected ‘;’ before ‘wid’

xdotool.c:1387: error: ‘wid’ undeclared (first use in this function)

xdotool.c:1387: error: expected ‘;’ before ‘strtol’

xdotool.c:1388: error: too many arguments to function ‘xdo_window_map’

xdotool.c: In function ‘cmd_windowunmap’:

xdotool.c:1397: error: ‘Window’ undeclared (first use in this function)

xdotool.c:1397: error: expected ‘;’ before ‘wid’

xdotool.c:1428: error: ‘wid’ undeclared (first use in this function)

xdotool.c:1428: error: expected ‘;’ before ‘strtol’

xdotool.c:1429: error: too many arguments to function ‘xdo_window_unmap’

xdotool.c: In function ‘cmd_set_desktop_for_window’:

xdotool.c:1590: error: ‘Window’ undeclared (first use in this function)

xdotool.c:1590: error: expected ‘;’ before ‘window’

xdotool.c:1620: error: ‘window’ undeclared (first use in this function)

xdotool.c:1620: error: expected ‘;’ before ‘strtol’

xdotool.c:1623: error: too many arguments to function ‘xdo_set_desktop_for_window’

xdotool.c: In function ‘cmd_get_desktop_for_window’:

xdotool.c:1630: error: ‘Window’ undeclared (first use in this function)

xdotool.c:1630: error: expected ‘;’ before ‘window’

xdotool.c:1660: error: ‘window’ undeclared (first use in this function)

xdotool.c:1660: error: expected ‘;’ before ‘strtol’

xdotool.c:1662: error: too many arguments to function ‘xdo_get_desktop_for_window’

make: *** [xdotool.o] Error 1

 

I am a new user to Ubuntu and Xdotool. So I don’t understand the above errors. Could you please help on it?

 

Best regards,

Melody Yang

---------------------------------------------------------------------------------------------------
Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s) 
is intended only for the use of the intended recipient and may be confidential and/or privileged of 
Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication is 
not the intended recipient, unauthorized use, forwarding, printing,  storing, disclosure or copying 
is strictly prohibited, and may be unlawful.If you have received this communication in error,please 
immediately notify the sender by return e-mail, and delete the original message and all copies from 
your system. Thank you. 
---------------------------------------------------------------------------------------------------

--
You received this message because you are subscribed to the Google Groups "xdotool-users" group.
To post to this group, send email to xdotoo...@googlegroups.com.
To unsubscribe from this group, send email to xdotool-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/xdotool-users?hl=en.

Jordan Sissel

unread,
May 13, 2010, 2:58:10 AM5/13/10
to xdotoo...@googlegroups.com
On Wed, May 12, 2010 at 11:53 PM, Melody Yang <yan...@neusoft.com> wrote:
> Hello,
>
>
>
> I need some help about installing Xdotool. Could you please help me about
> it? Thank you very much!
>
>
>
> My Ubuntu version is 8.10. According to the instructions on Xdotool website,
> I used “apt-get install Xdotool” command to install it. But after the
> installation, I find its version is quite old (about 2008-06). Many new
> commands cannot be used in this version.
>
>
>
> So, I download the latest version “xdotool-1.20100318.2737.tar.gz”, extract
> the files, and use the terminal to install it. But there are many error
> messages when installing:
>
>
>
> I input the command “make all install”
>
> Errors:
>
> cc -pipe -pedantic -Wall -W -Wundef -Wendif-labels -Wshadow -Wpointer-arith
> -Wbad-function-cast -Wcast-align -Wwrite-strings -Wstrict-prototypes
> -Wmissing-prototypes -Wnested-externs -Winline -Wdisabled-optimization
> -Wno-missing-field-initializers -std=c99 -I/usr/X11R6/include
> -I/usr/local/include -c xdotool.c
>
> cc1: warning: -funit-at-a-time is required for inlining of functions that
> are only called once
>

This should help:

apt-get install libx11-dev libxinerama-dev libxshape-dev

I'm not totally sure what all of the packages you'll need are. Let me
know if this helps.

-Jordan

Daniel Kahn Gillmor

unread,
May 13, 2010, 11:03:39 AM5/13/10
to xdotoo...@googlegroups.com, Jordan Sissel
On 05/13/2010 02:58 AM, Jordan Sissel wrote:
> This should help:
>
> apt-get install libx11-dev libxinerama-dev libxshape-dev
>
> I'm not totally sure what all of the packages you'll need are. Let me
> know if this helps.

You probably also want build-essential and the other build-dependencies
of the latest xdotool package, esp. if you want to run the test suite:

pkg-config,
libx11-dev,
libxtst-dev,
perl,
xvfb,
xkb-data,
x11-xkb-utils,
xauth,
xterm,
x11-utils,
openbox | gnome-session,
xfonts-base,
ruby

(the "|" above means "or", meaning that either gnome-session).

hope this helps,

--dkg

signature.asc

Hong-Leong Ong

unread,
May 30, 2010, 11:39:55 PM5/30/10
to xdotool-users
Besides installing all the above-mentioned packages, I also had to
install libxtst-dev & libx11-dev for "make" to work: sudo apt-get
install libxtst-dev libx11-dev

Fyi, in case anyone faced the same issue.
Reply all
Reply to author
Forward
0 new messages