Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Let's make this working on Android
onager Offline
Junior Member

Posts: 5
Threads: 2
Joined: Mar 2020
Reputation: 0
#5
RE: Let's make this working on Android

Yesterday I learned that you can't build HPL1 on Ubuntu 18.04 because GLee is not compatible with new OpenGL headers. When trying to compile in this environment, errors will appear:
/home/krystian/OvertureSource-2/HPL1Engine/sources/graphics/Material_Fallback01_BaseLight.cpp: In destructor ‘virtual hpl::cGLState_ATISpot::~cGLState_ATISpot()’:
/home/krystian/OvertureSource-2/HPL1Engine/sources/graphics/Material_Fallback01_BaseLight.cpp:250:15: error: ‘glDeleteFragmentShaderATI’ was not declared in this scope
  if (mlBind) glDeleteFragmentShaderATI(mlBind);
              ^~~~~~~~~~~~~~~~~~~~~~~~~
/home/krystian/OvertureSource-2/HPL1Engine/sources/graphics/Material_Fallback01_BaseLight.cpp: In member function ‘virtual void hpl::cGLState_ATISpot::Bind()’:
/home/krystian/OvertureSource-2/HPL1Engine/sources/graphics/Material_Fallback01_BaseLight.cpp:256:3: error: ‘glBindFragmentShaderATI’ was not declared in this scope
  glBindFragmentShaderATI(mlBind);

In short, it is not easy to fix, and since I will need to get rid of this library, I'm going back to older Ubuntu.
Technical reason of incompatibility: GLee uses hardcodes names of header guard macros for glext.h
#define __glext_h_  /* prevent glext.h from being included  */
These macros were changed in this commit (link to Github)
04-05-2020, 02:33 PM
Find


Messages In This Thread
Let's make this working on Android - by onager - 03-29-2020, 09:33 PM
RE: Let's make this working on Android - by onager - 04-05-2020, 02:33 PM



Users browsing this thread: 1 Guest(s)