Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: SFML and Android  (Read 850 times)

0 Members and 1 Guest are viewing this topic.

ingar

  • Newbie
  • *
  • Posts: 3
    • View Profile
    • Email
SFML and Android
« on: November 23, 2020, 10:50:39 am »
Hi SFML experts,

I have developed two Linux applications that use SFML. And they work great. :)
But now I am trying to make those programs work under Android.

This is not easy. The "How-to" web page is OK, but in general the tutorial does not work.
So far I have experienced the following:

1. The cmake for making the make script fails.
    For this I have a solution. I needed an update CMakeFiles.txt file.
    After that, compiling SFML works fine.
2. The example project fails to produce an APK file.
    What fails is the "gradle build" command.
    I get this error:
 
    org.gradle.api.internal.TaskInputsInternal.property(Ljava/lang/String;Ljava/lang/Object;)Lorg/gradle/api/tasks/TaskInputs;

3. In addition to SFML I am also using the TGUI library. Here I can make an APK file for the supplied test program.
    But when running the program on Android, the program crashes.

Anyway, I think I should first try to make the SFML example work.

Does anyone know how to proceed?

My environments:

- Development system: Linux Ubuntu-20-10
- Target system: Android x86-8.1.r5 running under VmWare
- NDK: 21.3.6528147
- gradle: Version 6.7.1

Perhaps I need to downgrade the gradle program?

Regards,
ingar
ingar@labelcraft.net