Code Monkey home page Code Monkey logo

weex_js_engine's Introduction

weex_js_engine

Weex JavaScript Runtime based on google v8 JavaScript engine and apple javascriptCore!

How to build

Download NDK and Set Environment PATH

  1. Download NDK(version at least 'r11e')
    NDK download address
  2. Add NDK folder to PATH
    add this line to your profile script:export PATH=[Your NDK Folder]/:"$PATH"

Compile V8

Excute cd [Your Source Folder]/weex_v8core/ && run ndk-build

weex_js_engine's People

Contributors

luics avatar lvscar avatar sospartan avatar zshshr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

weex_js_engine's Issues

cygwin编译错误.

编译其他的jni项目是可以的.

但是编译 weex_v8core

cd jni/v8core/v8 && TARGET_ARCH=armeabi ./build.sh
'TARGET_ARCH' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
make: *** [jni/v8core/v8/out/android_arm.release//obj.target/tools/gyp//libv8_base.a] Error 1

报错

v8多实例

请问这个v8core能进行v8多实例的new操作吗,然后使用的Isolate::Scope进行isolate作用域区分?在使用的时候遇到了在Isolate::Scope或者HandleScope中出现了问题。

compiled failed

/develop/android/githubSource/weex_js_engine/jni/v8core/com_taobao_weex_bridge_WXBridge.cpp:123:37: error: 
      use of undeclared identifier 'strlen'
    v8::V8::SetFlagsFromString(str, strlen(str));
                                    ^
/develop/android/githubSource/weex_js_engine/jni/v8core/com_taobao_weex_bridge_WXBridge.cpp:403:22: error: 
      use of undeclared identifier 'strlen'
        int strLen = strlen(ToCString(str));
                     ^
/develop/android/githubSource/weex_js_engine/jni/v8core/com_taobao_weex_bridge_WXBridge.cpp:411:22: error: 
      use of undeclared identifier 'strlen'
        int strLen = strlen(*tasks);
                     ^
/develop/android/githubSource/weex_js_engine/jni/v8core/com_taobao_weex_bridge_WXBridge.cpp:470:22: error: 
      use of undeclared identifier 'strlen'
        int strLen = strlen(ToCString(str));
                     ^

@zhuzhaoyuan @sospartan @JacksonTian @luics @oldratlee

请问编译相关问题

文档上面写r11e版本的ndk。但是我没有找到r11e的版本ndk。谷歌官方网站也没有看到相关版本?请问在哪里有下载?

v8更新问题

感觉你们v8 都不更新啦?什么时候更新支持es6

-Dxxx Compile Error

发现是jni/v8core/build/android.gypi下面的宏定义出现问题:
make[3]: -DANDROID: Command not found

如果注销掉ANDROID,后面的宏仍然会出现上面的问题:
make[3]: -DV8_ANDROID_LOG_STDOUT: Command not found

用了几个不同版本的NDK都试过了:r11c, r12b, r14b

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.