SFML community forums
Help => General => Topic started by: R23MJ on May 21, 2015, 07:09:28 pm
-
Is anyone here familiar with how to actually setup an android project, I am using VS13 with NVIDIA Nsight Tegra. Now do I need to use one of the Java project types provided by NVIDIA or a standard c++ project? Also would I link the .so files SFML provides like any other library or is the process different?
Thanks
-
Have you seen this (https://github.com/SFML/SFML/wiki/Tutorial%3A-Building-SFML-for-Android)? The Wiki is usually a good place to find information if something is not on the homepage :)
I personally haven't used SFML on Android yet, but there are a few people around who have and may help you concretely.
-
Yes, I have. That is the tutorial I followed to compile SFML, I just can't figure out what to do next. There is an unwritten section at the bottom of that called "Building and Executing the Android Example" this is where I am stuck, I can't figure out how to build the example, or my own project for that matter. Sorry if my first post was unclear.
-
I responsed here (http://en.sfml-dev.org/forums/index.php?topic=13716.msg131085#msg131085). For the example for android, the ABI is set to armeabi-v7a( jni/Application.mk) so you need to be carefully what arhitecture the phone/simulator has. ( yes, you can add more/change values to the ABI).
-
Have a look at this commit, which adds a simple/empty project template you can use (plus readme; builds with CMake, just set "CMAKE_SYSTEM_NAME" to "Android" to create a Nsight project).
https://github.com/MarioLiebisch/SFML/commit/42b14ddc5aab0dc9fde5e2d4e0c657a5506cbd5e
-
Okay, I tried your suggestions, and it seems promising, but I can't find out where to add the include directories, usually it is right in the project properties, but there is nothing in there in this project. There is also no property for linking the libraries. So right now I have the empty project supplied, and errors stating <SFML/System.hpp> and so on can not be included.
-
Those should be set by CMake. Or are you talking about your own? Also note that the template isn't 100% up to date, e.g. you'd have to change the ABi to armeabi-v7a (which is now the default).
I'll try to find some time this weekend to possibly update it, since it seems like there's at least some interest in that. :)
-
Okay, strange, I will rebuild SFML again and see what happens. That sounds great, let me know if/when you do update it. For now I'm going to rebuild and try the provided example.