wilix-team / iohook

Node.js global keyboard and mouse listener.
https://wilix-team.github.io/iohook
MIT License
1.2k stars 291 forks source link

fixing linux prebuilds by linking xtst as well #314

Closed catdad closed 3 years ago

catdad commented 3 years ago

Description

279 linked xkbcommon-x11 and X11-xcb, but that wasn't all that was missing for Linux builds. The error after that PR resulted in undefined symbol: XRecordQueryVersion, which appears to be part of Xtst... which just so happens to be one of the packages installed in order to build libuiohook. Linking it solves the problem I had on Linux and allows prebuilds to work correctly.

Motivation and Context

This fixes #268 (says closed, but the issue actually persists even in 0.9.0)

How Has This Been Tested?

I manually tested one node and one electron prebuilt on a fresh clean Linux 20.04 Desktop install. With 0.9.0, an error is thrown for undefined symbol: XRecordQueryVersion followed by an exit with code 127, and with this PR, the lib is loaded correctly and seems to work.

Screenshots (if appropriate):

Types of changes

Checklist:

renzner commented 3 years ago

Great !

renzner commented 3 years ago

v0.9.1 has no windows prebuilt binaries for electron 12? Awesome patch by the way.