Giter Site home page Giter Site logo

Comments (23)

Txiaozhe avatar Txiaozhe commented on June 3, 2024 1

Okay, I will try it :) thanks

from shadownode.

yorkie avatar yorkie commented on June 3, 2024 1

@Txiaozhe this build has not entered the ShadowNode package yet, it seems failed on your toolchain.

from shadownode.

yorkie avatar yorkie commented on June 3, 2024

As it's described as "Linux", ShadowNode is working on Linux :)

from shadownode.

Txiaozhe avatar Txiaozhe commented on June 3, 2024

But my device installed one openwrt, and I run the ShadowNode bin for linux in my device, it is not running :(

from shadownode.

legendecas avatar legendecas commented on June 3, 2024

Please provide any outputs and details platform information if possible.

from shadownode.

Txiaozhe avatar Txiaozhe commented on June 3, 2024

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.

Txiaozhe avatar Txiaozhe commented on June 3, 2024

I use this https://github.com/yodaos-project/ShadowNode/releases/download/v0.11.7/shadow-node-v0.11.7-Linux-x86_64.tar.gz

from shadownode.

yorkie avatar yorkie commented on June 3, 2024

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.

Txiaozhe avatar Txiaozhe commented on June 3, 2024

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.

Txiaozhe avatar Txiaozhe commented on June 3, 2024

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:

  1. firstly it is slowly!
  2. 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 avatar Txiaozhe commented on June 3, 2024

@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 avatar Txiaozhe commented on June 3, 2024

@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.

yorkie avatar yorkie commented on June 3, 2024

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.

yorkie avatar yorkie commented on June 3, 2024

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.

Txiaozhe avatar Txiaozhe commented on June 3, 2024

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.

qile222 avatar qile222 commented on June 3, 2024

Is this path /my/toolchain/dir/file correct ?

from shadownode.

Txiaozhe avatar Txiaozhe commented on June 3, 2024

Is this path /my/toolchain/dir/file correct ?

Yes,I am sure. It is the absolute path of this toolchain file.

from shadownode.

yorkie avatar yorkie commented on June 3, 2024
toolchain

Report a complete error?

from shadownode.

Txiaozhe avatar Txiaozhe commented on June 3, 2024

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.

Txiaozhe avatar Txiaozhe commented on June 3, 2024

build env: build env: Ubuntu 16.04 LTS 64bit, 1.3GHz*2, 4GB mem

from shadownode.

yorkie avatar yorkie commented on June 3, 2024

/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.

qile222 avatar qile222 commented on June 3, 2024

Use uname -a to determine your architecture then download the right toolchain

from shadownode.

Txiaozhe avatar Txiaozhe commented on June 3, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.