Franz bzw Electron Kompilieren?

Sadakazu

Well-Known Member
Moin moin...
Und nochmal wieder ein kleines Problemchen...
Ich nutze gerne Franz als Desktop-App für Whatsapp.
Allerdings gibts keine executables für FreeBSD.. also auf nach Github... source herunter geladen und nach der Linux Anleitung versucht zu bauen....

Folgende Fehlermeldung bekomme ich:
Code:
sada@freebsd:/usr/devel/franz/franz % yarn add global gulp-cli@1.2.2
yarn add v1.1.0
[1/4] Resolving packages...
[2/4] Fetching packages...
info 7zip-bin-linux@1.1.0: The platform "freebsd" is incompatible with this module.
info "7zip-bin-linux@1.1.0" is an optional dependency and failed compatibility check. Excluding it from installation.
info 7zip-bin-mac@1.0.1: The platform "freebsd" is incompatible with this module.
info "7zip-bin-mac@1.0.1" is an optional dependency and failed compatibility check. Excluding it from installation.
info 7zip-bin-win@2.1.0: The platform "freebsd" is incompatible with this module.
info "7zip-bin-win@2.1.0" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents@1.1.2: The platform "freebsd" is incompatible with this module.
info "fsevents@1.1.2" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning "eslint-config-airbnb@14.1.0" has incorrect peer dependency "eslint@^3.15.0".
warning "eslint-plugin-jsx-a11y@3.0.2" has incorrect peer dependency "eslint@^2.10.2 || 3.x".
warning "eslint-plugin-react@6.10.3" has incorrect peer dependency "eslint@^2.0.0 || ^3.0.0".
[4/4] Building fresh packages...
[1/7] ⠈ @paulcbetts/system-idle-time: '-Goutput_dir=.' ]
[2/7] ⠈ @paulcbetts/cld: spawn args  '-Goutput_dir=.' ]
[3/7] ⠈ @paulcbetts/spellchecker: '-Goutput_dir=.' ]
[4/7] ⠈ keyboard-layout: gyp info using node@8.8.1 | freebsd | x64
error /usr/devel/franz/franz/node_modules/@paulcbetts/spellchecker: Command failed.
Exit code: 1
Command: node-gyp rebuild
Arguments:
Directory: /usr/devel/franz/franz/node_modules/@paulcbetts/spellchecker
Output:
gyp info it worked if it ends with ok
gyp info using node-gyp@3.6.2
gyp info using node@8.8.1 | freebsd | x64
gyp info spawn /usr/local/bin/python2
gyp info spawn args [ '/usr/home/sada/.config/yarn/global/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args  'binding.gyp',
gyp info spawn args  '-f',
gyp info spawn args  'make',
gyp info spawn args  '-I',
gyp info spawn args  '/usr/devel/franz/franz/node_modules/@paulcbetts/spellchecker/build/config.gypi',
gyp info spawn args  '-I',
gyp info spawn args  '/usr/home/sada/.config/yarn/global/node_modules/node-gyp/addon.gypi',
gyp info spawn args  '-I',
gyp info spawn args  '/home/sada/.node-gyp/8.8.1/include/node/common.gypi',
gyp info spawn args  '-Dlibrary=shared_library',
gyp info spawn args  '-Dvisibility=default',
gyp info spawn args  '-Dnode_root_dir=/home/sada/.node-gyp/8.8.1',
gyp info spawn args  '-Dnode_gyp_dir=/usr/home/sada/.config/yarn/global/node_modules/node-gyp',
gyp info spawn args  '-Dnode_lib_file=/home/sada/.node-gyp/8.8.1/<(target_arch)/node.lib',
gyp info spawn args  '-Dmodule_root_dir=/usr/devel/franz/franz/node_modules/@paulcbetts/spellchecker',
gyp info spawn args  '-Dnode_engine=v8',
gyp info spawn args  '--depth=.',
gyp info spawn args  '--no-parallel',
gyp info spawn args  '--generator-output',
gyp info spawn args  'build',
gyp info spawn args  '-Goutput_dir=.' ]
gyp: name 'spellchecker_use_hunspell' is not defined while evaluating condition 'spellchecker_use_hunspell=="true"' in binding.gyp while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack  at ChildProcess.onCpExit (/usr/home/sada/.config/yarn/global/node_modules/node-gyp/lib/configure.js:336:16)
gyp ERR! stack  at emitTwo (events.js:125:13)
gyp ERR! stack  at ChildProcess.emit (events.js:213:7)
gyp ERR! stack  at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System FreeBSD 11.1-RELEASE-p1
gyp ERR! command "/usr/local/bin/node" "/home/sada/.yarn/bin/node-gyp" "rebuild"
gyp ERR! cwd /usr/devel/franz/franz/node_modules/@paulcbetts/spellchecker
Diesen Electron kram raff ich einfach nicht :D
 
Hallo

"error /usr/devel/franz/franz/node_modules/@paulcbetts/spellchecker: Command failed."

Kannst du mal nachschauen was da steht? Der Rechnerkann's jedenfalls m.E. nicht ausführen. Ist das ein (Shell-) Script?
 
spellchecker ist ein verzeichnis
Code:
sada@freebsd:/usr/devel/franz/franz/node_modules/@paulcbetts/spellchecker % ls
binding.gyp  build  lib  LICENSE.md  package.json README.md  src

EDIT:
Code:
gyp: name 'spellchecker_use_hunspell' is not defined while evaluating condition 'spellchecker_use_hunspell=="true"' in binding.gyp while trying to load binding.gyp
also mal die binding.gyp geöffnet....

Code:
{
  'variables': {
  'conditions': [
  ['OS=="mac"', {
  'spellchecker_use_hunspell%': 'true',
  }],
  ['OS=="linux"', {
  'spellchecker_use_hunspell': 'true',
  }],
  ['OS=="win"', {
  'spellchecker_use_hunspell': 'true',
  }],
  ],
  },
/*schnipp*/
reicht es wenn ich OS=="freebsd"..... von hand überall hinzufüge?
 
reicht es wenn ich OS=="freebsd"..... von hand überall hinzufüge?
Bestimmt nicht, aber vielleicht kommst du damit weiter bis zum nächsten Fehler :p

Z.B. 7zip-bin (also eine vorkompilierte Version von 7zip) gibt es dann wahrscheinlich auch nicht einfach so für FreeBSD.

Zum Thema *BSD und Electron fällt mir dieser Artikel hier ein. Der erklärt die Situation eigentlich ganz gut.

https://deftly.net/posts/2017-06-01-measuring-the-weight-of-an-electron.html
 
Zurück
Oben