sjitech / build-nodejs-for-android Goto Github PK
View Code? Open in Web Editor NEWBuild nodejs for android(arm,arm64,x86,x64,mipsel) perfectly and provide prebuilt binaries, and a docker image as workbench.
License: MIT License
Build nodejs for android(arm,arm64,x86,x64,mipsel) perfectly and provide prebuilt binaries, and a docker image as workbench.
License: MIT License
Hi,
When I exectue test statment "./npm install -g http-server " , shell raises a error of "EROFS: read-only file system, mkdir '/tmp'".
How to solve this error?
请问,在安卓上运行node,是不是必须要root?
Hi,
How i can build GCC and G++ to run on Android (host=arm).
Thanks.
Is it possible to install npm modules like termios?
https://github.com/Gottox/node-termios
It is a binary that gets loaded with the dlopen machinery... which seems to require lots of shared libraries (which android doesn't have).
I run ok!
but show these info:
int ttyname_r(int, char, size_t)(3) is not implemented on Android*
why?
Hello,
I can't build nodejs in the Docker. Could you help me?
cd node && git checkout v8.11.4 && build-nodejs-for-android arm64 -o ../nodejs-6.5.0-android-arm64-full --full
/home/devuser/ndk/std-toolchains/android-21-arm64/bin/g++ '-DV8_GYP_BUILD' '-DV8_TARGET_ARCH_ARM64' '-DENABLE_DISASSEMBLER' '-DV8_PROMISE_INTERNAL_FIELD_COUNT' '-Dv8_promise_internal_field_count' '-DV8_INTL_SUPPORT' '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' '-DUCONFIG_NO_SERVICE=1' '-DUCONFIG_NO_REGULAR_EXPRESSIONS=1' '-DU_ENABLE_DYLOAD=0' '-DU_STATIC_IMPLEMENTATION=1' '-DU_HAVE_STD_STRING=0' '-DUCONFIG_NO_BREAK_ITERATION=0' '-D_GLIBCXX_USE_C99_MATH' -I../deps/v8 -I../. -I/home/devuser/node/out/Release/obj/gen -I../deps/v8/include -I../deps/icu-small/source/i18n -I../deps/icu-small/source/common -Wall -Wextra -Wno-unused-parameter -fdata-sections -ffunction-sections -O2 -fno-omit-frame-pointer -fPIE -fno-rtti -fno-exceptions -std=gnu++0x -MMD -MF /home/devuser/node/out/Release/.deps//home/devuser/node/out/Release/obj.target/v8_base/deps/v8/src/ic/ic.o.d.raw -c -o /home/devuser/node/out/Release/obj.target/v8_base/deps/v8/src/ic/ic.o ../deps/v8/src/ic/ic.cc
../deps/v8/src/ic/ic.cc: In member function 'void v8::internal::IC::TraceIC(const char*, v8::internal::Handle<v8::internal::Object>, v8::internal::IC::State, v8::internal::IC::State)':
../deps/v8/src/ic/ic.cc:164:29: error: 'to_string' is not a member of 'std'
ic_info.instance_type = std::to_string(map->instance_type());
^
make[1]: *** [/home/devuser/node/out/Release/obj.target/v8_base/deps/v8/src/ic/ic.o] Error 1
rm 99fee2a9201067d3d42d5073421262067967ac37.intermediate
make[1]: Leaving directory `/home/devuser/node/out'
make: *** [node] Error 2
It worked when I was trying to build node.js v6.5.0 but failed with node.js v12.40.0
The part of the output is following:
Traceback (most recent call last):
File "../../deps/v8/tools/run.py", line 12, in <module>
sys.exit(subprocess.call(sys.argv[1:]))
File "/usr/lib/python3.6/subprocess.py", line 287, in call
with Popen(*popenargs, **kwargs) as p:
File "/usr/lib/python3.6/subprocess.py", line 729, in __init__
restore_signals, start_new_session)
File "/usr/lib/python3.6/subprocess.py", line 1364, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
OSError: [Errno 8] Exec format error: '/media/psf/vm_share/github/node/out/Release/bytecode_builtins_list_generator'
tools/v8_gypfiles/generate_bytecode_builtins_list.target.mk:13: recipe for target '/media/psf/vm_share/github/node/out/Release/obj/gen/generate-bytecode-output-root/builtins-generated/bytecodes-builtins-list.h' failed
make[1]: *** [/media/psf/vm_share/github/node/out/Release/obj/gen/generate-bytecode-output-root/builtins-generated/bytecodes-builtins-list.h] Error 1
Makefile:101: recipe for target 'node' failed
make: *** [node] Error 2
[BUILD] Build failed. See './out-bin/nodejs-android-arm64/build.log'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.