What's your NDK version? For some reason it can't find the header files.
There should be a directory <NDK root>/sources/sfml/include with SFML's header files. If it's there, there might be something off with your environment configuration.
The NDK Version is the last version r12b.
Yes the folder C:\Android\NDK\sources\sfml\include\SFML exists and exists files hpp.
And the path in my environment configuration is good is this:
- ANDROID_NDK: C:/Android/NDK
- PATH: C:\Android\NDK and try this also C:/Android/NDK
I changed the folder C:\Android\NDK\sources\sfml\lib armeabi for armeabi-v7a, and build this (I do not know if it is ok):
C:\SFML-master\examples\android>ndk-build
[armeabi-v7a] Install : libsfml-activity.so => libs/armeabi-v7a/libsfml-activity.so
[armeabi-v7a] Install : libsfml-example.so => libs/armeabi-v7a/libsfml-example.so
[armeabi-v7a] Install : libsfml-system.so => libs/armeabi-v7a/libsfml-system.so
[armeabi-v7a] Install : libsfml-window.so => libs/armeabi-v7a/libsfml-window.so
[armeabi-v7a] Install : libsfml-graphics.so => libs/armeabi-v7a/libsfml-graphics.so
[armeabi-v7a] Install : libsfml-audio.so => libs/armeabi-v7a/libsfml-audio.so
[armeabi-v7a] Install : libsfml-network.so => libs/armeabi-v7a/libsfml-network.so
[armeabi-v7a] Install : libstlport_shared.so => libs/armeabi-v7a/libstlport_shared.so
[armeabi-v7a] Install : libopenal.so => libs/armeabi-v7a/libopenal.so
But not create in the folder C:\SFML-master\examples\android\bin the apk file...
And execute ant debug and show this errors:
Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre1.8.0_101\lib\tools.jar
Buildfile: C:\SFML-master\examples\android\build.xml
-set-mode-check:
-set-debug-files:
-check-env:
[checkenv] Android SDK Tools Revision 24.3.2
[checkenv] Installed at C:\Users\Sergio\AppData\Local\Android\sdk
-setup:
[echo] Project Name: SFML-Example
[gettype] Project Type: Application
-set-debug-mode:
-debug-obfuscation-check:
-pre-build:
-build-setup:
[getbuildtools] Using latest Build Tools: 23.0.3
[echo] Resolving Build Target for SFML-Example...
[gettarget] Project Target: Android 4.2.2
[gettarget] API level: 17
[echo] ----------
[echo] Creating output directories if needed...
[echo] ----------
[echo] Resolving Dependencies for SFML-Example...
[dependency] Library dependencies:
[dependency] No Libraries
[dependency]
[dependency] ------------------
[echo] ----------
[echo] Building Libraries with 'debug'...
[subant] No sub-builds to iterate on
-code-gen:
[mergemanifest] Found Deleted Target File
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Manifest merger disabled. Using project manifest only.
[echo] hasCode = false. Skipping aidl/renderscript/R.java
-pre-compile:
-compile:
[echo] hasCode = false. Skipping...
-post-compile:
-obfuscate:
-dex:
[echo] hasCode = false. Skipping...
-crunch:
BUILD FAILED
C:\Users\Sergio\AppData\Local\Android\sdk\tools\ant\build.xml:911: Execute failed: java.io.IOException: Cannot run program "${aapt}" (in directory "C:\SFML-master\examples\android"): CreateProcess error=2, El sistema no puede encontrar el archivo especificado
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at org.apache.tools.ant.taskdefs.launcher.Java13CommandLauncher.exec(Java13CommandLauncher.java:58)
at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:426)
at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:440)
at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:629)
at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:670)
at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:496)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:435)
at org.apache.tools.ant.Target.performTasks(Target.java:456)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
at org.apache.tools.ant.Project.executeTarget(Project.java:1376)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
at org.apache.tools.ant.Main.runBuild(Main.java:854)
at org.apache.tools.ant.Main.startAnt(Main.java:236)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:285)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:112)
Caused by: java.io.IOException: CreateProcess error=2, El sistema no puede encontrar el archivo especificado
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 24 more
Total time: 0 seconds
Thank you