Hi guys, I'm working on an assignment for college which is to build a cube in a 3D environment using SFML for an android device.
I managed to get regular SFML stuff working fine following guides on the internet and with lots of headaches (I had no prior experience with Cmake, MinGW, etc.)
Now I am facing a new problem and that is trying to call GL commands in my code.
When I go to compile it, this is the errors I am getting and its only with GL commands.
[armeabi] Install : libsfml-activity.so => libs/armeabi/libsfml-activity.so
[armeabi] SharedLibrary : libsfml-example.so
jni/main.cpp:93: error: undefined reference to 'glMatrixMode'
jni/main.cpp:94: error: undefined reference to 'glLoadIdentity'
jni/main.cpp:96: error: undefined reference to 'glFrustumf'
jni/main.cpp:97: error: undefined reference to 'glScalef'
jni/main.cpp:99: error: undefined reference to 'glClear'
I know its probably something simple but I can't for the life of me figure it out.
These are the includes im using
#include <vector>
#include <SFML/System.hpp>
#include <SFML/Window.hpp>
#include <SFML/Graphics.hpp>
#include <SFML/Audio.hpp>
#include <SFML/Network.hpp>
#include <GLES/gl.h>
#include <GLES/glext.h>
I have a few weeks to figure this out but any help in solving this quicker would be appreciated.
Thanks in advance