Download the new SFML-Master and have this error when ndk-build, and use the main.cpp from the folder SFML-master / examples / android
C:\SFML-master\examples\android>ndk-build
[armeabi-v7a] Compile++ thumb: sfml-example <= main.cpp
jni/main.cpp:1:27: fatal error: SFML/System.hpp: No such file or directory
#include <SFML/System.hpp>
^
compilation terminated.
make: *** [obj/local/armeabi-v7a/objs/sfml-example/main.o] Error 1
and if copy the folder SFML libs to C:\SFML-master\examples\android\jni show this errors:
C:\SFML-master\examples\android>ndk-build
[armeabi-v7a] Compile++ thumb: sfml-example <= main.cpp
[armeabi-v7a] Prebuilt : libstlport_shared.so <= <NDK>/sources/cxx-stl/stlport/libs/armeabi-v7a/thumb/
[armeabi-v7a] SharedLibrary : libsfml-example.so
jni/main.cpp:24: error: undefined reference to 'sf::getNativeActivity()'
jni/main.cpp:57: error: undefined reference to 'sf::Time::asMilliseconds() const'
jni/SFML/Graphics/Sprite.hpp:47: error: undefined reference to 'sf::Transformable::~Transformable()'
jni/SFML/Graphics/Sprite.hpp:47: error: undefined reference to 'vtable for sf::Sprite'
C:/Android/NDK/build//../toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9/../../../../arm-linux-androideabi/bin/ld.exe: the vtable symbol may be undefined because the class is missing its key function (see go/missingkeymethod)
jni/main.cpp:78: error: undefined reference to 'sf::VideoMode::getDesktopMode()'
jni/main.cpp:78: error: undefined reference to 'sf::String::String(char const*, std::locale const&)'
jni/main.cpp:78: error: undefined reference to 'sf::RenderWindow::RenderWindow(sf::VideoMode, sf::String const&, unsigned int, sf::ContextSettings const&)'
jni/main.cpp:80: error: undefined reference to 'sf::Texture::Texture()'
jni/main.cpp:81: error: undefined reference to 'sf::Texture::loadFromFile(std::string const&, sf::Rect<int> const&)'
jni/main.cpp:84: error: undefined reference to 'sf::Sprite::Sprite(sf::Texture const&)'
jni/main.cpp:85: error: undefined reference to 'sf::Transformable::setPosition(float, float)'
jni/main.cpp:86: error: undefined reference to 'sf::Texture::getSize() const'
jni/main.cpp:86: error: undefined reference to 'sf::Texture::getSize() const'
jni/main.cpp:86: error: undefined reference to 'sf::Transformable::setOrigin(float, float)'
jni/main.cpp:88: error: undefined reference to 'sf::Music::Music()'
jni/main.cpp:89: error: undefined reference to 'sf::Music::openFromFile(std::string const&)'
jni/main.cpp:90: error: undefined reference to 'sf::Music::~Music()'
jni/main.cpp:92: error: undefined reference to 'sf::SoundStream::play()'
jni/main.cpp:94: error: undefined reference to 'sf::RenderTarget::getDefaultView() const'
jni/main.cpp:96: error: undefined reference to 'sf::Window::isOpen() const'
jni/main.cpp:100: error: undefined reference to 'sf::Window::pollEvent(sf::Event&)'
jni/main.cpp:105: error: undefined reference to 'sf::Window::close()'
jni/main.cpp:108: error: undefined reference to 'sf::View::setSize(float, float)'
jni/main.cpp:109: error: undefined reference to 'sf::View::setCenter(float, float)'
jni/main.cpp:110: error: undefined reference to 'sf::RenderTarget::setView(sf::View const&)'
jni/main.cpp:115: error: undefined reference to 'sf::Transformable::setPosition(float, float)'
jni/main.cpp:124: error: undefined reference to 'sf::RenderTarget::clear(sf::Color const&)'
jni/main.cpp:125: error: undefined reference to 'sf::RenderTarget::draw(sf::Drawable const&, sf::RenderStates const&)'
jni/main.cpp:126: error: undefined reference to 'sf::Window::display()'
jni/main.cpp:88: error: undefined reference to 'sf::Music::~Music()'
jni/main.cpp:80: error: undefined reference to 'sf::Texture::~Texture()'
jni/main.cpp:127: error: undefined reference to 'sf::RenderWindow::~RenderWindow()'
jni/main.cpp:82: error: undefined reference to 'sf::Texture::~Texture()'
jni/main.cpp:82: error: undefined reference to 'sf::RenderWindow::~RenderWindow()'
jni/main.cpp:128: error: undefined reference to 'sf::Color::White'
jni/main.cpp:128: error: undefined reference to 'sf::RenderStates::Default'
collect2.exe: error: ld returned 1 exit status
make: *** [obj/local/armeabi-v7a/libsfml-example.so] Error 1