Code Monkey home page Code Monkey logo

oxygine-androidstudio's Introduction

oxygine-androidstudio

This is a sample program from oxygine-framework https://github.com/oxygine/oxygine-framework , and able to build and debug c++ with android studio

Steps

1. clone the latest oxygine-framework from https://github.com/oxygine/oxygine-framework and download the latest SDL2 and rename it to SDL and put at the same peer directory with oxygine-framework

alt tag

1.1 then build your project by execute ${OXYGINE_FRAMEWORK}/examples/HelloWorld/proj.android/build-run.sh

2. Open android studio and click import project the select ${OXYGINE_FRAMEWORK}/examples/HelloWorld/proj.android/build.gradle

alt tag

3. Go to Project Structure and setup the SDK and NDK path of this project.

alt tag

4. Add ndk-build closure in ${OXYGINE_FRAMEWORK}/examples/HelloWorld/proj.android/build.gradle. Then try to build it by execute assembleDebug from android-studio UI

alt tag alt tag alt tag

5. After build successfully, you will see the unstripped lib folder generated at ${OXYGINE_FRAMEWORK}/examples/HelloWorld/proj.android/obj/local/armeabi-v7a , Go to Run tab->edit configuration->Debugger tab and follow the screen below:-

alt tag

add symbol directories differentiate by ABI. eg.

${OXYGINE_FRAMEWORK}/examples/HelloWorld/proj.android/obj/local/armeabi-v7a ${OXYGINE_FRAMEWORK}/examples/HelloWorld/proj.android/obj/local/x86 ..

6. you may now to deploy to your mobile by press debug to mobile/emulator and debug your cpp application

alt tag

7. Attached ready sample for references.

Thanks to https://github.com/oxygine/oxygine-framework has a stable build script.

oxygine-androidstudio's People

Contributors

taymindis avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

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.