Compiling under 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
Tels
Posts: 65
Joined: Fri Feb 27, 2004 7:56 pm
Location: Antarctica
Contact:

Compiling under Linux

Post by Tels »

Moin,

When try to compile the source code under Linux, I get this error:

g++ -c CVideoOpenGL.cpp -o CVideoOpenGL.o -I"include/" -DIRRLICHT_EXPORTS=1
CVideoOpenGL.cpp: In member function `virtual void
irr::video::CVideoOpenGL::drawIndexedTriangleList(const
irr::video::S3DVertex*, int, const u16*, int)':
CVideoOpenGL.cpp:348: error: `glClientActiveTextureARB' undeclared (first use
this function)
CVideoOpenGL.cpp:348: error: (Each undeclared identifier is reported only once
for each function it appears in.)
CVideoOpenGL.cpp: In member function `virtual void
irr::video::CVideoOpenGL::drawIndexedTriangleList(const
irr::video::S3DVertex2TCoords*, int, const u16*, int)':
CVideoOpenGL.cpp:418: error: `glClientActiveTextureARB' undeclared (first use
this function)
CVideoOpenGL.cpp: In member function `virtual void
irr::video::CVideoOpenGL::drawIndexedTriangleFan(const
irr::video::S3DVertex*, int, const u16*, int)':
CVideoOpenGL.cpp:463: error: `glClientActiveTextureARB' undeclared (first use
this function)
CVideoOpenGL.cpp: In member function `virtual void
irr::video::CVideoOpenGL::drawIndexedTriangleFan(const
irr::video::S3DVertex2TCoords*, int, const u16*, int)':
CVideoOpenGL.cpp:533: error: `glClientActiveTextureARB' undeclared (first use
this function)
CVideoOpenGL.cpp: In member function `void
irr::video::CVideoOpenGL::setTexture(int, irr::video::ITexture*)':
CVideoOpenGL.cpp:782: error: `glActiveTextureARB' undeclared (first use this
function)
CVideoOpenGL.cpp: In member function `void
irr::video::CVideoOpenGL::setRenderStates3DMode()':
CVideoOpenGL.cpp:937: error: `glActiveTextureARB' undeclared (first use this
function)
CVideoOpenGL.cpp: In member function `void
irr::video::CVideoOpenGL::setRenderStates2DMode(bool, bool, bool)':
CVideoOpenGL.cpp:1177: error: `glActiveTextureARB' undeclared (first use this
function)
make: *** [CVideoOpenGL.o] Error 1

Do I miss some header files or is there something wrong with the source or makefile?

"installing" the pre-compiled libIrrlicht.a and compiling/running the examples worked great, but I wanted to play around more with Irrlicht.

Here are some details:

SuSe 8.2, running Nvidia's driver (h/w accel. OpenGL), gcc/g++ v3.3.3 (just installed). If you need any additional details, just ask.
Best wishes,

Tels
Perl + Irrlicht + Audiere = Game: http://bloodgate.com/perl/game
Tels
Posts: 65
Joined: Fri Feb 27, 2004 7:56 pm
Location: Antarctica
Contact:

Techdemo patch

Post by Tels »

Moin,

to warm-up, I tried to compile the techdemo. Since this failed, too, I added some files (Makefile, main_linux.cpp), and fixed some linux-specific problems and got it to run under linux.

A page where you can find the patch (or an archive with the changes), screenshots, and some experiences:

http://bloodgate.com/perl/irrlicht/techdemo.html

Cheers,

Tels

:twisted:
Perl + Irrlicht + Audiere = Game: http://bloodgate.com/perl/game
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

If you add GL_GLEXT_LEGACY 1 as define, do the glClientActiveTextureARB problems dissappear?
Tels
Posts: 65
Joined: Fri Feb 27, 2004 7:56 pm
Location: Antarctica
Contact:

Post by Tels »

I simple used the source posted over here:

http://irrlicht.sourceforge.net/phpBB2/ ... php?t=1533

and it compiles fine :-) I think we need a central developer forum for this, because two threads discussing the same in Beginners and Advanced is strange :)

Cheers,

Tels
Perl + Irrlicht + Audiere = Game: http://bloodgate.com/perl/game
Post Reply