compile linucks error

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Jookia
Posts: 170
Joined: Wed Nov 19, 2008 1:11 am

compile linucks error

Post by Jookia »

||=== Irrlicht, Linux - Release - fast math - shared ===|
/media/D4A41DB7A41D9CD4/Projects/C++/irrlicht-1.6/source/Irrlicht/COpenGLExtensionHandler.h|927|error: ‘PFNGLCOMPRESSEDTEXIMAGE2DPROC’ does not name a type|
/media/D4A41DB7A41D9CD4/Projects/C++/irrlicht-1.6/source/Irrlicht/COpenGLExtensionHandler.h||In member function ‘void irr::video::COpenGLExtensionHandler::extGlCompressedTexImage2D(GLenum, GLint, GLenum, GLsizei, GLsizei, GLint, GLsizei, const void*)’:|
/media/D4A41DB7A41D9CD4/Projects/C++/irrlicht-1.6/source/Irrlicht/COpenGLExtensionHandler.h|1351|error: ‘pGlCompressedTexImage2D’ was not declared in this scope|
||=== Build finished: 2 errors, 0 warnings ===|
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

This is defined in glext.h, though. Did you change this to use the system wide glext.h? Also, post about your OS version and gfx card driver version. Which package did you use for compilation of gl stuff?
Jookia
Posts: 170
Joined: Wed Nov 19, 2008 1:11 am

Post by Jookia »

Fedora 11
ATI 4800 HD Radeon Latest
Default Packages
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

gfx *driver* version, not gfx card version. Also, did you download the SDK, or do you use some rpm? Did you alter IrrCompileConfig? Which glx packages do you have installed?
Jookia
Posts: 170
Joined: Wed Nov 19, 2008 1:11 am

Post by Jookia »

how do i check all this
CuteAlien
Admin
Posts: 9679
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

Some info you get from glxinfo (glx version and direct rendering value).
Some info you should know (did you download the SDK or install some rpm, did you alter IrrCompileConfig) as you did that yourself.

Driver version should be known if you installed it - also most graphic card vendors usually have some tool which can tell you that info.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Jookia
Posts: 170
Joined: Wed Nov 19, 2008 1:11 am

Post by Jookia »

CuteAlien wrote:Some info you get from glxinfo (glx version and direct rendering value).
Some info you should know (did you download the SDK or install some rpm, did you alter IrrCompileConfig) as you did that yourself.

Driver version should be known if you installed it - also most graphic card vendors usually have some tool which can tell you that info.
Yeah, forget it. I can't do any of that.
CuteAlien
Admin
Posts: 9679
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

Hm, in most cases it will already work if you simply install the official driver from ATI. Can/did you do that?
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Jookia
Posts: 170
Joined: Wed Nov 19, 2008 1:11 am

Post by Jookia »

Yes, I did. I downloaded the driver, ran it and then tried to compile 1.6. I haven't edited IrrCompileConfig and after undefing _IRR_OPENGL_USE_EXTPOINTER_, it compiles up to cdjpeg.c or something that requires io.h which I don't have.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Why do you undef the extension pointers? This is in general a bad idea, or even a very bad one.
CuteAlien
Admin
Posts: 9679
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

Sorry, I don't know redhat. Find out in which package io.h is and install it. Also - how do you compile? With the makefile or with codeblocks project file or do you try to use some custom solution?
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

io.h is for WIndows systems. Seems oyu messed up the IrrCompileConfig
Jookia
Posts: 170
Joined: Wed Nov 19, 2008 1:11 am

Post by Jookia »

I beyond repair the codeblocks file, didn't I?
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

I don't know what your last sentence meant, but I just tested with EXTPOINTERS disabled and it compiles fine for me. Though it won't be of much help, as this makes the app depending on the OpenGL library of the system that it was compiled on. Other GL versions or libs may miserably crash. So, as said, don't do it unless really necessary.
Post Reply