Skip to content

Commit

Permalink
Merge pull request #279 from zbanks/268/add-xkbcommon-lflags
Browse files Browse the repository at this point in the history
Linux: Add `-lxkbcommon-x11 -lxkbcommon` lflags
  • Loading branch information
Djiit authored Feb 5, 2021
2 parents e80d6cb + 0f88b1e commit 769daed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion build_def/linux/uiohook.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
"-Wl,-rpath,<!(node -e \"console.log('builds/' + process.env.gyp_iohook_runtime + '-v' + process.env.gyp_iohook_abi + '-' + process.env.gyp_iohook_platform + '-' + process.env.gyp_iohook_arch + '/build/Release')\")",
"-Wl,-rpath,<!(pwd)/build/Release/",
"-lX11",
"-lX11-xcb"
"-lX11-xcb",
"-lxkbcommon-x11",
"-lxkbcommon"
]
},
"defines": [
Expand Down
2 changes: 1 addition & 1 deletion docs/manual-build.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ When you run `npm run build`, it will try to download a prebuilt for your platfo
:::

## Linux
- `sudo apt-get install -y libxkbcommon-x11-0 # Needed on WSL`
- `sudo apt-get install -y libx11-dev libx11-xcb-dev libxkbcommon-dev libxkbcommon-x11-dev`
- `npm run build`

## macOS
Expand Down

0 comments on commit 769daed

Please sign in to comment.