electron-active-window icon indicating copy to clipboard operation
electron-active-window copied to clipboard

[AppImage] Linux Bundled App error & package installation failing on Linux

Open ahmedmukhtar1133 opened this issue 4 years ago • 8 comments

Issues:

  1. Couldn't install package on Linux machine getting following error:
make: Entering directory '/home/ahmadgoraya/Documents/taskick-electron/node_modules/electron-active-window/build'
  CC(target) Release/obj.target/nothing/../node-addon-api/src/nothing.o
  AR(target) Release/obj.target/../node-addon-api/src/nothing.a
  COPY Release/nothing.a
  CXX(target) Release/obj.target/wm/cppsrc/main.o
  CXX(target) Release/obj.target/wm/cppsrc/linux/windowlinux.o
../cppsrc/linux/windowlinux.cpp:6:10: fatal error: X11/extensions/scrnsaver.h: No such file or directory
    6 | #include <X11/extensions/scrnsaver.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [wm.target.mk:125: Release/obj.target/wm/cppsrc/linux/windowlinux.o] Error 1
make: Leaving directory '/home/ahmadgoraya/Documents/taskick-electron/node_modules/electron-active-window/build'

  1. Made a build from Mac-OS but getting following error when running the .AppImage file
A JavaScript error occurred in the main process
Uncaught Exception:
Error: /tmp/.mount_TasKicJJznfd/resources/app.asar.unpacked/node_modules/electron-active-window/build/Release/wm.node: invalid ELF header
    at process.func [as dlopen] (electron/js2c/asar_bundle.js:5:1812)
    at Object.Module._extensions..node (internal/modules/cjs/loader.js:1203:18)
    at Object.func [as .node] (electron/js2c/asar_bundle.js:5:2039)
    at Module.load (internal/modules/cjs/loader.js:992:32)
    at Module._load (internal/modules/cjs/loader.js:885:14)
    at Function.f._load (electron/js2c/asar_bundle.js:5:12633)
    at Module.require (internal/modules/cjs/loader.js:1032:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Object.<anonymous> (/tmp/.mount_TasKicJJznfd/resources/app.asar/node_modules/electron-active-window/index.js:1:23)
    at Module._compile (internal/modules/cjs/loader.js:1152:30)

Environment:

  • Linux build-essentials and GCC are installed
  • OS: Linux
  • Electron active window version: 0.06
  • Node-Sass: 4.14.1 || 5.0.0
  • Node-gyp: 7.1.2 || 8.0.2

Screenshots are also attached for reference: image

image

ahmedmukhtar1133 avatar Aug 31 '21 17:08 ahmedmukhtar1133

Could you try installing xorg?

sudo apt install xorg

nullxx avatar Sep 04 '21 14:09 nullxx

Facing the exact same problem. Any solution??? Also tried - "sudo apt install xorg". But it is already to the newest version.

Prat1143 avatar Oct 13 '21 08:10 Prat1143

Do you have libX11-devel installed? @Prat1143

nullxx avatar Oct 13 '21 08:10 nullxx

Do you have libX11-devel installed? @Prat1143

Yes, it's already installed to the newest version

Prat1143 avatar Oct 13 '21 10:10 Prat1143

Any update on this issue?

Prat1143 avatar Dec 14 '21 11:12 Prat1143

Could it be related to https://groups.google.com/a/chromium.org/g/chromium-dev/c/1XFI04Rd6Mc/m/rLZDp2wnfLoJ ?

nullxx avatar Dec 14 '21 11:12 nullxx

The issue you posted doesnt seem to give any answers... Any updates at all?

144reasons avatar Feb 06 '22 13:02 144reasons

Sorry but I have no time right now to resolve this problem. I will lock this issue until then

nullxx avatar Feb 07 '22 18:02 nullxx