jordansissel / xdotool

fake keyboard/mouse input, window management, and more
Other
3.26k stars 320 forks source link

compile v3.20210903.1 under 18.04 Ubuntu? #361

Open Lew-Rockwell-Fan opened 3 years ago

Lew-Rockwell-Fan commented 3 years ago

Anybody been able to compile the current version on 18.04? Trying to install the newest version from here: https://github.com/jordansissel/xdotool/releases/download/v3.20210903.1/xdotool-3.20210903.1.tar.gz on a minimalist Ubuntu 18.04 with Openbox built up from the mini.iso like a lighter Lubuntu - because there is a bug fix I'd really like to have in a version more recent than anything in the 18.04 repo.

Can't find any of these by name with Synaptic: xlib, xtst, xi, xkbcommon, xinerama There are some packages that look likely to contain those, but I have them all installed already. I could try downloading the deb from the repo for 20.04 LTS or even the bleeding edge 21.10, but compiling seemed like a more conservative course less likely to break something. I don't want to switch to a newer Ubuntu yet because I have an app I use a lot that won't run on 20.04 & 18.04 is still supported. It's an LTS version.

As root via su:

`# echo $PWD /home/me/Desktop/xdotool/xdotool-3.20210903.1/xdotool-3.20210903.1

make

cc -pipe -O2 -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 -g -std=c99 -I/usr/X11R6/include -I/usr/local/include -fPIC -c xdo.c xdo.c:24:10: fatal error: X11/Xlib.h: No such file or directory

include <X11/Xlib.h>

      ^~~~~~~~~~~~

compilation terminated. Makefile:130: recipe for target 'xdo.o' failed make: *** [xdo.o] Error 1

`

Added: I thought the code tags were supposed to supress reformatting text. Didn't work. What did I do wrong? That bold 'make' is supposed to be '# make'.

jordansissel commented 3 years ago

I checked my ubuntu machine and the packages you probably want are:

apt-get install libxtst-dev x11proto-dev libx11-dev libxinerama-dev libxkbcommon-dev libxi-dev

I might have missed a dependency. Let me know if this helps, or, if you get any new error messages :)

Lew-Rockwell-Fan commented 3 years ago

Thanks. `apt-get install libxtst-dev x11proto-dev libx11-dev libxinerama-dev libxkbcommon-dev libxi-dev Reading package lists... Done Building dependency tree
Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:

The following packages have unmet dependencies: libx11-dev : Depends: libxau-dev (>= 1:1.0.0-1) but it is not going to be installed Depends: libxcb1-dev but it is not going to be installed libxkbcommon-dev : Depends: libxkbcommon0 (= 0.8.0-1ubuntu0.1) but 0.8.2-1~ubuntu18.04.1 is to be installed E: Unable to correct problems, you have held broken packages. ` Synaptic says no packages are broken. I haven't held anything on this system. I'm as updated as apt-get upgrade will do. I'm not doing dist-upgrade for now because there is a package I use it will take. Were you looking at a more recent version? Bionic Beaver, 18.04 LTS here.

jordansissel commented 3 years ago

Wow that’s certainly an odd situation. Hmm…

I bet I can try to reproduce on an Ubuntu 18.04 Docker image next time I’m at a computer.

On Thu, Oct 14, 2021 at 9:18 PM Lew-Rockwell-Fan @.***> wrote:

Thanks. `apt-get install libxtst-dev x11proto-dev libx11-dev libxinerama-dev libxkbcommon-dev libxi-dev Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:

The following packages have unmet dependencies: libx11-dev : Depends: libxau-dev (>= 1:1.0.0-1) but it is not going to be installed Depends: libxcb1-dev but it is not going to be installed libxkbcommon-dev : Depends: libxkbcommon0 (= 0.8.0-1ubuntu0.1) but 0.8.2-1~ubuntu18.04.1 is to be installed E: Unable to correct problems, you have held broken packages. ` Synaptic says no packages are broken. I haven't held anything on this system. I'm as updated as apt-get upgrade will do. I'm not doing dist-upgrade for now because there is a package I use it will take. Were you looking at a more recent version? Bionic Beaver, 18.04 LTS here.

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/jordansissel/xdotool/issues/361#issuecomment-943972758, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABAF2S4AGK2SHNNAR6LPJLUG6TQHANCNFSM5GAJY2TA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Lew-Rockwell-Fan commented 2 years ago

Any new thoughts or should I figure on living with it until I'm forced to abandon 18.04 by the raging torrent of history?

jordansissel commented 2 years ago

I haven’t had time to work on this yet