MarshallOfSound / Google-Play-Music-Desktop-Player-UNOFFICIAL-

A beautiful cross platform Desktop Player for Google Play Music
https://www.googleplaymusicdesktopplayer.com
MIT License
8.27k stars 766 forks source link

npm run make:deb fails on Ubuntu 20.04 #3843

Open superbonaci opened 4 years ago

superbonaci commented 4 years ago

trying to make deb for ubuntu 20.04

git clone https://github.com/MarshallOfSound/Google-Play-Music-Desktop-Player-UNOFFICIAL-.git
cd Google-Play-Music-Desktop-Player-UNOFFICIAL-/
sudo apt install npm gulp
npm run make:deb
/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/gulpfile.babel.js:3
import gulp from 'gulp';
       ^^^^

SyntaxError: Unexpected identifier
    at Module._compile (internal/modules/cjs/loader.js:723:23)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at execute (/usr/share/nodejs/gulp-cli/lib/versioned/^4.0.0/index.js:36:18)
    at Liftoff.handleArguments (/usr/share/nodejs/gulp-cli/index.js:204:24)
    at Liftoff.execute (/usr/share/nodejs/liftoff/index.js:201:12)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! google-play-music-desktop-player@4.7.1 make:deb: `gulp make:linux:deb`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the google-play-music-desktop-player@4.7.1 make:deb script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/simons/.npm/_logs/2020-05-25T10_15_09_547Z-debug.log
welcome[bot] commented 4 years ago

👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of duplicate issues on this repo, so please double check now that your issue has not already been solved or doesn't have an open issue already.

To help make it easier for us to investigate your issue, please follow the contributing guidelines and ensure the issue template was filled out.

jostrander commented 4 years ago

Did you run npm install?

superbonaci commented 4 years ago

Did you run npm install?

fails: https://github.com/MarshallOfSound/Google-Play-Music-Desktop-Player-UNOFFICIAL-/issues/3844

superbonaci commented 4 years ago

Installing google-play-music-desktop-player_4.7.1_amd64.deb works perfectly, some dependencies like libappindicator1 have to be installed.

superbonaci commented 4 years ago

Fixed the npm install. Still fails.

npm install
npm run build
simons@simons:~/Google-Play-Music-Desktop-Player-UNOFFICIAL-$ npm run make:deb

> google-play-music-desktop-player@4.7.1 make:deb /home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-
> gulp make:linux:deb

[10:19:45] Failed to load external module @babel/register
[10:19:45] Requiring external module babel-register
[10:19:46] Using gulpfile ~/Google-Play-Music-Desktop-Player-UNOFFICIAL-/gulpfile.babel.js
[10:19:46] Starting 'deb:linux'...
[10:19:46] Starting 'clean-dist-linux-32'...
[10:19:46] Starting 'clean-internal'...
[10:19:46] Starting 'clean-images'...
[10:19:46] Starting 'clean-less'...
[10:19:46] Starting 'clean-fonts'...
[10:19:46] Starting 'clean-html'...
[10:19:46] Starting 'clean-locales'...
[10:19:46] Finished 'clean-dist-linux-32' after 16 ms
[10:19:46] Finished 'clean-less' after 51 ms
[10:19:46] Starting 'less'...
[10:19:46] Finished 'clean-html' after 53 ms
[10:19:46] Starting 'html'...
[10:19:46] Finished 'clean-images' after 77 ms
[10:19:46] Starting 'copy-static-images'...
[10:19:46] Finished 'clean-fonts' after 78 ms
[10:19:46] Starting 'fonts'...
[10:19:46] Finished 'html' after 114 ms
[10:19:46] Finished 'clean-locales' after 168 ms
[10:19:46] Starting 'locales'...
[10:19:46] Finished 'less' after 201 ms
[10:19:46] Finished 'locales' after 114 ms
[10:19:46] Finished 'copy-static-images' after 210 ms
[10:19:46] Starting 'images'...
[10:19:46] Finished 'clean-internal' after 525 ms
[10:19:46] Starting 'transpile'...
[10:19:47] Finished 'fonts' after 968 ms
[10:19:48] Finished 'images' after 1.6 s
[10:19:50] Finished 'transpile' after 3.51 s
[10:19:50] Starting 'build'...
[10:19:50] Finished 'build' after 44 μs
[10:19:50] Starting 'build-release'...
[10:19:50] Finished 'build-release' after 110 ms
[10:19:50] Starting 'package:linux:32'...
Downloading tmp-20750-0-electron-v3.1.8-linux-ia32.zip
[============================================>] 100.0% of 52.61 MB (4.29 MB/s)
Packaging app for platform linux ia32 using electron v3.1.8
You are using the deprecated electron-rebuild API, please switch to using the options object instead
Attempting to build a module with a space in the path
See https://github.com/nodejs/node-gyp/issues/65#issuecomment-368820565 for reasons why this may not work
Attempting to build a module with a space in the path
See https://github.com/nodejs/node-gyp/issues/65#issuecomment-368820565 for reasons why this may not work
Attempting to build a module with a space in the path
See https://github.com/nodejs/node-gyp/issues/65#issuecomment-368820565 for reasons why this may not work
Attempting to build a module with a space in the path
See https://github.com/nodejs/node-gyp/issues/65#issuecomment-368820565 for reasons why this may not work
Attempting to build a module with a space in the path
See https://github.com/nodejs/node-gyp/issues/65#issuecomment-368820565 for reasons why this may not work
[10:20:15] 'package:linux:32' errored after 24 s
[10:20:15] Error: make: Entering directory '/tmp/electron-packager/linux-ia32/Google Play Music Desktop Player-linux-ia32/resources/app/node_modules/mouse-forward-back/build'
  CXX(target) Release/obj.target/mouse-forward-back/mouse-forward-back.o
In file included from ../mouse-forward-back.cc:1:
../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
../../nan/nan.h:2294:62: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
 2294 |     , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
      |                                                              ^
../mouse-forward-back.cc: At global scope:
../mouse-forward-back.cc:12:18: warning: unnecessary parentheses in declaration of ‘cb’ [-Wparentheses]
   12 |     Nan::Callback(cb);
      |                  ^
../mouse-forward-back.cc: In function ‘void MouseForwardBack::events_callback(uv_async_t*)’:
../mouse-forward-back.cc:55:24: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
   55 |         cb.Call(1, &arg);
      |                        ^
In file included from ../mouse-forward-back.cc:1:
../../nan/nan.h:1742:3: note: declared here
 1742 |   Call(int argc, v8::Local<v8::Value> argv[]) const {
      |   ^~~~
In file included from ../../nan/nan.h:56,
                 from ../mouse-forward-back.cc:1:
../mouse-forward-back.cc: At global scope:
/home/simons/.electron-gyp/iojs-3.1.8/src/node.h:442:43: warning: cast between incompatible function types from ‘void (*)(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void (*)(v8::Local<v8::Object>)’} to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
  442 |       (node::addon_register_func) (regfunc),                          \
      |                                           ^
/home/simons/.electron-gyp/iojs-3.1.8/src/node.h:476:3: note: in expansion of macro ‘NODE_MODULE_X’
  476 |   NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
      |   ^~~~~~~~~~~~~
../mouse-forward-back.cc:92:5: note: in expansion of macro ‘NODE_MODULE’
   92 |     NODE_MODULE(mouse, Init)
      |     ^~~~~~~~~~~
In file included from /home/simons/.electron-gyp/iojs-3.1.8/src/node.h:54,
                 from ../../nan/nan.h:56,
                 from ../mouse-forward-back.cc:1:
/home/simons/.electron-gyp/iojs-3.1.8/deps/v8/include/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]’:
/home/simons/.electron-gyp/iojs-3.1.8/src/node_object_wrap.h:85:78:   required from here
/home/simons/.electron-gyp/iojs-3.1.8/deps/v8/include/v8.h:9256:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<node::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
 9256 |                reinterpret_cast<Callback>(callback), type);
      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/simons/.electron-gyp/iojs-3.1.8/deps/v8/include/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]’:
../../nan/nan_object_wrap.h:65:61:   required from here
/home/simons/.electron-gyp/iojs-3.1.8/deps/v8/include/v8.h:9256:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
  SOLINK_MODULE(target) Release/obj.target/mouse-forward-back.node
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libX11.so when searching for -lX11
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libX11.a when searching for -lX11
/usr/bin/ld: cannot find -lX11
collect2: error: ld returned 1 exit status
make: *** [mouse-forward-back.target.mk:130: Release/obj.target/mouse-forward-back.node] Error 1
make: Leaving directory '/tmp/electron-packager/linux-ia32/Google Play Music Desktop Player-linux-ia32/resources/app/node_modules/mouse-forward-back/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (events.js:198:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Linux 5.6.0-15.2-liquorix-amd64
gyp ERR! command "/usr/bin/node" "/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/node_modules/.bin/node-gyp" "rebuild" "--target=3.1.8" "--arch=ia32" "--dist-url=https://www.electronjs.org/headers" "--build-from-source"
gyp ERR! cwd /tmp/electron-packager/linux-ia32/Google Play Music Desktop Player-linux-ia32/resources/app/node_modules/mouse-forward-back
gyp ERR! node -v v10.19.0
gyp ERR! node-gyp -v v6.1.0
gyp ERR! not ok 

Failed with exit code: 1
    at SafeSubscriber._error (/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/node_modules/spawn-rx/src/index.ts:296:18)
    at SafeSubscriber.__tryOrUnsub (/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/node_modules/rxjs/src/internal/Subscriber.ts:265:10)
    at SafeSubscriber.error (/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/node_modules/rxjs/src/internal/Subscriber.ts:220:16)
    at Subscriber._error (/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/node_modules/rxjs/src/internal/Subscriber.ts:143:22)
    at Subscriber.error (/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/node_modules/rxjs/src/internal/Subscriber.ts:113:12)
    at MapSubscriber.Subscriber._error (/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/node_modules/rxjs/src/internal/Subscriber.ts:143:22)
    at MapSubscriber.Subscriber.error (/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/node_modules/rxjs/src/internal/Subscriber.ts:113:12)
    at SafeSubscriber._next (/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/node_modules/spawn-rx/src/index.ts:265:42)
    at SafeSubscriber.__tryOrUnsub (/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/node_modules/rxjs/src/internal/Subscriber.ts:265:10)
    at SafeSubscriber.next (/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/node_modules/rxjs/src/internal/Subscriber.ts:207:14)
    at Subscriber._next (/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/node_modules/rxjs/src/internal/Subscriber.ts:139:22)
    at Subscriber.next (/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/node_modules/rxjs/src/internal/Subscriber.ts:99:12)
    at DefaultIfEmptySubscriber._next (/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/node_modules/rxjs/src/internal/operators/defaultIfEmpty.ts:75:22)
    at DefaultIfEmptySubscriber.Subscriber.next (/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/node_modules/rxjs/src/internal/Subscriber.ts:99:12)
    at TakeLastSubscriber._complete (/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/node_modules/rxjs/src/internal/operators/takeLast.ts:108:21)
    at TakeLastSubscriber.Subscriber.complete (/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/node_modules/rxjs/src/internal/Subscriber.ts:126:12)
[10:20:15] 'deb:linux' errored after 29 s
[10:20:15] Error in plugin 'run-sequence(package:linux:32)'
Message:
    make: Entering directory '/tmp/electron-packager/linux-ia32/Google Play Music Desktop Player-linux-ia32/resources/app/node_modules/mouse-forward-back/build'
  CXX(target) Release/obj.target/mouse-forward-back/mouse-forward-back.o
In file included from ../mouse-forward-back.cc:1:
../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
../../nan/nan.h:2294:62: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
 2294 |     , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
      |                                                              ^
../mouse-forward-back.cc: At global scope:
../mouse-forward-back.cc:12:18: warning: unnecessary parentheses in declaration of ‘cb’ [-Wparentheses]
   12 |     Nan::Callback(cb);
      |                  ^
../mouse-forward-back.cc: In function ‘void MouseForwardBack::events_callback(uv_async_t*)’:
../mouse-forward-back.cc:55:24: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
   55 |         cb.Call(1, &arg);
      |                        ^
In file included from ../mouse-forward-back.cc:1:
../../nan/nan.h:1742:3: note: declared here
 1742 |   Call(int argc, v8::Local<v8::Value> argv[]) const {
      |   ^~~~
In file included from ../../nan/nan.h:56,
                 from ../mouse-forward-back.cc:1:
../mouse-forward-back.cc: At global scope:
/home/simons/.electron-gyp/iojs-3.1.8/src/node.h:442:43: warning: cast between incompatible function types from ‘void (*)(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void (*)(v8::Local<v8::Object>)’} to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
  442 |       (node::addon_register_func) (regfunc),                          \
      |                                           ^
/home/simons/.electron-gyp/iojs-3.1.8/src/node.h:476:3: note: in expansion of macro ‘NODE_MODULE_X’
  476 |   NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
      |   ^~~~~~~~~~~~~
../mouse-forward-back.cc:92:5: note: in expansion of macro ‘NODE_MODULE’
   92 |     NODE_MODULE(mouse, Init)
      |     ^~~~~~~~~~~
In file included from /home/simons/.electron-gyp/iojs-3.1.8/src/node.h:54,
                 from ../../nan/nan.h:56,
                 from ../mouse-forward-back.cc:1:
/home/simons/.electron-gyp/iojs-3.1.8/deps/v8/include/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]’:
/home/simons/.electron-gyp/iojs-3.1.8/src/node_object_wrap.h:85:78:   required from here
/home/simons/.electron-gyp/iojs-3.1.8/deps/v8/include/v8.h:9256:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<node::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
 9256 |                reinterpret_cast<Callback>(callback), type);
      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/simons/.electron-gyp/iojs-3.1.8/deps/v8/include/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]’:
../../nan/nan_object_wrap.h:65:61:   required from here
/home/simons/.electron-gyp/iojs-3.1.8/deps/v8/include/v8.h:9256:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
  SOLINK_MODULE(target) Release/obj.target/mouse-forward-back.node
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libX11.so when searching for -lX11
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libX11.a when searching for -lX11
/usr/bin/ld: cannot find -lX11
collect2: error: ld returned 1 exit status
make: *** [mouse-forward-back.target.mk:130: Release/obj.target/mouse-forward-back.node] Error 1
make: Leaving directory '/tmp/electron-packager/linux-ia32/Google Play Music Desktop Player-linux-ia32/resources/app/node_modules/mouse-forward-back/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (events.js:198:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Linux 5.6.0-15.2-liquorix-amd64
gyp ERR! command "/usr/bin/node" "/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/node_modules/.bin/node-gyp" "rebuild" "--target=3.1.8" "--arch=ia32" "--dist-url=https://www.electronjs.org/headers" "--build-from-source"
gyp ERR! cwd /tmp/electron-packager/linux-ia32/Google Play Music Desktop Player-linux-ia32/resources/app/node_modules/mouse-forward-back
gyp ERR! node -v v10.19.0
gyp ERR! node-gyp -v v6.1.0
gyp ERR! not ok 

Failed with exit code: 1
Stack:
Error: make: Entering directory '/tmp/electron-packager/linux-ia32/Google Play Music Desktop Player-linux-ia32/resources/app/node_modules/mouse-forward-back/build'
  CXX(target) Release/obj.target/mouse-forward-back/mouse-forward-back.o
In file included from ../mouse-forward-back.cc:1:
../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
../../nan/nan.h:2294:62: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
 2294 |     , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
      |                                                              ^
../mouse-forward-back.cc: At global scope:
../mouse-forward-back.cc:12:18: warning: unnecessary parentheses in declaration of ‘cb’ [-Wparentheses]
   12 |     Nan::Callback(cb);
      |                  ^
../mouse-forward-back.cc: In function ‘void MouseForwardBack::events_callback(uv_async_t*)’:
../mouse-forward-back.cc:55:24: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
   55 |         cb.Call(1, &arg);
      |                        ^
In file included from ../mouse-forward-back.cc:1:
../../nan/nan.h:1742:3: note: declared here
 1742 |   Call(int argc, v8::Local<v8::Value> argv[]) const {
      |   ^~~~
In file included from ../../nan/nan.h:56,
                 from ../mouse-forward-back.cc:1:
../mouse-forward-back.cc: At global scope:
/home/simons/.electron-gyp/iojs-3.1.8/src/node.h:442:43: warning: cast between incompatible function types from ‘void (*)(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void (*)(v8::Local<v8::Object>)’} to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
  442 |       (node::addon_register_func) (regfunc),                          \
      |                                           ^
/home/simons/.electron-gyp/iojs-3.1.8/src/node.h:476:3: note: in expansion of macro ‘NODE_MODULE_X’
  476 |   NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
      |   ^~~~~~~~~~~~~
../mouse-forward-back.cc:92:5: note: in expansion of macro ‘NODE_MODULE’
   92 |     NODE_MODULE(mouse, Init)
      |     ^~~~~~~~~~~
In file included from /home/simons/.electron-gyp/iojs-3.1.8/src/node.h:54,
                 from ../../nan/nan.h:56,
                 from ../mouse-forward-back.cc:1:
/home/simons/.electron-gyp/iojs-3.1.8/deps/v8/include/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]’:
/home/simons/.electron-gyp/iojs-3.1.8/src/node_object_wrap.h:85:78:   required from here
/home/simons/.electron-gyp/iojs-3.1.8/deps/v8/include/v8.h:9256:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<node::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
 9256 |                reinterpret_cast<Callback>(callback), type);
      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/simons/.electron-gyp/iojs-3.1.8/deps/v8/include/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]’:
../../nan/nan_object_wrap.h:65:61:   required from here
/home/simons/.electron-gyp/iojs-3.1.8/deps/v8/include/v8.h:9256:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
  SOLINK_MODULE(target) Release/obj.target/mouse-forward-back.node
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libX11.so when searching for -lX11
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libX11.a when searching for -lX11
/usr/bin/ld: cannot find -lX11
collect2: error: ld returned 1 exit status
make: *** [mouse-forward-back.target.mk:130: Release/obj.target/mouse-forward-back.node] Error 1
make: Leaving directory '/tmp/electron-packager/linux-ia32/Google Play Music Desktop Player-linux-ia32/resources/app/node_modules/mouse-forward-back/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (events.js:198:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Linux 5.6.0-15.2-liquorix-amd64
gyp ERR! command "/usr/bin/node" "/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/node_modules/.bin/node-gyp" "rebuild" "--target=3.1.8" "--arch=ia32" "--dist-url=https://www.electronjs.org/headers" "--build-from-source"
gyp ERR! cwd /tmp/electron-packager/linux-ia32/Google Play Music Desktop Player-linux-ia32/resources/app/node_modules/mouse-forward-back
gyp ERR! node -v v10.19.0
gyp ERR! node-gyp -v v6.1.0
gyp ERR! not ok 

Failed with exit code: 1
    at SafeSubscriber._error (/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/node_modules/spawn-rx/src/index.ts:296:18)
    at SafeSubscriber.__tryOrUnsub (/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/node_modules/rxjs/src/internal/Subscriber.ts:265:10)
    at SafeSubscriber.error (/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/node_modules/rxjs/src/internal/Subscriber.ts:220:16)
    at Subscriber._error (/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/node_modules/rxjs/src/internal/Subscriber.ts:143:22)
    at Subscriber.error (/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/node_modules/rxjs/src/internal/Subscriber.ts:113:12)
    at MapSubscriber.Subscriber._error (/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/node_modules/rxjs/src/internal/Subscriber.ts:143:22)
    at MapSubscriber.Subscriber.error (/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/node_modules/rxjs/src/internal/Subscriber.ts:113:12)
    at SafeSubscriber._next (/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/node_modules/spawn-rx/src/index.ts:265:42)
    at SafeSubscriber.__tryOrUnsub (/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/node_modules/rxjs/src/internal/Subscriber.ts:265:10)
    at SafeSubscriber.next (/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/node_modules/rxjs/src/internal/Subscriber.ts:207:14)
    at Subscriber._next (/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/node_modules/rxjs/src/internal/Subscriber.ts:139:22)
    at Subscriber.next (/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/node_modules/rxjs/src/internal/Subscriber.ts:99:12)
    at DefaultIfEmptySubscriber._next (/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/node_modules/rxjs/src/internal/operators/defaultIfEmpty.ts:75:22)
    at DefaultIfEmptySubscriber.Subscriber.next (/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/node_modules/rxjs/src/internal/Subscriber.ts:99:12)
    at TakeLastSubscriber._complete (/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/node_modules/rxjs/src/internal/operators/takeLast.ts:108:21)
    at TakeLastSubscriber.Subscriber.complete (/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/node_modules/rxjs/src/internal/Subscriber.ts:126:12)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! google-play-music-desktop-player@4.7.1 make:deb: `gulp make:linux:deb`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the google-play-music-desktop-player@4.7.1 make:deb script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/simons/.npm/_logs/2020-06-02T08_20_29_596Z-debug.log
jostrander commented 4 years ago

This is more than likely due to not using yarn (yarnpkg.com). When using npm the dependencies aren't locked due to no package-lock.json.

superbonaci commented 4 years ago

Installed yarn but still keeps failing:

sudo apt install cmdtest
npm run make:deb

> google-play-music-desktop-player@4.7.1 make:deb /home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-
> gulp make:linux:deb

[00:24:56] Failed to load external module @babel/register
[00:24:56] Requiring external module babel-register
[00:24:57] Using gulpfile ~/Google-Play-Music-Desktop-Player-UNOFFICIAL-/gulpfile.babel.js
[00:24:57] Starting 'deb:linux'...
[00:24:57] Starting 'clean-dist-linux-32'...
[00:24:57] Starting 'clean-internal'...
[00:24:57] Starting 'clean-images'...
[00:24:57] Starting 'clean-less'...
[00:24:57] Starting 'clean-fonts'...
[00:24:57] Starting 'clean-html'...
[00:24:57] Starting 'clean-locales'...
[00:24:57] Finished 'clean-dist-linux-32' after 15 ms
[00:24:57] Finished 'clean-less' after 50 ms
[00:24:57] Starting 'less'...
[00:24:57] Finished 'clean-html' after 54 ms
[00:24:57] Starting 'html'...
[00:24:57] Finished 'clean-images' after 76 ms
[00:24:57] Starting 'copy-static-images'...
[00:24:57] Finished 'clean-fonts' after 76 ms
[00:24:57] Starting 'fonts'...
[00:24:57] Finished 'html' after 116 ms
[00:24:57] Finished 'clean-locales' after 178 ms
[00:24:57] Starting 'locales'...
[00:24:57] Finished 'less' after 203 ms
[00:24:57] Finished 'locales' after 105 ms
[00:24:57] Finished 'copy-static-images' after 212 ms
[00:24:57] Starting 'images'...
[00:24:58] Finished 'clean-internal' after 604 ms
[00:24:58] Starting 'transpile'...
[00:24:58] Finished 'fonts' after 1.07 s
[00:24:59] Finished 'images' after 1.63 s
[00:25:01] Finished 'transpile' after 3.34 s
[00:25:01] Starting 'build'...
[00:25:01] Finished 'build' after 46 μs
[00:25:01] Starting 'build-release'...
[00:25:01] Finished 'build-release' after 105 ms
[00:25:01] Starting 'package:linux:32'...
Packaging app for platform linux ia32 using electron v3.1.8
You are using the deprecated electron-rebuild API, please switch to using the options object instead
Attempting to build a module with a space in the path
See https://github.com/nodejs/node-gyp/issues/65#issuecomment-368820565 for reasons why this may not work
Attempting to build a module with a space in the path
See https://github.com/nodejs/node-gyp/issues/65#issuecomment-368820565 for reasons why this may not work
Attempting to build a module with a space in the path
See https://github.com/nodejs/node-gyp/issues/65#issuecomment-368820565 for reasons why this may not work
Attempting to build a module with a space in the path
See https://github.com/nodejs/node-gyp/issues/65#issuecomment-368820565 for reasons why this may not work
Attempting to build a module with a space in the path
See https://github.com/nodejs/node-gyp/issues/65#issuecomment-368820565 for reasons why this may not work
[00:25:14] 'package:linux:32' errored after 13 s
[00:25:14] Error: make: Entering directory '/tmp/electron-packager/linux-ia32/Google Play Music Desktop Player-linux-ia32/resources/app/node_modules/mouse-forward-back/build'
  CXX(target) Release/obj.target/mouse-forward-back/mouse-forward-back.o
In file included from ../mouse-forward-back.cc:1:
../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
../../nan/nan.h:2294:62: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
 2294 |     , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
      |                                                              ^
../mouse-forward-back.cc: At global scope:
../mouse-forward-back.cc:12:18: warning: unnecessary parentheses in declaration of ‘cb’ [-Wparentheses]
   12 |     Nan::Callback(cb);
      |                  ^
../mouse-forward-back.cc: In function ‘void MouseForwardBack::events_callback(uv_async_t*)’:
../mouse-forward-back.cc:55:24: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
   55 |         cb.Call(1, &arg);
      |                        ^
In file included from ../mouse-forward-back.cc:1:
../../nan/nan.h:1742:3: note: declared here
 1742 |   Call(int argc, v8::Local<v8::Value> argv[]) const {
      |   ^~~~
In file included from ../../nan/nan.h:56,
                 from ../mouse-forward-back.cc:1:
../mouse-forward-back.cc: At global scope:
/home/simons/.electron-gyp/iojs-3.1.8/src/node.h:442:43: warning: cast between incompatible function types from ‘void (*)(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void (*)(v8::Local<v8::Object>)’} to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
  442 |       (node::addon_register_func) (regfunc),                          \
      |                                           ^
/home/simons/.electron-gyp/iojs-3.1.8/src/node.h:476:3: note: in expansion of macro ‘NODE_MODULE_X’
  476 |   NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
      |   ^~~~~~~~~~~~~
../mouse-forward-back.cc:92:5: note: in expansion of macro ‘NODE_MODULE’
   92 |     NODE_MODULE(mouse, Init)
      |     ^~~~~~~~~~~
In file included from /home/simons/.electron-gyp/iojs-3.1.8/src/node.h:54,
                 from ../../nan/nan.h:56,
                 from ../mouse-forward-back.cc:1:
/home/simons/.electron-gyp/iojs-3.1.8/deps/v8/include/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]’:
/home/simons/.electron-gyp/iojs-3.1.8/src/node_object_wrap.h:85:78:   required from here
/home/simons/.electron-gyp/iojs-3.1.8/deps/v8/include/v8.h:9256:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<node::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
 9256 |                reinterpret_cast<Callback>(callback), type);
      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/simons/.electron-gyp/iojs-3.1.8/deps/v8/include/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]’:
../../nan/nan_object_wrap.h:65:61:   required from here
/home/simons/.electron-gyp/iojs-3.1.8/deps/v8/include/v8.h:9256:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
  SOLINK_MODULE(target) Release/obj.target/mouse-forward-back.node
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libX11.so when searching for -lX11
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libX11.a when searching for -lX11
/usr/bin/ld: cannot find -lX11
collect2: error: ld returned 1 exit status
make: *** [mouse-forward-back.target.mk:130: Release/obj.target/mouse-forward-back.node] Error 1
make: Leaving directory '/tmp/electron-packager/linux-ia32/Google Play Music Desktop Player-linux-ia32/resources/app/node_modules/mouse-forward-back/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (events.js:198:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Linux 5.4.0-42-generic
gyp ERR! command "/usr/bin/node" "/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/node_modules/.bin/node-gyp" "rebuild" "--target=3.1.8" "--arch=ia32" "--dist-url=https://www.electronjs.org/headers" "--build-from-source"
gyp ERR! cwd /tmp/electron-packager/linux-ia32/Google Play Music Desktop Player-linux-ia32/resources/app/node_modules/mouse-forward-back
gyp ERR! node -v v10.19.0
gyp ERR! node-gyp -v v6.1.0
gyp ERR! not ok 

Failed with exit code: 1
    at SafeSubscriber._error (/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/node_modules/spawn-rx/src/index.ts:296:18)
    at SafeSubscriber.__tryOrUnsub (/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/node_modules/rxjs/src/internal/Subscriber.ts:265:10)
    at SafeSubscriber.error (/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/node_modules/rxjs/src/internal/Subscriber.ts:220:16)
    at Subscriber._error (/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/node_modules/rxjs/src/internal/Subscriber.ts:143:22)
    at Subscriber.error (/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/node_modules/rxjs/src/internal/Subscriber.ts:113:12)
    at MapSubscriber.Subscriber._error (/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/node_modules/rxjs/src/internal/Subscriber.ts:143:22)
    at MapSubscriber.Subscriber.error (/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/node_modules/rxjs/src/internal/Subscriber.ts:113:12)
    at SafeSubscriber._next (/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/node_modules/spawn-rx/src/index.ts:265:42)
    at SafeSubscriber.__tryOrUnsub (/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/node_modules/rxjs/src/internal/Subscriber.ts:265:10)
    at SafeSubscriber.next (/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/node_modules/rxjs/src/internal/Subscriber.ts:207:14)
    at Subscriber._next (/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/node_modules/rxjs/src/internal/Subscriber.ts:139:22)
    at Subscriber.next (/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/node_modules/rxjs/src/internal/Subscriber.ts:99:12)
    at DefaultIfEmptySubscriber._next (/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/node_modules/rxjs/src/internal/operators/defaultIfEmpty.ts:75:22)
    at DefaultIfEmptySubscriber.Subscriber.next (/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/node_modules/rxjs/src/internal/Subscriber.ts:99:12)
    at TakeLastSubscriber._complete (/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/node_modules/rxjs/src/internal/operators/takeLast.ts:108:21)
    at TakeLastSubscriber.Subscriber.complete (/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/node_modules/rxjs/src/internal/Subscriber.ts:126:12)
[00:25:14] 'deb:linux' errored after 17 s
[00:25:14] Error in plugin 'run-sequence(package:linux:32)'
Message:
    make: Entering directory '/tmp/electron-packager/linux-ia32/Google Play Music Desktop Player-linux-ia32/resources/app/node_modules/mouse-forward-back/build'
  CXX(target) Release/obj.target/mouse-forward-back/mouse-forward-back.o
In file included from ../mouse-forward-back.cc:1:
../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
../../nan/nan.h:2294:62: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
 2294 |     , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
      |                                                              ^
../mouse-forward-back.cc: At global scope:
../mouse-forward-back.cc:12:18: warning: unnecessary parentheses in declaration of ‘cb’ [-Wparentheses]
   12 |     Nan::Callback(cb);
      |                  ^
../mouse-forward-back.cc: In function ‘void MouseForwardBack::events_callback(uv_async_t*)’:
../mouse-forward-back.cc:55:24: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
   55 |         cb.Call(1, &arg);
      |                        ^
In file included from ../mouse-forward-back.cc:1:
../../nan/nan.h:1742:3: note: declared here
 1742 |   Call(int argc, v8::Local<v8::Value> argv[]) const {
      |   ^~~~
In file included from ../../nan/nan.h:56,
                 from ../mouse-forward-back.cc:1:
../mouse-forward-back.cc: At global scope:
/home/simons/.electron-gyp/iojs-3.1.8/src/node.h:442:43: warning: cast between incompatible function types from ‘void (*)(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void (*)(v8::Local<v8::Object>)’} to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
  442 |       (node::addon_register_func) (regfunc),                          \
      |                                           ^
/home/simons/.electron-gyp/iojs-3.1.8/src/node.h:476:3: note: in expansion of macro ‘NODE_MODULE_X’
  476 |   NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
      |   ^~~~~~~~~~~~~
../mouse-forward-back.cc:92:5: note: in expansion of macro ‘NODE_MODULE’
   92 |     NODE_MODULE(mouse, Init)
      |     ^~~~~~~~~~~
In file included from /home/simons/.electron-gyp/iojs-3.1.8/src/node.h:54,
                 from ../../nan/nan.h:56,
                 from ../mouse-forward-back.cc:1:
/home/simons/.electron-gyp/iojs-3.1.8/deps/v8/include/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]’:
/home/simons/.electron-gyp/iojs-3.1.8/src/node_object_wrap.h:85:78:   required from here
/home/simons/.electron-gyp/iojs-3.1.8/deps/v8/include/v8.h:9256:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<node::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
 9256 |                reinterpret_cast<Callback>(callback), type);
      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/simons/.electron-gyp/iojs-3.1.8/deps/v8/include/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]’:
../../nan/nan_object_wrap.h:65:61:   required from here
/home/simons/.electron-gyp/iojs-3.1.8/deps/v8/include/v8.h:9256:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
  SOLINK_MODULE(target) Release/obj.target/mouse-forward-back.node
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libX11.so when searching for -lX11
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libX11.a when searching for -lX11
/usr/bin/ld: cannot find -lX11
collect2: error: ld returned 1 exit status
make: *** [mouse-forward-back.target.mk:130: Release/obj.target/mouse-forward-back.node] Error 1
make: Leaving directory '/tmp/electron-packager/linux-ia32/Google Play Music Desktop Player-linux-ia32/resources/app/node_modules/mouse-forward-back/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (events.js:198:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Linux 5.4.0-42-generic
gyp ERR! command "/usr/bin/node" "/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/node_modules/.bin/node-gyp" "rebuild" "--target=3.1.8" "--arch=ia32" "--dist-url=https://www.electronjs.org/headers" "--build-from-source"
gyp ERR! cwd /tmp/electron-packager/linux-ia32/Google Play Music Desktop Player-linux-ia32/resources/app/node_modules/mouse-forward-back
gyp ERR! node -v v10.19.0
gyp ERR! node-gyp -v v6.1.0
gyp ERR! not ok 

Failed with exit code: 1
Stack:
Error: make: Entering directory '/tmp/electron-packager/linux-ia32/Google Play Music Desktop Player-linux-ia32/resources/app/node_modules/mouse-forward-back/build'
  CXX(target) Release/obj.target/mouse-forward-back/mouse-forward-back.o
In file included from ../mouse-forward-back.cc:1:
../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
../../nan/nan.h:2294:62: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
 2294 |     , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
      |                                                              ^
../mouse-forward-back.cc: At global scope:
../mouse-forward-back.cc:12:18: warning: unnecessary parentheses in declaration of ‘cb’ [-Wparentheses]
   12 |     Nan::Callback(cb);
      |                  ^
../mouse-forward-back.cc: In function ‘void MouseForwardBack::events_callback(uv_async_t*)’:
../mouse-forward-back.cc:55:24: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
   55 |         cb.Call(1, &arg);
      |                        ^
In file included from ../mouse-forward-back.cc:1:
../../nan/nan.h:1742:3: note: declared here
 1742 |   Call(int argc, v8::Local<v8::Value> argv[]) const {
      |   ^~~~
In file included from ../../nan/nan.h:56,
                 from ../mouse-forward-back.cc:1:
../mouse-forward-back.cc: At global scope:
/home/simons/.electron-gyp/iojs-3.1.8/src/node.h:442:43: warning: cast between incompatible function types from ‘void (*)(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void (*)(v8::Local<v8::Object>)’} to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
  442 |       (node::addon_register_func) (regfunc),                          \
      |                                           ^
/home/simons/.electron-gyp/iojs-3.1.8/src/node.h:476:3: note: in expansion of macro ‘NODE_MODULE_X’
  476 |   NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
      |   ^~~~~~~~~~~~~
../mouse-forward-back.cc:92:5: note: in expansion of macro ‘NODE_MODULE’
   92 |     NODE_MODULE(mouse, Init)
      |     ^~~~~~~~~~~
In file included from /home/simons/.electron-gyp/iojs-3.1.8/src/node.h:54,
                 from ../../nan/nan.h:56,
                 from ../mouse-forward-back.cc:1:
/home/simons/.electron-gyp/iojs-3.1.8/deps/v8/include/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]’:
/home/simons/.electron-gyp/iojs-3.1.8/src/node_object_wrap.h:85:78:   required from here
/home/simons/.electron-gyp/iojs-3.1.8/deps/v8/include/v8.h:9256:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<node::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
 9256 |                reinterpret_cast<Callback>(callback), type);
      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/simons/.electron-gyp/iojs-3.1.8/deps/v8/include/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]’:
../../nan/nan_object_wrap.h:65:61:   required from here
/home/simons/.electron-gyp/iojs-3.1.8/deps/v8/include/v8.h:9256:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
  SOLINK_MODULE(target) Release/obj.target/mouse-forward-back.node
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libX11.so when searching for -lX11
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libX11.a when searching for -lX11
/usr/bin/ld: cannot find -lX11
collect2: error: ld returned 1 exit status
make: *** [mouse-forward-back.target.mk:130: Release/obj.target/mouse-forward-back.node] Error 1
make: Leaving directory '/tmp/electron-packager/linux-ia32/Google Play Music Desktop Player-linux-ia32/resources/app/node_modules/mouse-forward-back/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (events.js:198:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Linux 5.4.0-42-generic
gyp ERR! command "/usr/bin/node" "/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/node_modules/.bin/node-gyp" "rebuild" "--target=3.1.8" "--arch=ia32" "--dist-url=https://www.electronjs.org/headers" "--build-from-source"
gyp ERR! cwd /tmp/electron-packager/linux-ia32/Google Play Music Desktop Player-linux-ia32/resources/app/node_modules/mouse-forward-back
gyp ERR! node -v v10.19.0
gyp ERR! node-gyp -v v6.1.0
gyp ERR! not ok 

Failed with exit code: 1
    at SafeSubscriber._error (/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/node_modules/spawn-rx/src/index.ts:296:18)
    at SafeSubscriber.__tryOrUnsub (/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/node_modules/rxjs/src/internal/Subscriber.ts:265:10)
    at SafeSubscriber.error (/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/node_modules/rxjs/src/internal/Subscriber.ts:220:16)
    at Subscriber._error (/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/node_modules/rxjs/src/internal/Subscriber.ts:143:22)
    at Subscriber.error (/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/node_modules/rxjs/src/internal/Subscriber.ts:113:12)
    at MapSubscriber.Subscriber._error (/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/node_modules/rxjs/src/internal/Subscriber.ts:143:22)
    at MapSubscriber.Subscriber.error (/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/node_modules/rxjs/src/internal/Subscriber.ts:113:12)
    at SafeSubscriber._next (/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/node_modules/spawn-rx/src/index.ts:265:42)
    at SafeSubscriber.__tryOrUnsub (/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/node_modules/rxjs/src/internal/Subscriber.ts:265:10)
    at SafeSubscriber.next (/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/node_modules/rxjs/src/internal/Subscriber.ts:207:14)
    at Subscriber._next (/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/node_modules/rxjs/src/internal/Subscriber.ts:139:22)
    at Subscriber.next (/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/node_modules/rxjs/src/internal/Subscriber.ts:99:12)
    at DefaultIfEmptySubscriber._next (/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/node_modules/rxjs/src/internal/operators/defaultIfEmpty.ts:75:22)
    at DefaultIfEmptySubscriber.Subscriber.next (/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/node_modules/rxjs/src/internal/Subscriber.ts:99:12)
    at TakeLastSubscriber._complete (/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/node_modules/rxjs/src/internal/operators/takeLast.ts:108:21)
    at TakeLastSubscriber.Subscriber.complete (/home/simons/Google-Play-Music-Desktop-Player-UNOFFICIAL-/node_modules/rxjs/src/internal/Subscriber.ts:126:12)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! google-play-music-desktop-player@4.7.1 make:deb: `gulp make:linux:deb`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the google-play-music-desktop-player@4.7.1 make:deb script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/simons/.npm/_logs/2020-08-12T22_25_50_922Z-debug.log
jostrander commented 4 years ago

Either this isn't compat with node 10, or something changed in x11 to make node-mouse-forward incompat. I'm on 20.04, if I have a chance I'll take a look.