Hi - eDEX-UI looks awesome, and I'd like to run it on my Raspb Pi 3 B+ using the latest Raspbian version (Stretch). I'm very new in all of this, so please forgive if I made a mistake. When executing the AppImage nothing happens. I've made the AppImage executable...
Thanks!
The released AppImage is a binary package compiled to be used on x86 or x86_64 architectures platforms. As Pi's cpus are using the armv6/armv7 architectures, you need to build from source, by using the tool chain targeting your specific arch (and his assembly code) arm Soc's. Additionnaly, eDEX-UI is maybe using hw graphic accelaration on specific OS (Linux,Windows, MacOS) like opengl that you will not be able to use directly on Pi, because broadcom released only OpenGLES libraries. However, a driver is actually in progress to use the mesa DRI graphic stack and OpenGL targeting the GPU (VideoCore4) on Pi's. As you are running Raspbian Strech, you can enable it.
OK - thanks!
Just leaving a comment that I was able to get this running on a rpi 3 b+ on Raspbian Stretch. But, I had to do a few extra steps:
sudo raspi-config, go to Advanced Options, then GL Driver, choose GL (Fake KMS), and rebootcd edex-ui && npm installpackage.json and replace the linux build arch configuration with this:"linux": {
"target": [
{
"target": "AppImage",
"arch": [
"armv7l"
]
}
],
...
}
git clone https://git.kernel.org/pub/scm/fs/squashfs/squashfs-tools.gitsudo apt-get install liblzma5 liblzma-devcd squashfs-tools/squashfs-toolsMakefileXZ_SUPPORT = 1
makesudo make installmkdir ~/.cache/electron-builder/appimage/appimage-9.1.0/linux-armln -s `which mksquashfs` ~/.cache/electron-builder/appimage/appimage-9.1.0/linux-arm/mksquashfsln -s `which desktop-file-validate` ~/.cache/electron-builder/appimage/appimage-9.1.0/linux-arm/desktop-file-validateedex-ui folder cd ../../npm run build-linuxIt runs a bit slow, but it is functional and responds to touch events with the official 7" raspberry pi touchscreen.
@thallada Wow. Nice job.
It errored out for me I really want this to run on my raspberry pi 2 as it is the perfect thing for a project I am doing. any advice that might help get this to work?
Maybe post the error? I haven't tried to run on the raspberry pi 2.
Does the dev. team provide an arm built binary? if no, no way exept if
you will try to build from source and don't forget dependancies....
Does electron and his framework take in charge the gl using hw gpu
accelaration on arm target and bcm specific gl layers?
Le 19/02/2019 Γ 01:46, Jacob T Lusco a Γ©critΒ :
>
It errored out for me I really want this to run on my raspberry pi 2
as it is the perfect thing for a project I am doing. any advice that
might help get this to work?β
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/GitSquared/edex-ui/issues/313#issuecomment-464934736,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AKW8rdjiCfiRvOa98koT6M9f_-dbP7lkks5vO0l5gaJpZM4Y3NmE.
Failed at the [email protected] postinstall script 'node install.js'.
I haven't enabled ARM builds because I don't have any hardware to test them and cannot provide support if something goes wrong. Electron is supposed to have arm support though, so like @thallada said you should be able to get a build running if you really want to.
This is what happens now I have no idea how to decipher this but I feel like I am getting close.
[email protected] install /home/user/Tools/edex-ui/prebuild-src/node_modules/node-pty
node scripts/install.js
make: Entering directory '/home/user/Tools/edex-ui/prebuild-src/node_modules/node-pty/build'
CXX(target) Release/obj.target/pty/src/unix/pty.o
../src/unix/pty.cc: In function βvoid pty_after_waitpid(uv_async_t)β:
../src/unix/pty.cc:489:69: warning: βv8::Local
SOLINK_MODULE(target) Release/obj.target/pty.node
COPY Release/pty.node
make: Leaving directory '/home/user/Tools/edex-ui/prebuild-src/node_modules/node-pty/build'
[email protected] postinstall /home/user/Tools/edex-ui/prebuild-src/node_modules/node-pty
node scripts/post-install.js
[email protected] /home/user/Tools/edex-ui/prebuild-src
βββ¬ [email protected]
β βββ [email protected]
β βββ¬ [email protected]
β βββ¬ [email protected]
β β βββ¬ [email protected]
β β β βββ [email protected]
β β β βββ [email protected]
β β βββ¬ [email protected]
β β β βββ [email protected]
β β βββ¬ [email protected]
β β βββ [email protected]
β βββ [email protected]
β βββ [email protected]
β βββ¬ [email protected]
β β βββ [email protected]
β βββ [email protected]
β βββ [email protected]
β βββ [email protected]
βββ¬ [email protected]
β βββ¬ [email protected]
β β βββ [email protected]
β βββ¬ [email protected]
β βββ¬ [email protected]
β βββ [email protected]
βββ [email protected]
βββ [email protected]
βββ¬ [email protected]
β βββ [email protected]
βββ [email protected]
βββ¬ [email protected]
β βββ [email protected]
β βββ¬ [email protected]
β β βββ¬ [email protected]
β β β βββ [email protected]
β β β βββ [email protected]
β β βββ¬ [email protected]
β β βββ¬ [email protected]
β β βββ [email protected]
β β βββ¬ [email protected]
β β βββ [email protected]
β βββ¬ [email protected]
β βββ [email protected]
βββ¬ [email protected]
β βββ¬ [email protected]
β β βββ [email protected]
β β βββ [email protected]
β β βββ¬ [email protected]
β β βββ [email protected]
β βββ [email protected]
β βββ¬ [email protected]
β βββ¬ [email protected]
β β βββ¬ [email protected]
β β βββ¬ [email protected]
β β β βββ¬ [email protected]
β β β βββ [email protected]
β β βββ [email protected]
β βββ¬ [email protected]
β βββ [email protected]
β βββ¬ [email protected]
β β βββ¬ [email protected]
β β β βββ [email protected]
β β βββ [email protected]
β βββ [email protected]
β βββ [email protected]
βββ [email protected]
βββ [email protected]
βββ [email protected]
βββ¬ [email protected]
β βββ [email protected]
βββ [email protected]
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/osx-temperature-sensor):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
[email protected] build-linux /home/user/Tools/edex-ui
electron-builder build -l -p never
β’ electron-builder version=20.38.5
β’ loaded configuration file=package.json ("build" field)
β’ writing effective config file=dist/builder-effective-config.yaml
β’ rebuilding native production dependencies platform=linux arch=armv7l
Error: /usr/bin/nodejs exited with code 1
Output:
[email protected] install /home/user/Tools/edex-ui/prebuild-src/node_modules/node-pty
node scripts/install.js
make: Entering directory '/home/user/Tools/edex-ui/prebuild-src/node_modules/node-pty/build'
CXX(target) Release/obj.target/pty/src/unix/pty.o
pty.target.mk:93: recipe for target 'Release/obj.target/pty/src/unix/pty.o' failed
make: Leaving directory '/home/user/Tools/edex-ui/prebuild-src/node_modules/node-pty/build'
Error output:
g++: error: unrecognized command line option β-std=gnu++1yβ
make: * [Release/obj.target/pty/src/unix/pty.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:194:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Linux 4.4.38-v7+
gyp ERR! command "/usr/bin/nodejs" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/user/Tools/edex-ui/prebuild-src/node_modules/node-pty
gyp ERR! node -v v7.10.1
gyp ERR! node-gyp -v v3.5.0
gyp ERR! not ok
npm ERR! Linux 4.4.38-v7+
npm ERR! argv "/usr/bin/nodejs" "/usr/lib/node_modules/npm/bin/npm-cli.js" "rebuild" "[email protected]"
npm ERR! node v7.10.1
npm ERR! npm v4.2.0
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: node scripts/install.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node scripts/install.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the node-pty package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node scripts/install.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs node-pty
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls node-pty
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/user/.npm/_logs/2019-02-19T21_35_38_468Z-debug.log
at ChildProcess.childProcess.once.code (/home/user/Tools/edex-ui/node_modules/builder-util/src/util.ts:244:14)
at Object.onceWrapper (events.js:293:19)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:194:7)
at maybeClose (internal/child_process.js:899:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
From previous event:
at _rebuild (/home/user/Tools/edex-ui/node_modules/app-builder-lib/src/util/yarn.ts:179:5)
at rebuild (/home/user/Tools/edex-ui/node_modules/app-builder-lib/out/util/yarn.js:163:19)
at /home/user/Tools/edex-ui/node_modules/app-builder-lib/src/util/yarn.ts:20:11
at Generator.next (
at runCallback (timers.js:672:20)
at tryOnImmediate (timers.js:645:5)
at processImmediate [as _immediateCallback] (timers.js:617:5)
From previous event:
at _installOrRebuild (/home/user/Tools/edex-ui/node_modules/app-builder-lib/out/util/yarn.js:71:28)
at installOrRebuild (/home/user/Tools/edex-ui/node_modules/app-builder-lib/out/util/yarn.js:55:28)
at /home/user/Tools/edex-ui/node_modules/app-builder-lib/src/packager.ts:511:13
at Generator.next (
From previous event:
at Packager.installAppDependencies (/home/user/Tools/edex-ui/node_modules/app-builder-lib/src/packager.ts:472:70)
at /home/user/Tools/edex-ui/node_modules/app-builder-lib/src/packager.ts:420:20
at Generator.next (
From previous event:
at Packager.doBuild (/home/user/Tools/edex-ui/node_modules/app-builder-lib/src/packager.ts:396:24)
at /home/user/Tools/edex-ui/node_modules/app-builder-lib/src/packager.ts:366:57
at Generator.next (
at /home/user/Tools/edex-ui/node_modules/graceful-fs/graceful-fs.js:111:16
at /home/user/Tools/edex-ui/node_modules/graceful-fs/graceful-fs.js:45:10
at FSReqWrap.oncomplete (fs.js:114:15)
From previous event:
at Packager._build (/home/user/Tools/edex-ui/node_modules/app-builder-lib/src/packager.ts:335:133)
at /home/user/Tools/edex-ui/node_modules/app-builder-lib/src/packager.ts:331:23
at Generator.next (
at runCallback (timers.js:672:20)
at tryOnImmediate (timers.js:645:5)
at processImmediate [as _immediateCallback] (timers.js:617:5)
From previous event:
at Packager.build (/home/user/Tools/edex-ui/node_modules/app-builder-lib/src/packager.ts:288:14)
at build (/home/user/Tools/edex-ui/node_modules/app-builder-lib/src/index.ts:59:28)
at build (/home/user/Tools/edex-ui/node_modules/electron-builder/src/builder.ts:227:10)
at then (/home/user/Tools/edex-ui/node_modules/electron-builder/src/cli/cli.ts:46:19)
npm ERR! Linux 4.4.38-v7+
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "run" "build-linux"
npm ERR! node v7.10.1
npm ERR! npm v4.2.0
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build-linux: electron-builder build -l -p never
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build-linux script 'electron-builder build -l -p never'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the edex-ui package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! electron-builder build -l -p never
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs edex-ui
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls edex-ui
npm ERR! There is likely additional logging output above.
@C4PT41ND34DP00L
g++: error: unrecognized command line option β-std=gnu++1yβ
Looks like your version of gcc might be too old for the version of Node that you have. Node 10 needs gcc 4.9+
@C4PT41ND34DP00L
g++: error: unrecognized command line option β-std=gnu++1yβLooks like your version of gcc might be too old for the version of Node that you have. Node 10 needs gcc 4.9+
I updated to gcc 8 and got the same error. I am starting to think I am not the person to figure this out.
@thallada If you have the appimage you got working on the Pi 3 would you mind sharing?
Most helpful comment
Just leaving a comment that I was able to get this running on a rpi 3 b+ on Raspbian Stretch. But, I had to do a few extra steps:
sudo raspi-config, go toAdvanced Options, thenGL Driver, chooseGL (Fake KMS), and reboot(I get a blank screen on boot-up with Full KMS)
cd edex-ui && npm installpackage.jsonand replace the linux build arch configuration with this:git clone https://git.kernel.org/pub/scm/fs/squashfs/squashfs-tools.gitsudo apt-get install liblzma5 liblzma-devcd squashfs-tools/squashfs-toolsMakefilemakesudo make installmkdir ~/.cache/electron-builder/appimage/appimage-9.1.0/linux-armln -s `which mksquashfs` ~/.cache/electron-builder/appimage/appimage-9.1.0/linux-arm/mksquashfsln -s `which desktop-file-validate` ~/.cache/electron-builder/appimage/appimage-9.1.0/linux-arm/desktop-file-validateedex-uifoldercd ../../npm run build-linuxIt runs a bit slow, but it is functional and responds to touch events with the official 7" raspberry pi touchscreen.