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

Author Topic: Building for Android  (Read 4022 times)

0 Members and 1 Guest are viewing this topic.

kidchameleon

  • Newbie
  • *
  • Posts: 29
    • View Profile
    • Email
Building for Android
« on: April 13, 2016, 10:01:53 am »
Hi Guys,

I am having terrible difficulty building SFML for Android on Windows. I have followed this guide to the letter: https://github.com/SFML/SFML/wiki/Tutorial:-Building-SFML-for-Android

This is the part I'm having difficulty with:

"Use it to build and then install SFML. For example, under Linux you'd issue the following commands:

make && sudo make install"

What would be the Windows equivalent to this instruction?

Thank you for your help.


AlexxanderX

  • Full Member
  • ***
  • Posts: 128
    • View Profile
    • AlexanderX
Re: Building for Android
« Reply #1 on: April 13, 2016, 10:21:47 am »
If you are using MinGW then you can use: mingw32-make
Here you can find my blog and tutorials about SFML - http://alexanderx.net/ (died...) - http://web.archive.org/web/20160110002847/http://alexanderx.net/

victorlevasseur

  • Full Member
  • ***
  • Posts: 206
    • View Profile
Re: Building for Android
« Reply #2 on: April 13, 2016, 11:50:52 am »
For Windows, just do mingw32-make install (no need for sudo).

kidchameleon

  • Newbie
  • *
  • Posts: 29
    • View Profile
    • Email
Re: Building for Android
« Reply #3 on: April 13, 2016, 11:13:57 pm »
Hi guys thanks for your help!

I ran mingw32-make. It gets to 64% and I get this error:
Code: [Select]
In file included from C:\SFMLAN~1\SFML\src/SFML/Graphics/GLCheck.hpp:32:0,
                 from C:\sfml android\SFML\src\SFML\Graphics\Texture.cpp:30:
C:\sfml android\SFML\src\SFML\Graphics\Texture.cpp: In member function 'bool sf:
:Texture::create(unsigned int, unsigned int)':
C:\SFMLAN~1\SFML\src/SFML/Graphics/GLExtensions.hpp:114:55: error: 'GL_EXT_sRGB'
 was not declared in this scope
     #define GLEXT_texture_sRGB                        GL_EXT_sRGB
                                                       ^
C:\sfml android\SFML\src\SFML\Graphics\Texture.cpp:190:31: note: in expansion of
 macro 'GLEXT_texture_sRGB'
     static bool textureSrgb = GLEXT_texture_sRGB;
                               ^
In file included from C:\sfml android\SFML\src\SFML\Graphics\Texture.cpp:30:0:
C:\SFMLAN~1\SFML\src/SFML/Graphics/GLExtensions.hpp:115:55: error: 'GL_SRGB8_ALP
HA8_EXT' was not declared in this scope
     #define GLEXT_GL_SRGB8_ALPHA8                     GL_SRGB8_ALPHA8_EXT
                                                       ^
C:\SFMLAN~1\SFML\src/SFML/Graphics/GLCheck.hpp:51:28: note: in definition of mac
ro 'glCheck'
     #define glCheck(expr) (expr)
                            ^
C:\sfml android\SFML\src\SFML\Graphics\Texture.cpp:213:54: note: in expansion of
 macro 'GLEXT_GL_SRGB8_ALPHA8'
     glCheck(glTexImage2D(GL_TEXTURE_2D, 0, (m_sRgb ? GLEXT_GL_SRGB8_ALPHA8 : GL
_RGBA), m_actualSize.x, m_actualSize.y, 0, GL_RGBA, GL_UNSIGNED_BYTE, NULL));
                                                      ^
src\SFML\Graphics\CMakeFiles\sfml-graphics.dir\build.make:373: recipe for target
 'src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/Texture.cpp.o' failed
mingw32-make[2]: *** [src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/Texture.cpp
.o] Error 1
CMakeFiles\Makefile2:377: recipe for target 'src/SFML/Graphics/CMakeFiles/sfml-g
raphics.dir/all' failed
mingw32-make[1]: *** [src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/all] Error
2
Makefile:126: recipe for target 'all' failed
mingw32-make: *** [all] Error 2

Any suggestions as to what the problem is?







DarkRoku12

  • Full Member
  • ***
  • Posts: 203
  • Lua coder.
    • View Profile
    • Email
Re: Building for Android
« Reply #4 on: April 14, 2016, 02:08:35 am »
See this topic, it may help.
I would like a spanish/latin community...
Problems building for Android? Look here

Imao28

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: Building for Android
« Reply #5 on: August 20, 2016, 11:05:08 am »
Hi Guys,

I am having terrible difficulty building SFML for Android on Windows. I have followed this guide to the letter:
This is the part I'm having difficulty with:

"Use Phenq to burn fat and then install SFML. For example, under Linux you'd issue the following commands:

make && sudo make install"

What would be the Windows equivalent to this instruction?

Thank you for your help.
no need of using sudo. Sudo command is used only in linux and not in windows.
« Last Edit: September 07, 2016, 12:13:26 am by Imao28 »

 

anything