Giter Site home page Giter Site logo

sfml_androidstudio's Introduction

SFML-AndroidStudio-Template

WIP. Android Studio, with the Gradle and CMake build system, template for a Native (and/or Hybrid) App with SFML

Prerequisites

Brain.exe

Install Android Studio (2.3.3 +)

At the first startup of Android Studio install the SDK and NDK in Android Studio. I recommend doing it directly in android studio so your sdk and ndk directories are set correctly

Build SFML for android (use libc++_shared, change the build.gradle file in the template for full c++11 support!), have a look at the SFML wiki there is a tutorial.

For Building SFML with libc++ android-ndk-r12b is required. Afterwards you can use the latest and greatest from android-studio

If however, you build SFML from git, you can also build with latest android-ndk

How to use

Clone this git, rename the folder and then just open it in android studio (2.3+)

FIX YOUR PATHS AND ABI FILTERS

Now you can simply run the application!

Todo

  • CleanUp Paths and abiFilters
  • Support linking of debug libs

sfml_androidstudio's People

Contributors

alexaut avatar alia5 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

sfml_androidstudio's Issues

Unable to use the template

Hi,

I updated these properties in 'build.gradle' to match my API version :

    compileSdkVersion 28
    buildToolsVersion "28.0.3"
    defaultConfig {
        applicationId "sfml.com.sfml_example"
        //Replace this with your real package name (e.g. com.StudioName.GameName)
        minSdkVersion 28
        targetSdkVersion 28

I have problems with the dependencies and I don't know how to fix that issue :

FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring project ':app'.

Could not resolve all dependencies for configuration ':app:_debugApkCopy'.
Could not find com.android.support:appcompat-v7:25.3.1.
Required by:
project :app
Could not find com.android.support.constraint:constraint-layout:1.0.2.
Required by:
project :app
Could not find com.android.support:support-v4:25.3.1.
Required by:
project :app

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
            exclude group: 'com.android.support', module: 'support-annotations'
        })
        compile 'com.android.support:appcompat-v7:25.3.1'
        compile 'com.android.support.constraint:constraint-layout:1.0.2'
        compile 'com.android.support:support-v4:25.3.1'
        testCompile 'junit:junit:4.12'
    }

When I remove dependencies, I have this error :

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':app'.
> executing external native build for cmake C:\DevProjects\SFML_AndroidStudio\app\CMakeLists.txt

I followed this tutorial https://github.com/SFML/SFML/wiki/Tutorial:-Building-SFML-for-Android but I don't know how to launch this gradle build on Windows that's why I'm using your template.

Thanks.

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.