Package Details: betaflight-configurator 10.8.0-1

Git Clone URL: (read-only, click to copy)
Package Base: betaflight-configurator
Description: Crossplatform configuration tool for the Betaflight flight control system
Upstream URL:
Licenses: GPL3
Submitter: FryDay
Maintainer: Jake
Last Packager: Jake
Votes: 14
Popularity: 0.009651
First Submitted: 2018-01-24 18:06 (UTC)
Last Updated: 2022-06-17 09:42 (UTC)

Latest Comments

1 2 3 4 Next › Last »

kleinph commented on 2022-01-12 00:03 (UTC)

Yes it worked. Thank you very much for the really quick fix!

Jake commented on 2022-01-11 22:52 (UTC)

@kleinph: I can reproduce it with latest nodejs v17. In my tests it builds/works fine on node v12-v16 though, so with community/nodejs-lts-erbium up to lts-gallium. But I also checked now why this XML parser is even a dev dependency, turns out it's used for a gulp plugin, that is only relevant to load a config for the Android/Cordova build option. So we are compiling here an native C++ module that is not even used. Also it was not updated since 2019, that explains the incompatibility with current nodejs. Welcome to the wonderful world of node modules...

Long story short: I just removed libxmljs dependency with a patch now, so it can't cause issues anymore. Let me know if it works for you too.

kleinph commented on 2022-01-11 21:00 (UTC)

I cannot build this package. I get a warning that pre-built binaries for lbxmljs could not be downladed and it falls back to compiling. Then I get an error in Make:

error /home/user/.cache/pikaur/build/betaflight-configurator/src/betaflight-configurator/node_modules/libxmljs: Command failed.
Exit code: 1
Command: node-pre-gyp install --fallback-to-build --loglevel http
Directory: /home/user/.cache/pikaur/build/betaflight-configurator/src/betaflight-configurator/node_modules/libxmljs
node-pre-gyp WARN Using request for node-pre-gyp https download 
node-pre-gyp http GET
node-pre-gyp http 404
node-pre-gyp WARN Tried to download(404): 
node-pre-gyp WARN Pre-built binaries not found for libxmljs@0.19.7 and node@17.3.0 (node-v102 ABI, glibc) (falling back to source compile with node-gyp) 
node-pre-gyp http 404 status code downloading tarball 
gyp info it worked if it ends with ok
gyp info using node-gyp@8.4.1
gyp info using node@17.3.0 | linux | x64
gyp info ok 
make: Verzeichnis „/home/user/.cache/pikaur/build/betaflight-configurator/src/betaflight-configurator/node_modules/libxmljs/build“ wird betreten
  CXX(target) Release/
In Datei, eingebunden von ../src/libxmljs.h:7,
                 von ../src/
../../nan/nan.h: In Funktion »void Nan::AsyncQueueWorker(Nan::AsyncWorker*)«:
../../nan/nan.h:2298:7: Warnung: Umwandlung zwischen inkompatiblen Funktionstypen von »void (*)(uv_work_t*)« {aka »void (*)(uv_work_s*)«} nach »uv_after_work_cb« {aka »void (*)(uv_work_s*, int)«} [-Wcast-function-type]
 2298 |     , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In Datei, eingebunden von ../../nan/nan.h:2884,
                 von ../src/libxmljs.h:7,
                 von ../src/
../../nan/nan_typedarray_contents.h: In Konstruktor »Nan::TypedArrayContents<T>::TypedArrayContents(v8::Local<v8::Value>)«:
../../nan/nan_typedarray_contents.h:34:43: Fehler: »class v8::ArrayBuffer« hat kein Element namens »GetContents«
   34 |       data   = static_cast<char*>(buffer->GetContents().Data()) + byte_offset;
      |                                           ^~~~~~~~~~~
make: *** [ Release/] Fehler 1
make: Verzeichnis „/home/user/.cache/pikaur/build/betaflight-configurator/src/betaflight-configurator/node_modules/libxmljs/build“ wird verlassen
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (node:events:390:28)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
gyp ERR! System Linux 5.15.13-arch1-1
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--loglevel=http" "--module=/home/user/.cache/pikaur/build/betaflight-configurator/src/betaflight-configurator/node_modules/libxmljs/build/Release/xmljs.node" "--module_name=xmljs" "--module_path=/home/user/.cache/pikaur/build/betaflight-configurator/src/betaflight-configurator/node_modules/libxmljs/build/Release" "--napi_version=8" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v102"
gyp ERR! cwd /home/user/.cache/pikaur/build/betaflight-configurator/src/betaflight-configurator/node_modules/libxmljs
gyp ERR! node -v v17.3.0
gyp ERR! node-gyp -v v8.4.1
gyp ERR! not ok 
node-pre-gyp ERR! build error 
node-pre-gyp ERR! stack Error: Failed to execute 'node-gyp build --fallback-to-build --loglevel=http --module=/home/user/.cache/pikaur/build/betaflight-configurator/src/betaflight-configurator/node_modules/libxmljs/build/Release/xmljs.node --module_name=xmljs --module_path=/home/user/.cache/pikaur/build/betaflight-configurator/src/betaflight-configurator/node_modules/libxmljs/build/Release --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v102' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/home/user/.cache/pikaur/build/betaflight-configurator/src/betaflight-configurator/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack     at ChildProcess.emit (node:events:390:28)
node-pre-gyp ERR! stack     at maybeClose (node:internal/child_process:1062:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)
node-pre-gyp ERR! System Linux 5.15.13-arch1-1
node-pre-gyp ERR! command "/usr/bin/node" "/home/user/.cache/pikaur/build/betaflight-configurator/src/betaflight-configurator/node_modules/libxmljs/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" "--loglevel" "http"
node-pre-gyp ERR! cwd /home/user/.cache/pikaur/build/betaflight-configurator/src/betaflight-configurator/node_modules/libxmljs
node-pre-gyp ERR! node -v v17.3.0
node-pre-gyp ERR! node-pre-gyp -v v0.11.0
node-pre-gyp ERR! not ok 
Failed to execute 'node-gyp build --fallback-to-build --loglevel=http --module=/home/user/.cache/pikaur/build/betaflight-configurator/src/betaflight-configurator/node_modules/libxmljs/build/Release/xmljs.node --module_name=xmljs --module_path=/home/user/.cache/pikaur/build/betaflight-configurator/src/betaflight-configurator/node_modules/libxmljs/build/Release --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v102' (1)

Jake commented on 2020-06-22 17:44 (UTC)

@Svenstaro: It was a thought as temporary workaround, because stable versions usually build from the archives and don't require downloading all the history. But it is somewhat different here and git is anyway a makedepend, so cloning the repo is probably a better solution. I will change it.

Svenstaro commented on 2020-06-17 13:56 (UTC)

If you need the git hash, why not just get the actual git hash from upstream by cloning the git repo instead of using the zip? Then you don't need to workaround and also you'll get the proper hash in the binary.

andrej commented on 2020-03-13 23:27 (UTC)

At the moment this can’t be installed due to issues with nwjs-bin.

sl1pkn07 commented on 2020-02-19 17:14 (UTC)

icons and desktop file is installed as executable, please use install -Dm644 in the install command


neo2001 commented on 2019-12-15 15:27 (UTC)

@Jake: Confirmed! Works fine now (again)!

Thank you! :)

Jake commented on 2019-12-15 12:05 (UTC) (edited on 2019-12-15 12:06 (UTC) by Jake)

Yes, i found that the issue came with the nwjs update to 0.42.4, where they enabled NW2 per default:

Added a flag to disable it in the start script now, that should fix it, please install the new pkrel and let me know if it works @neo2001.

neo2001 commented on 2019-12-15 11:19 (UTC)

I've just removed the package I previously build manually and reinstalled/rebuild the package using Octopi. All seemed fine, but now both yellow round buttons are greyed out all the time. I can still access the firmware flashing interface by selecting the menu item on the left, but since there is no other button for the configurator, I can't access it. Tried to remove all user settings and plugged in different targets/devices.

Same package build a few days ago on my other machine works still fine.

Googled a bit and found something about the Chrome version having this issue, but this is the standalone version. Just wanted to ask if anyone experienced the same issue recently before asking upstream?