Comments (23)
Okay, I will try it :) thanks
from shadownode.
@Txiaozhe this build has not entered the ShadowNode package yet, it seems failed on your toolchain.
from shadownode.
As it's described as "Linux", ShadowNode is working on Linux :)
from shadownode.
But my device installed one openwrt, and I run the ShadowNode bin for linux in my device, it is not running :(
from shadownode.
Please provide any outputs and details platform information if possible.
from shadownode.
output
root@OpenWrt:~/iotjs/bin#
root@OpenWrt:~/iotjs/bin# ./iotjs
./iotjs: line 1: syntax error: unexpected ")"
root@OpenWrt:~/iotjs/bin#
root@OpenWrt:~/iotjs/bin#
root@OpenWrt:~/iotjs/bin#
platform information:
https://vocore.io/v2.html#Parameters
Thanks :)
from shadownode.
from shadownode.
It seems that your device is MIPS and ShadowNode doesn't have this type of pre-release, you need to build it by yourself.
from shadownode.
I tried it:
use ubuntu by docker, install some dependents and a MIPS env in it, but my docker is crashed when I build something.
If you have some configurations ? Could you please give me some advice ?
Thanks :)
from shadownode.
I try to build an openwrt of vocore2 before I build shadownode for MIPS because of the toolchain will be generated after build openwrt.
build env: Ubuntu 64bit, 1.3GHz*2, 4GB mem
the problem:
- firstly it is slowly!
- I got error:
touch /home/txiaozhe/GitHub/openwrt/build_dir/toolchain-mipsel_24kc_gcc-7.3.0_musl/binutils-2.29.1/.built
touch /home/txiaozhe/GitHub/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-7.3.0_musl/stamp/.binutils_installed
make[3]: Leaving directory '/home/txiaozhe/GitHub/openwrt/toolchain/binutils'
time: toolchain/binutils/compile#151.40#55.70#543.36
make[2]: Leaving directory '/home/txiaozhe/GitHub/openwrt'
toolchain/Makefile:96: recipe for target '/home/txiaozhe/GitHub/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-7.3.0_musl/stamp/.toolchain_compile' failed
make[1]: *** [/home/txiaozhe/GitHub/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-7.3.0_musl/stamp/.toolchain_compile] Error 2
make[1]: Leaving directory '/home/txiaozhe/GitHub/openwrt'
Build failed - please re-run with -j1 to see the real error message
/home/txiaozhe/GitHub/openwrt/include/toplevel.mk:216: recipe for target 'world' failed
make: *** [world] Error 1
txiaozhe@txiaozhe-UL30A:~/GitHub/openwrt$
txiaozhe@txiaozhe-UL30A:~/GitHub/openwrt$
txiaozhe@txiaozhe-UL30A:~/GitHub/openwrt$
Could you please take a look and give me some advice ? Thanks:)
from shadownode.
@Txiaozhe this build has not entered the ShadowNode package yet, it seems failed on your toolchain.
Yes, the fail happened in my building toolchain
from shadownode.
@Txiaozhe this build has not entered the ShadowNode package yet, it seems failed on your toolchain.
Yes, the fail happened in my building toolchain
Because, I need to build shadownode, the toolchain is needed, but if i want to get the toolchain for vocore , I must build openwrt for vocore. The doc of vocore say that.
from shadownode.
Unfortunately I'm not familiar with the vocore build system, and compiling ShadowNode for mips should not depend on openwrt or buildroot, as I described before, creating your toolchain file should be enough.
from shadownode.
BTW, if you still need a openwrt package, a working version is here: https://github.com/yodaos-project/yodaos/tree/v9.x/openwrt/package/yodaos/shadow-node.
from shadownode.
Thanks, I got my toolchain file and I use this cmd to build shadownode for vocore:
$ tools/build.py --clean --target-os linux --cmake-toolchain-file /my/toolchain/dir/file
but I got an error:
Could not find toolchain file
but I check the path for this toolchain, it is right.
from shadownode.
Is this path /my/toolchain/dir/file
correct ?
from shadownode.
Is this path
/my/toolchain/dir/file
correct ?
Yes,I am sure. It is the absolute path of this toolchain file.
from shadownode.
toolchain
Report a complete error?
from shadownode.
error info:
/home/txiaozhe/GitHub/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-7.3.0_musl/bin/mipsel-openwrt-linux-gcc:1:
Parse error. Expected a command name, got unquoted argument with text "ELF���".
CMake Error at /usr/share/cmake-3.5/Modules/CMakeDetermineSystem.cmake:104 (message):
Could not find toolchain file:
/home/txiaozhe/GitHub/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-7.3.0_musl/bin/mipsel-openwrt-linux-gcc
Call Stack (most recent call first):
CMakeLists.txt:17 (project)
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
[Failed - 1] cmake -B/home/txiaozhe/GitHub/ShadowNode/build/openwrt-linux/debug -H/home/txiaozhe/GitHub/ShadowNode -DCMAKE_TOOLCHAIN_FILE='/home/txiaozhe/GitHub/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-7.3.0_musl/bin/mipsel-openwrt-linux-gcc' -DCMAKE_BUILD_TYPE=Debug -DTARGET_ARCH=openwrt -DTARGET_OS=linux -DTARGET_BOARD=None -DPLATFORM_DESCRIPTOR=openwrt-linux -DENABLE_LTO=OFF -DENABLE_SNAPSHOT=ON -DBUILD_LIB_ONLY=OFF -DBUILD_STATIC=OFF -DINSTALL_PREFIX=/usr/local -DFEATURE_MEM_STATS=OFF -DFEATURE_CPU_PROFILER=OFF -DFEATURE_HEAP_PROFILER=OFF -DEXTERNAL_MODULES='' -DFEATURE_PROFILE='/home/txiaozhe/GitHub/ShadowNode/deps/jerry/jerry-core/profiles/es5.1.profile' -DMEM_HEAP_SIZE_KB=4096 -DEXTERNAL_LIBS='' -DEXTERNAL_COMPILE_FLAGS='' -DEXTERNAL_LINKER_FLAGS='' -DEXTERNAL_INCLUDE_DIR=''
txiaozhe@txiaozhe-UL30A:~/GitHub/ShadowNode$
txiaozhe@txiaozhe-UL30A:~/GitHub/ShadowNode$
txiaozhe@txiaozhe-UL30A:~/GitHub/ShadowNode$
from shadownode.
build env: build env: Ubuntu 16.04 LTS 64bit, 1.3GHz*2, 4GB mem
from shadownode.
/home/txiaozhe/GitHub/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-7.3.0_musl/bin/mipsel-openwrt-linux-gcc
Please make sure your toolchain is working on your host machine, it seems getting the following error: Expected a command name, got unquoted argument with text "ELF���"
from shadownode.
Use uname -a
to determine your architecture then download the right toolchain
from shadownode.
The architecture of my vocore is:
Linux OpenWrt 3.18.29 #3 Sat Aug 25 14:47:39 UTC 2018 mips GNU/Linux
And what the awkward is I can not download the toolchain anyway but can only generated after compile the OpenWrt for vocoreV2.
The document of vocoreV2 says:
note: To get toolchain, please check github.com/vonger/vocore2, after compile openwrt you will get it.
I read the doc of 'github.com/vonger/vocore2' and compiled it but the generated toolchain looks like invalid :(
from shadownode.
Related Issues (20)
- arm 版本静态链接 HOT 2
- openwrt cross-compile failed HOT 8
- websocket.client returns undefined HOT 1
- mqtt: error event trigger multi times while connecting HOT 1
- switch jerryscript to quickjs HOT 2
- deps: update JerryScript to v2.0
- module: NODE_PRIORITIZED_PATH didn't precede relative node_modules HOT 1
- JSON.stringify escaped solidus HOT 1
- TypedArray and Buffer interoperability HOT 2
- net: TypedArray support on write HOT 3
- websocket: handshake failed HOT 1
- could not listen SIGCHLD on JS land HOT 2
- heap profiler: reporter doesn't convert the valid values in some cases HOT 2
- fs: write doesn't work after finished once HOT 1
- Best practice of building with dependencies HOT 4
- shadow need support symmetric encryption HOT 1
- What is the reason for removing dbus native support in shadownode in plan? HOT 6
- `hasOwnProperty` throws an exception when the type of key is `Symbol` HOT 2
- Can not build out arm64 version for linux-android platform HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shadownode.