acsbendi / build-sfml-for-android-on-windows Goto Github PK
View Code? Open in Web Editor NEWBatch scripts to build SFML for Android
Batch scripts to build SFML for Android
Hello.
I'm, trying to use your scripts to build SFML, after I lost hope with official guide.
Thank's a lot, I've build succesfully libs once, but it required to use some commands from your scripts manually. Unfortunately, next attempts to reproduce those steps were unsuccesfull.
Currently, build-sfml.bat fails with next message:
D:\SFML Build>build-sfml.bat C:\AndroidNDK\
Downloading SFML to C:\Users\nikita.smirnov\SFML
fatal: destination path 'SFML' already exists and is not an empty directory
The system cannot find the file specified.
Error occurred while processing: D:\SFML.
The system cannot find the path specified.
The system cannot find the file specified.
Error occurred while processing: D:\SFML.
The system cannot find the path specified.
Invalid number of parameters
'C:\Users\nikita.smirnov\SFML\SFML\build\rebuild-all.bat' is not recognized as an internal or external
command, operable program or batch file.
D:\SFML Build>
Don't mind with not-empy SFML, it's because I'm running the script second time. Seems problems appear when the script trying to exclude arm64 and x86_64.
I would be very grateful for any kind of help or advice.
So this system seems to have rotted or never worked in most cases. For several years I've gone back to this repo to try to build SFML android on windows, hit some mystic errors, give up and retry in a few months hoping for other errors.
So first error is that rebuild.bat is not copied to the SFML download dir.
Next, fixing that the next error is that the rebuild.bat attempts to build in a directory that doesn't have a CMakeLists.txt and that's because it has ../.. in the command instead of just a single ..
So fixing that we then hit:
-- Check for working C compiler: D:/VSG/Build-SFML-For-Android-On-Windows/android-ndk-r20b/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe - broken
CMake Error at C:/Program Files/CMake/share/cmake-3.22/Modules/CMakeTestCCompiler.cmake:69 (message):
The C compiler
"D:/VSG/Build-SFML-For-Android-On-Windows/android-ndk-r20b/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: C:/Users/micha/SFML/SFML/build/CMakeFiles/CMakeTmp
Run Build Command(s):C:/MinGW/bin/mingw32-make.exe -f Makefile cmTC_5514b/fast && C:/MinGW/bin/mingw32-make.exe -f CMakeFiles\cmTC_5514b.dir\build.make CMakeFiles/cmTC_5514b.dir/build
mingw32-make.exe[1]: Entering directory 'C:/Users/micha/SFML/SFML/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_5514b.dir/testCCompiler.c.o
D:\VSG\Build-SFML-For-Android-On-Windows\android-ndk-r20b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang.exe --target=armv7-none-linux-androideabi21 --gcc-toolchain=D:/VSG/Build-SFML-For-Android-On-Windows/android-ndk-r20b/toolchains/llvm/prebuilt/windows-x86_64 --sysroot=D:/VSG/Build-SFML-For-Android-On-Windows/android-ndk-r20b/toolchains/llvm/prebuilt/windows-x86_64/sysroot -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -march=armv7-a -mthumb -Wa,--noexecstack -Wformat -Werror=format-security -fPIE -MD -MT CMakeFiles/cmTC_5514b.dir/testCCompiler.c.o -MF CMakeFiles\cmTC_5514b.dir\testCCompiler.c.o.d -o CMakeFiles\cmTC_5514b.dir\testCCompiler.c.o -c C:\Users\micha\SFML\SFML\build\CMakeFiles\CMakeTmp\testCCompiler.c
Linking C executable cmTC_5514b
"C:\Program Files\CMake\bin\cmake.exe" -E cmake_link_script CMakeFiles\cmTC_5514b.dir\link.txt --verbose=1
Error opening link script "CMakeFiles\cmTC_5514b.dir\link.txt"
CMakeFiles\cmTC_5514b.dir\build.make:98: recipe for target 'cmTC_5514b' failed
mingw32-make.exe[1]: *** [cmTC_5514b] Error 1
mingw32-make.exe[1]: Leaving directory 'C:/Users/micha/SFML/SFML/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_5514b/fast' failed
mingw32-make.exe: *** [cmTC_5514b/fast] Error 2
It seems to me that the NDK is providing a compiler that simply doesn't compile correctly.
I'm largely unsure what to do from here though as I am not prepared to sink a large amount of time into simply getting SFML building for android. It'd be absolutely wonderful to have SFML Android support though. I'm not sure officially if that will happen anytime soon though.
Thank you for providing such a convenient code.
But I got in trouble with building in src\SFML\Network\Socket.cpp
get error : delegating constructors are permitted only in C++11
Socket::Socket(Socket &&rvalue) : Socket(rvalue.m_type)
and
get error : no type named 'move' in namespace 'std'
Socket tmp(std::move(rvalue));
it seems that c++ version is not fitable?
but I have already install lastest version.
Could you have ideal with this? Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.