NW.js build doesn't open for Raspberry Pi (Raspbian) - raspberry-pi

I have a desktop application (built with NW.js and the node-webkit-builder) that runs smoothly on Windows and OS X, however, I can't seem to open the executable on the Raspberry Pi. The NW.js builder outputs the 32- and 64-bit Linux distributions, as well, that I assume should operate on Raspbian or Ubuntu MATE. However, I keep getting the error:
cannot open the application since there isn't a readable executable.
Even after chmod +x the application, it doesn't work.

raspberry pi use arm architecture, you may checkout this: https://github.com/toxygen/armhf-node-webkit

Rasp Pis are using ARM processors and not the x32 and x64 processors the NW.js binaries support.
You will need to download a prebuilt for the ARM or build it yourself.
Here is a link to a prebuilt for 0.12.0. You will package your app just like you would on a x32/x64 machine.
Unfortunately ARM is still not an officially supported platform and if you wish to have prebuilts you will have to depend on community members/contributors.

You need the binary port of NW.js (node-webkit) for Raspberry Pi.
I have just created a repository with the node-webkit binary port that runs on Raspbian, tested and working on Raspberry Pi 1 and Raspberry Pi 3 so it is ARMv6 and ARMv7 compatible.
Here you can check it: https://github.com/jalbam/nwjs_rpi

Related

Raspberry Pi Pico - Install External Libraries/API

I need to use a device to connect and control via a Raspberry Pi Pico.
The device has its own libraries and API with the commands needed to operate it, I have already done this procedure on a Raspberry Pi Zero W on Raspbian by downloading and compiling the API for this device and it works.
How can I compile or install these libraries so that the commands are recognised on the script to be uploaded to the Raspberry Pi Pico, as it does not have an operating system?
Thank you

Attempting to install Clarinet on raspberry pi 3b

I downloaded clarinet from here and am following the installation guide, however I get this error when installing on a raspberry pi:
failed to add native library/home/pi/clarity/clarinet/target/release/gn_out/obj/librusty_v8.a: file too small to be an archive
Does anyone know how to fix this/install clarinet on a raspberry pi?
without knowing much about your environment, to build on arm, there are few things you should be aware of:
there is no musl support, clang is probably best (https://github.com/denoland/rusty_v8/issues/49, I know it says x86_64, but probably same issues on arm)
there is no prebuilt arm binaries (https://github.com/denoland/rusty_v8/releases/)
so you'll probably need to build rusty_v8 from source

ElectronJS electron-builder build error in Raspberry Pi

I followed a blog titled Creating an Electron Application for the Raspberry Pi, regarding starting an Electron app in Raspberry Pi using the Buster OS and got it to compile.
But when it came to building the application, using the electron-builder, I keep getting the error of cannot execute... after running the command electron-builder --dir --armv7l --linux deb and can't figure what the issue is. I've attached the error
Sorry to be 6 months late to the party, but I also just tried to create an Electron app to run on the Raspberry Pi.
It turns out that while Electron runs fine on Arm processors, there are a bunch of problems with building an Electron app via electron-builder on an Arm processor.
The error that you are seeing is just the opening of the rabbit-hole.
Most of the issues appear to be due to electron-builder having apparently been implemented on an x86 machine, with no real care having been taken to make sure that it works on any other architecture - x86 is just pretty-much assumed.
So, for me, the answer was to build the Arm target on an x86 Linux machine, using exactly the same command-line that you used.
So far, I have found that I can build for OS X and Windows on OS X, for Linux x86, Linux Arm, OS X, and Windows on Linux x86. I don't have Windows machine, so I'm not sure what actually works there.
Code signing is yet another rabbit hole....

jsbrowser on Raspbian, operating system not supported

we are trying to run our app that integrates jsbrowser on Raspbian 4.4.50-v7+ (raspberry pi 3) and get the message that the operating system is not installed.
we integrated the linux 32 and 64 bit libraries.
how to get jxbrowser running on Raspbian ?
The Raspberry Pi is an ARM-based platform. According to JxBrowser system requirements this platform is not supported at the moment by the JxBrowser library.

Running gwan on raspberry pi?

Tried the 32bit gwan on raspberry pi but got cannot execute binary file.
Any ways to run on wheeze raspberry pi?
Will be great if we can do test on it.
While Raspberry Pi computers uses ARM CPUs you are using a version of G-WAN compiled for Intel-compatible CPUs.
This just cannot work (unless the Raspberry Pi is running an x86 CPU emulator).