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

Author Topic: Android Development  (Read 6073 times)

0 Members and 1 Guest are viewing this topic.

jill

  • Newbie
  • *
  • Posts: 19
    • View Profile
Android Development
« on: November 05, 2016, 07:49:50 am »
Hello, I am a FreeBSD user. I want to make android development and find some tools to write program on android itself. So I can connect my phone from FreeBSD and then push the code. I need a SFML API for android use, such as c4droid, termux environment. But the file downloaded here is for arm v7a:
http://www.sfml-dev.org/artifacts/by-branch/master/

So could somebody build an android aarch64 version of SFML API and share with others? Thank you. Just the include headers and lib*.so or lib*.a are needed. Because I have no windows full android environment to build it.

Mario

  • SFML Team
  • Hero Member
  • *****
  • Posts: 879
    • View Profile
Re: Android Development
« Reply #1 on: November 09, 2016, 04:58:49 pm »
Is there any specific reason you'll need ARM-x64 for Android? Have you tried running "armeabi" binaries? These should work on pretty much all current phones.

jill

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: Android Development
« Reply #2 on: November 10, 2016, 10:48:39 am »
Is there any specific reason you'll need ARM-x64 for Android? Have you tried running "armeabi" binaries? These should work on pretty much all current phones.

When I link the v7a version of the so libs, both clang and gcc report invalid format in my phone. Most android phones are aarch64 and very cheap now.

Mario

  • SFML Team
  • Hero Member
  • *****
  • Posts: 879
    • View Profile
Re: Android Development
« Reply #3 on: November 10, 2016, 07:25:28 pm »
Could you copy the exact error message and command you run in your console or terminal?

jill

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: Android Development
« Reply #4 on: November 10, 2016, 10:56:30 pm »
Hello, thanks to Mario reply and thanks to the sfml dev. That link problem is solved by install an eabi v7a clang compiler (cctools). But some other link problems found.

libc++_shared.so is needed by libsfml-*
I found this lib from the exacted sfml NativeActivity-release-unsigned.apk.

libandroid.so should be linked to use sfml-system

undefined reference to __pthread_gettid when link sfml-window and sfml-graphics
I dont know what lib file to link. It seems that android doesnt have a full pthread.

alien8

  • Newbie
  • *
  • Posts: 16
  • 8 bits rocks!
    • View Profile
    • Email
Re: Android Development
« Reply #5 on: December 09, 2016, 07:01:18 pm »
So, the several issues regarding Android port are being slowly adressed? Strang that in http://en.sfml-dev.org/forums/index.php?topic=21006.msg150266#msg150266 nobody did any research or even comment.

Is there good chances to successfully port to Android?
Alien 8

Mario

  • SFML Team
  • Hero Member
  • *****
  • Posts: 879
    • View Profile
Re: Android Development
« Reply #6 on: December 11, 2016, 12:20:16 am »
CSFML isn't the same as SFML. While having CSFML working on Android would be nice it's definitely no main focus (at least not for me). Especially considering the actual SFML port is still work in progress I wouldn't expect too much for the time being.

alien8

  • Newbie
  • *
  • Posts: 16
  • 8 bits rocks!
    • View Profile
    • Email
Re: Android Development
« Reply #7 on: December 13, 2016, 12:51:18 pm »
Thanks Mario for being honest reply. But CSFML is the answer to port to Android instead of SFML?that's what I understood from your reply
Alien 8

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Android Development
« Reply #8 on: December 13, 2016, 02:35:47 pm »
You can use C++ SFML to develop for Android (if that's what you're asking). There are just no official tutorials and code could still change quite a bit.

CSFML is just a C API for SFML. Making it possible to compile for Android is something nobody has done so far and for now there are more important things to invest time into, especially since the use for CSFML on Android is rather limited.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

jill

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: Android Development
« Reply #9 on: December 17, 2016, 09:17:48 pm »
I am not a cfml user, as I am more interested in c++. I think the csfml is a bind to sfml. So if sfml not works, csfml will not work too. Fortunately, android development is not so hurry, just a new taste. SFML is fine. It works on FreeBSD. Last a long time I put too much my personal time on OpenGL 3D stuff. It's time to do more with SFML now.