Installing Electron env on Colibri iMX6UL 512MB WB had failed.
opkg install libxss1
can not find anything to satisfy libxss1
npm install electron-prebuilt
fails when executing command >node install.js
[4232.551617] INFO: task node:791 blocked for more than 10 seconds.
appreciate your help
Hi @arkady.pann!
I assume you’re using BSP v2.8. In this version, there’s no libxss1 package available.
You can refer to this comment on this post for a solution.
Best regards,
Gustavo.
Hi Gustavo,
thanks for clarifications. I tried to follow instructions from the post :
https://www.toradex.com/community/questions/22448/opkg-couldnt-find-anything-to-satisfy-libxss1.html?childToView=22612#comment-22612
it did some progress. But now, I am stacked with following error:
error while loading shared libraries: libnode.so: cannot open shared…
I am running
~/electron/node_modules/.bin/electron .
from frameless-window example.
Any thoughts?
Appreciate your help,
Arkady
I am using LXDE-Image 2.8b5.15.
Hi @arkady.pann! The example you tried was from the electron-sample apps repo? As per these instructions:
# git clone https://github.com/hokein/electron-sample-apps.git
# cd electron-sample-apps
# cd frameless-window
# /home/root/electron-framework/node_modules/electron/dist/electron .
Could you please check your node.js installation? This lib should be installed when you ran opkg install nodejs.
correct. node.js was not installed.
Installed now as guided by
opkg update
opkg list | grep nodejs
Node.js may be installed using the following command:
opkg install nodejs
still have the same error on Electron activation:
/home/root/electron/node_modules/electron-prebuilt/dist/electron: error while loading shared libraries: libnode.so: cannot open shared…
I also did a global search for libnode.so library from / .
Nothing was found.
Was something not good with node.js installation?
Dear Gustavo,
Can you provide with a step by step procedure of “how to clean up Colibri i.MX6ULL from all installations and to install Electron environment from scratch”?
I afraid of clashes caused by multiple installations.
Best Regards,
Arkady
Hi @arkady.pann!
I believe the best way to do this would be to reinstall the image from scratch via the Toradex Easy Installer.
Thanks Gustavo.
Which Toradex Embedded Linux demo is preferable for work with Electron?
Toradex Embedded Linux Console Demo 2.8b5.156
or
Toradex Embedded Linux Demo with LXDE 2.8b5.156?
I would go with Toradex LXDE Image.
Do we need build the image using open embedded inorder to use electron?
Hi,
Usually you don’t need to do a custom openembedded build. Did you try this on Bsp 2.8b7.
By the way, I saw you opened a new Ticket. We will do the further discussion there?
Best regards,
Jaski
Hi…
I tried to build using open embedded…But got error there.
riod@riod-desktop:~/oe-core/build$ bitbake libxscrnsaver
Parsing recipes: 100% |########################################################################################################| Time: 0:01:31
Parsing of 770 .bb files complete (0 cached, 770 parsed). 1298 targets, 67 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION = "1.46.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "ubuntu-20.04"
TARGET_SYS = "x86_64-oe-linux"
MACHINE = "qemux86-64"
DISTRO = "nodistro"
DISTRO_VERSION = "nodistro.0"
TUNE_FEATURES = "m64 core2"
TARGET_FPU = ""
meta = "zeus:74e22d0d2b61d0014f408972725469bb7a024622"
Initialising tasks: 100% |#####################################################################################################| Time: 0:00:01
Sstate summary: Wanted 124 Found 0 Missed 124 Current 0 (0% match, 0% complete)
NOTE: Executing Tasks
WARNING: gnu-config-native-20190501+gitAUTOINC+b98424c249-r0 do_fetch: Failed to fetch URL git://git.savannah.gnu.org/config.git, attempting MIRRORS if available
WARNING: xz-native-5.2.4-r0 do_fetch: Failed to fetch URL https://tukaani.org/xz/xz-5.2.4.tar.gz, attempting MIRRORS if available
WARNING: unifdef-native-2.11-r0 do_fetch: Failed to fetch URL http://dotat.at/prog/unifdef/unifdef-2.11.tar.xz, attempting MIRRORS if available
WARNING: gperf-native-3.1-r0 do_fetch: Failed to fetch URL https://ftp.gnu.org/gnu/gperf/gperf-3.1.tar.gz, attempting MIRRORS if available
WARNING: libtirpc-native-1.1.4-r0 do_fetch: Failed to fetch URL https://downloads.sourceforge.net/libtirpc/libtirpc-1.1.4.tar.bz2, attempting MIRRORS if available
ERROR: libtirpc-native-1.1.4-r0 do_fetch: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; unset _PYTHON_SYSCONFIGDATA_NAME; export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus"; export SSH_AGENT_PID="1508"; export SSH_AUTH_SOCK="/run/user/1000/keyring/ssh"; export PATH="/home/riod/oe-core/scripts/native-intercept:/home/riod/oe-core/scripts:/home/riod/oe-core/build/tmp-glibc/work/x86_64-linux/libtirpc-native/1.1.4-r0/recipe-sysroot-native/usr/bin/x86_64-linux:/home/riod/oe-core/build/tmp-glibc/work/x86_64-linux/libtirpc-native/1.1.4-r0/recipe-sysroot-native/usr/bin:/home/riod/oe-core/build/tmp-glibc/work/x86_64-linux/libtirpc-native/1.1.4-r0/recipe-sysroot-native/usr/sbin:/home/riod/oe-core/build/tmp-glibc/work/x86_64-linux/libtirpc-native/1.1.4-r0/recipe-sysroot-native/usr/bin:/home/riod/oe-core/build/tmp-glibc/work/x86_64-linux/libtirpc-native/1.1.4-r0/recipe-sysroot-native/sbin:/home/riod/oe-core/build/tmp-glibc/work/x86_64-linux/libtirpc-native/1.1.4-r0/recipe-sysroot-native/bin:/home/riod/oe-core/bitbake/bin:/home/riod/oe-core/build/tmp-glibc/hosttools"; export HOME="/home/riod"; /usr/bin/env wget -t 2 -T 30 --passive-ftp --no-check-certificate -P /home/riod/oe-core/build/downloads 'https://downloads.sourceforge.net/libtirpc/libtirpc-1.1.4.tar.bz2' --progress=dot -v failed with exit code 4, output:
--2020-08-06 12:41:18-- https://downloads.sourceforge.net/libtirpc/libtirpc-1.1.4.tar.bz2
Resolving downloads.sourceforge.net (downloads.sourceforge.net)... failed: Temporary failure in name resolution.
wget: unable to resolve host address ‘downloads.sourceforge.net’
ERROR: libtirpc-native-1.1.4-r0 do_fetch: Fetcher failure for URL: 'https://downloads.sourceforge.net/libtirpc/libtirpc-1.1.4.tar.bz2'. Unable to fetch URL from any source.
ERROR: Logfile of failure stored in: /home/riod/oe-core/build/tmp-glibc/work/x86_64-linux/libtirpc-native/1.1.4-r0/temp/log.do_fetch.335912
ERROR: Task (virtual:native:/home/riod/oe-core/meta/recipes-extended/libtirpc/libtirpc_1.1.4.bb:do_fetch) failed with exit code '1'
WARNING: libcap-ng-native-0.7.9-r0 do_fetch: Failed to fetch URL http://people.redhat.com/sgrubb/libcap-ng/libcap-ng-0.7.9.tar.gz, attempting MIRRORS if available
NOTE: Tasks Summary: Attempted 224 tasks of which 0 didn't need to be rerun and 1 failed.
Summary: 1 task failed:
virtual:native:/home/riod/oe-core/meta/recipes-extended/libtirpc/libtirpc_1.1.4.bb:do_fetch
Summary: There were 6 WARNING messages shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
riod@riod-desktop:~/oe-core/build$
Do you know what would be the problem?