I am having trouble making this as an addon. So far I have (omitting the copyright message:Code Display MorePKG_NAME="xdotool" PKG_VERSION="2.20110530.1" PKG_REV="1" PKG_ARCH="" PKG_LICENSE="GPL" PKG_SITE="http://www.semicomplete.com/projects/xdotool/" PKG_URL="http://semicomplete.googlecode.com/files/${PKG_NAME}-${PKG_VERSION}.tar.gz" PKG_DEPENDS_TARGET="toolchain libXtst libXinerama" PKG_PRIORITY="optional" PKG_SECTION="x11/app" PKG_SHORTDESC="This tool lets you simulate keyboard input and mouse activity, move and resize windows, etc.." PKG_LONGDESC="This tool lets you simulate keyboard input and mouse activity, move and resize windows, etc.." PKG_IS_ADDON="yes" PKG_AUTORECONF="no" PKG_MAINTAINER="vpeter4 ([email protected])" make_target() { make xdotool.static mv xdotool.static xdotool } makeinstall_target() { : # nothing to do here } addon() { mkdir -p $ADDON_BUILD/$PKG_ADDON_ID/bin cp -P $PKG_BUILD/usr/bin/xdotool $ADDON_BUILD/$PKG_ADDON_ID/bin/ }
I have cribbed this from the existing vpeter/oe github referred to above, plus a bit of what I have gathered from looking up othr addons (both OE and LE). I also have a freshly compiled OE7 tree.
However it doesn't compile. Using
it eventually ends up with
Code Display More/home/nick/Downloads/LibreELEC.tv/build.LibreELEC-Generic.x86_64-7.0-devel/toolchain/bin/x86_64-libreelec-linux-gnu-gcc -o xdotool.static xdotool.o xdo.o xdo_search.o cmd_click.o cmd_mousemove.o cmd_mousemove_relative.o cmd_mousedown.o cmd_mouseup.o cmd_getmouselocation.o cmd_type.o cmd_key.o cmd_windowmove.o cmd_windowactivate.o cmd_windowfocus.o cmd_windowraise.o cmd_windowsize.o cmd_set_window.o cmd_search.o cmd_getwindowfocus.o cmd_getwindowpid.o cmd_getactivewindow.o cmd_windowmap.o cmd_windowunmap.o cmd_windowreparent.o cmd_set_num_desktops.o cmd_get_num_desktops.o cmd_set_desktop.o cmd_get_desktop.o cmd_set_desktop_for_window.o cmd_get_desktop_for_window.o cmd_get_desktop_viewport.o cmd_set_desktop_viewport.o cmd_windowkill.o cmd_behave.o cmd_window_select.o cmd_getwindowname.o cmd_behave_screen_edge.o cmd_windowminimize.o cmd_exec.o cmd_getwindowgeometry.o cmd_sleep.o cmd_get_display_geometry.o -march=x86-64 -m64 -Wl,--as-needed -fuse-ld=gold -fuse-linker-plugin -flto -lm -lrt -lX11 -lXtst -lXinerama /tmp/ccKzXLSz.ltrans0.ltrans.o:<artificial>:function _xdo_mousebutton.lto_priv.49: error: undefined reference to 'XMissingExtension' /tmp/ccKzXLSz.ltrans2.ltrans.o:<artificial>:function cmd_mousemove_relative: error: undefined reference to 'XMissingExtension' /tmp/ccKzXLSz.ltrans8.ltrans.o:<artificial>:function find_display.lto_priv.19: error: undefined reference to 'XextFindDisplay' /tmp/ccKzXLSz.ltrans8.ltrans.o:<artificial>:function find_display.lto_priv.19: error: undefined reference to 'XextCreateExtension' /tmp/ccKzXLSz.ltrans8.ltrans.o:<artificial>:function cmd_get_display_geometry: error: undefined reference to 'XMissingExtension' /tmp/ccKzXLSz.ltrans8.ltrans.o:<artificial>:function find_display.lto_priv.18: error: undefined reference to 'XextFindDisplay' /tmp/ccKzXLSz.ltrans8.ltrans.o:<artificial>:function find_display.lto_priv.18: error: undefined reference to 'XextAddDisplay' /tmp/ccKzXLSz.ltrans8.ltrans.o:<artificial>:function find_display.lto_priv.18: error: undefined reference to 'XextCreateExtension' /tmp/ccKzXLSz.ltrans8.ltrans.o:<artificial>:function XTestFakeKeyEvent.constprop.7: error: undefined reference to 'XMissingExtension' /tmp/ccKzXLSz.ltrans8.ltrans.o:<artificial>:function close_display.lto_priv.17: error: undefined reference to 'XextRemoveDisplay' /tmp/ccKzXLSz.ltrans8.ltrans.o:<artificial>:function close_display.lto_priv.16: error: undefined reference to 'XextRemoveDisplay' /tmp/ccKzXLSz.ltrans8.ltrans.o:<artificial>:function find_display.lto_priv.19: error: undefined reference to 'XextAddDisplay' collect2: error: ld returned 1 exit status Makefile:65: recipe for target 'xdotool.static' failed make: *** [xdotool.static] Error 1
Now time to cook dinner. Solutions on a postcard etc etc. Thanks guys.
Hello nickr,
If xdottool is only used in combination with chromium, it is maybe easier to ship it with chromium, see eg the PR to add unclutter.
I will have time to assist tonight