dna2github / dna2oslab Goto Github PK
View Code? Open in Web Editor NEWoperating system laborary
License: MIT License
operating system laborary
License: MIT License
Although here is a repo to complete the work: https://bitbucket.org/ntakimura/android-nginx
We would like to build it from nginx original source code.
how to fill this?
export ENVSRCTARBALL=""
export HOST_GCC_DIR=""
I don't know where can you explain in detail?
I'm using linux based debian thank you
你好博主,我这边部署工程之后,运行nginx-1.18.0.sh会出现如下错误
/home/hjc/Desktop/dna2oslab-master/android/buildv2/android-ndk-r21e/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android26-clang --build=x86_64-linux --host=arm-eabi --target=arm-eabi -L/home/hjc/Desktop/dna2oslab-master/android/nginx-1.18.0/../dist/pcre-8.44/lib -L/home/hjc/Desktop/dna2oslab-master/android/nginx-1.18.0/../dist/zlib-1.2.11/lib conftest.c >&5
clang: error: unsupported option '--build=x86_64-linux'
clang: error: unsupported option '--host=arm-eabi'
Currrently nginx build is hacked for Android in the repo. It compiled object files one by one and then link them all together to make nginx binary. User cannot customized features. Will fix it in future.
kona:/cache/nginx-1.18.0 # ./sbin/nginx -c conf/nginx.conf
nginx: [alert] could not open error log file: open() "/opt/lab/dna/dna2oslab/android/buildv2/../nginx-1.18.0/dist//logs/error.log" failed (2: No such file or directory)
2024/01/15 09:27:15 [emerg] 29213#0: open() "/opt/lab/dna/dna2oslab/android/buildv2/../nginx-1.18.0/dist//conf/nginx.conf" failed (2: No such file or directory)
我自己尝试编译但是无法通过,是否有可以直接运行的arm64位二进制文件
Currently the binary pgen
is provided and it is just supported in specific Linux platform. Need to write some bash script to patch python Makefile to pass pgen
compilation like: gcc -o pgen pgen.c
I find that the when I write "rewirte" in nginx.conf, I get this error,"nginx: [emerg] unknown directive "rewrite" in ./conf/nginx.conf:5", and when I find the nginx configure, I find that "--without-http_rewrite_module".
ndoejs update v8 source and use gyp to generate build script. it is hard to pass CFLAGS and LDFLAGS to gyp generated files; it is inconvenient to sed all files to patch INCS_Relase or INCS_Debug in .mk files. Will change CXX and CC to attach CFLAGS and LDFLAGS directly to have a try.
如题。
这样也方便我自己写native的扩展。
@dna2github ,error.log可以在nginx.conf或ngx_auto_conf.h中进行配置,但是实际上nginx运行的时候仍然会产生一个error.logs文件,用来收集系统错误而非nginx运行时产生的错误,这个error.logs可以在什么地方进行路径配置
cat: /root/dna2oslab/android/build/haproxy/config.h: No such file or directory
提示缺少文件
可以帮忙编译个(armv8)aarch64 的haproxy吗
This issue is just FYI, feel free to close.
Thanks for writing your build script. It compiled node as executable and helped solve some errors when trying to compile as a library. But still I didn't manage to get a full library compile after a day of trying.
I have documented my findings on stackoverflow - Viable options to running NodeJS on Android (Aug 2017) where you are also mentioned a number of times.
How can i use this to run node.js application alongside my android code in my activity? Furthermore please explain clearly all the steps one need to take yo use this library. after installing NDK, how will i include this library to my android project?
cmake is a little confusing for unix-like os user like me. I would like to think about converting cmake configurations to a normal gnu style to enable compiling with ./configure && make.
how to extra file with name bin-node-v8.4.0, i dont know file type (mac os)...
ll cmd like this:
anddeMac-mini:bin_android and$ ll
-rw-r--r--@ 1 and staff 19020848 11 5 21:56 bin-node-v8.4.0
file is zip , tar tar.gz or other i cannt unzip it .
any example ?
since ndk will drop gcc and use clang, need to spend some time to switch build script to use clang.
你好:
我这边每次在Android系统下运行nginx都会在bin-nginx-1.10.2所在目录下产生一个error.logs,请问这个文件是如何产生的,又该如何配置这个文件的目录。
此致
敬礼
++ sed -i 's|historyPath = path.join.|historyPath = '''/data/local/tmp/.node_repl_history''';|' /Users//Documents/sourceCode/dna2oslab-master/android/build/../node-v8.4.0/lib/internal/repl.js
sed: 1: "/Users//Documents ...": undefined label '*/Documents/sourceCode/dna2oslab-master/android/build/../node-v8.4.0/lib/internal/repl.js'
env.sh:
export ANDROID_VERSION="19"
export BUILD_MACHINE="darwin-x86_64"
export GCC_VERSION="4.9"
export SRCTARBALL="/Users//Documents/sourceCode/dna2oslab-master/android/opt"
export NDKDIR="/Users//Documents/AndroidSDK/android-ndk-r10e"
我想在android上用nginx搭建一个rtmp服务器,不知如何编译出.so或者.a来方便android集成和代码调用?
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.