Giter Club home page Giter Club logo

urho3d's Introduction

My logo

#Android 环境手顺

Android PC win 7环境配置

1. 环境包下载:

下载地址 http://pan.baidu.com/s/1jGoZbMm 我的百度共享

可以选择都安装到比如 F:\Android 目录下

2.配置windows环境变量:

JAVA_HOME = F:\Android\Java\jdk1.8.0_40

ANDROID_NDK = F:\Android\android-ndk

Path变量追加 F:\Android\android-ndk\prebuilt\windows-x86_64\bin;F:\Android\android-sdk\tools;F:\Android\android-sdk\platform-tools;F:\Android\apache-ant-1.9.4\bin

注意这个是为了能使用 1. ant命令 2. android的make命令

3.下载android的SDK Tools:

执行Android SDK Manager 根据调试手机选择你要的API Target包

(Optionally, also install Eclipse ADT plugin for building and deployment via Eclipse.)

4.代码编译部署:

  1. 控制台执行 当前目录下的 make_android.bat (前提是NDK的环境变量都已配好)
  2. cd .build/android ---> 进入目录
  3. android update project -p . -t TARGET_ID ---> 这里TARGET_ID 是通过命令android list targets得到的 我的是android-16
  4. make -j8 ---> 第一次编译很慢
  5. ant debug (或者release) ---> .build\android\bin 这里会生成一个apk包 !
  6. adb install 生成的apk包 就可以部署到手机里了

5.代码开发:

本身引擎自带anglescript的脚本 但是放到手机上有点大 可以直接写c++的代码

C++示例可以参考目录 Urho3D/Source/Samples

其他的平台可以参考 http://urho3d.github.io/documentation/1.32/_building.html

后续: 因为包太大 可以考虑 删除部分不必要的组件 比如脚本

这里提供一个android4.2 API编译的测试apk http://pan.baidu.com/s/1sj0qdkD 可以尝试跑一下该引擎以及示例

第一个游戏例子截图 screen shot

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.