OPENGL ES compilation errors in Linux

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
shaim
Posts: 26
Joined: Sun Dec 14, 2008 10:55 am

OPENGL ES compilation errors in Linux

Post by shaim »

Hi
I tried to build the irrlicht OpenGL ES version on Linux.
I succeeded to create the irrlicht library but when i tried to compile the "Hellow World" example i get lots of compilation errors:
--------
COGLESTexture.cpp: Undefine reference :'glEnable'
COGLESTexture.cppUndefine reference :'glDisable'
COGLESTexture.cppUndefine reference :'glTextImage2D'
--------

Thanks
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

You need to add all the necessary include paths for your OpenGL-ES installation, and disable OpenGL driver in IrrCompileConfig.h
shaim
Posts: 26
Joined: Sun Dec 14, 2008 10:55 am

Post by shaim »

I did the following steps in order to build the irrlicht opengl-es library and to link it with one of the irrlicht examples

1) Intalled VMWARE + UBUNTU 8.0.4
2) Installed Codesourcery toolchain
3) On the IRRCompileConfig.h i verified the only the OPENGL-ES is defined and not the OPENGL
4) I succeeded to compile the library!!!

I tried to compile the the hello world example and got a link errors:

libIrrlicht.a(inflate.o) :Relocations in generic ELF (EM 3)...
libIrrlicht.a:could not read symbols: file in wrong format

Did i miss something?
BTW shall i build the libpng lib as i use a different compiler?
Thanks
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

You seem to link the Linux-x86 version with your ARM version or vice versa. Make sure your lib paths are correct.
Post Reply