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

Author Topic: SFML successfully built for android and try to add one more library  (Read 465 times)

0 Members and 1 Guest are viewing this topic.

Kipero

  • Newbie
  • *
  • Posts: 2
    • View Profile
Hi guys,
I have a problem with including one more lib for this example app, made on this tutorial below: https://github.com/SFML/SFML/wiki/Tutorial:-Building-SFML-for-Android
My goal is to create an android game. I have this one finished on Windows/MS Visual Studio (SFML and Box2D) and now i need port it to android. I don't know how to do it. Thank you in advance for your help.   

AlexAUT

  • Sr. Member
  • ****
  • Posts: 396
    • View Profile
Re: SFML successfully built for android and try to add one more library
« Reply #1 on: January 10, 2020, 11:29:18 am »
Based on the SFML example used in the wiki post you have to make the following adjustments:

  • Adding your source files here
  • Compiling Box2D for android and installing it into the third party lib of your NDK installation. I have not done it, but Box2D provide a cmake script which should make this easier. You can try the same cmake command as for building sfml from the wiki post you have posted.
    Another possibilty can be found here, this may be outdated since it is from 2013.
  • Link Box2D like sfml is linked here. This is not needed for the tutorial I linked in the previous step.

Best,
Alex

Kipero

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: SFML successfully built for android and try to add one more library
« Reply #2 on: January 11, 2020, 09:24:07 am »
Thank you very much! Your response is truly helpful.