I have compile error (IrrLicht source)

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
Magnet
Posts: 101
Joined: Wed Sep 27, 2006 7:32 pm

I have compile error (IrrLicht source)

Post by Magnet »

I have error during compilation IrrLicht source on VS 2005

Code: Select all

Error	15	fatal error C1083: Cannot open include file: 'd3dx8tex.h': No such file or directory	d:\Game Projects\Best Fish\irrlicht-1.1\source\Irrlicht\CD3D8Texture.cpp	22	
Error	16	fatal error C1083: Cannot open include file: 'D3dx8core.h': No such file or directory	d:\game projects\best fish\irrlicht-1.1\source\irrlicht\CD3D8ShaderMaterialRenderer.h	13	
Error	17	fatal error C1083: Cannot open include file: 'D3dx8core.h': No such file or directory	d:\game projects\best fish\irrlicht-1.1\source\irrlicht\CD3D8ShaderMaterialRenderer.h	13	
Error	18	fatal error C1083: Cannot open include file: 'D3dx8core.h': No such file or directory	d:\game projects\best fish\irrlicht-1.1\source\irrlicht\CD3D8ShaderMaterialRenderer.h	13	
Error	19	fatal error C1083: Cannot open include file: 'D3dx8core.h': No such file or directory	d:\game projects\best fish\irrlicht-1.1\source\irrlicht\CD3D8ShaderMaterialRenderer.h	13
Where possible to download DX8 SDK ? (possible to download only Include and Libs files?)

Code: Select all

Error	20	error C2146: syntax error : missing ';' before identifier 'pGlActiveTextureARB'	d:\game projects\best fish\irrlicht-1.1\source\irrlicht\COpenGLDriver.h	348	
Error	21	error C4430: missing type specifier - int assumed. Note: C++ does not support default-int	d:\game projects\best fish\irrlicht-1.1\source\irrlicht\COpenGLDriver.h	348	
Error	22	error C4430: missing type specifier - int assumed. Note: C++ does not support default-int	d:\game projects\best fish\irrlicht-1.1\source\irrlicht\COpenGLDriver.h	348	
Error	23	error C2146: syntax error : missing ';' before identifier 'pGlClientActiveTextureARB'	d:\game projects\best fish\irrlicht-1.1\source\irrlicht\COpenGLDriver.h	349	
Error	24	error C4430: missing type specifier - int assumed. Note: C++ does not support default-int	d:\game projects\best fish\irrlicht-1.1\source\irrlicht\COpenGLDriver.h	349	
Error	25	error C4430: missing type specifier - int assumed. Note: C++ does not support default-int	d:\game projects\best fish\irrlicht-1.1\source\irrlicht\COpenGLDriver.h	349	
Error	26	error C2146: syntax error : missing ';' before identifier 'pGlActiveTextureARB'	d:\game projects\best fish\irrlicht-1.1\source\irrlicht\COpenGLDriver.h	348	
Error	27	error C4430: missing type specifier - int assumed. Note: C++ does not support default-int	d:\game projects\best fish\irrlicht-1.1\source\irrlicht\COpenGLDriver.h	348	
Error	28	error C4430: missing type specifier - int assumed. Note: C++ does not support default-int	d:\game projects\best fish\irrlicht-1.1\source\irrlicht\COpenGLDriver.h	348	
Error	29	error C2146: syntax error : missing ';' before identifier 'pGlClientActiveTextureARB'	d:\game projects\best fish\irrlicht-1.1\source\irrlicht\COpenGLDriver.h	349	
Error	30	error C4430: missing type specifier - int assumed. Note: C++ does not support default-int	d:\game projects\best fish\irrlicht-1.1\source\irrlicht\COpenGLDriver.h	349	
Error	31	error C4430: missing type specifier - int assumed. Note: C++ does not support default-int	d:\game projects\best fish\irrlicht-1.1\source\irrlicht\COpenGLDriver.h	349	
Error	32	error C2146: syntax error : missing ';' before identifier 'pGlActiveTextureARB'	d:\game projects\best fish\irrlicht-1.1\source\irrlicht\COpenGLDriver.h	348	
Error	33	error C4430: missing type specifier - int assumed. Note: C++ does not support default-int	d:\game projects\best fish\irrlicht-1.1\source\irrlicht\COpenGLDriver.h	348	
Error	34	error C4430: missing type specifier - int assumed. Note: C++ does not support default-int	d:\game projects\best fish\irrlicht-1.1\source\irrlicht\COpenGLDriver.h	348	
Error	35	error C2146: syntax error : missing ';' before identifier 'pGlClientActiveTextureARB'	d:\game projects\best fish\irrlicht-1.1\source\irrlicht\COpenGLDriver.h	349	
Error	36	error C4430: missing type specifier - int assumed. Note: C++ does not support default-int	d:\game projects\best fish\irrlicht-1.1\source\irrlicht\COpenGLDriver.h	349	
Error	37	error C4430: missing type specifier - int assumed. Note: C++ does not support default-int	d:\game projects\best fish\irrlicht-1.1\source\irrlicht\COpenGLDriver.h	349	
Error	38	error C2146: syntax error : missing ';' before identifier 'pGlActiveTextureARB'	d:\game projects\best fish\irrlicht-1.1\source\irrlicht\COpenGLDriver.h	348	
Error	39	error C4430: missing type specifier - int assumed. Note: C++ does not support default-int	d:\game projects\best fish\irrlicht-1.1\source\irrlicht\COpenGLDriver.h	348	
Error	40	error C4430: missing type specifier - int assumed. Note: C++ does not support default-int	d:\game projects\best fish\irrlicht-1.1\source\irrlicht\COpenGLDriver.h	348	
Error	41	error C2146: syntax error : missing ';' before identifier 'pGlClientActiveTextureARB'	d:\game projects\best fish\irrlicht-1.1\source\irrlicht\COpenGLDriver.h	349	
Error	42	error C4430: missing type specifier - int assumed. Note: C++ does not support default-int	d:\game projects\best fish\irrlicht-1.1\source\irrlicht\COpenGLDriver.h	349	
Error	43	error C4430: missing type specifier - int assumed. Note: C++ does not support default-int	d:\game projects\best fish\irrlicht-1.1\source\irrlicht\COpenGLDriver.h	349	
Error	44	error C2146: syntax error : missing ';' before identifier 'pGlActiveTextureARB'	d:\game projects\best fish\irrlicht-1.1\source\irrlicht\COpenGLDriver.h	348	
Error	45	error C4430: missing type specifier - int assumed. Note: C++ does not support default-int	d:\game projects\best fish\irrlicht-1.1\source\irrlicht\COpenGLDriver.h	348	
Error	46	error C4430: missing type specifier - int assumed. Note: C++ does not support default-int	d:\game projects\best fish\irrlicht-1.1\source\irrlicht\COpenGLDriver.h	348	
Error	47	error C2146: syntax error : missing ';' before identifier 'pGlClientActiveTextureARB'	d:\game projects\best fish\irrlicht-1.1\source\irrlicht\COpenGLDriver.h	349	
Error	48	error C4430: missing type specifier - int assumed. Note: C++ does not support default-int	d:\game projects\best fish\irrlicht-1.1\source\irrlicht\COpenGLDriver.h	349	
Error	49	error C4430: missing type specifier - int assumed. Note: C++ does not support default-int	d:\game projects\best fish\irrlicht-1.1\source\irrlicht\COpenGLDriver.h	349	
Error	50	error C2614: 'irr::video::COpenGLDriver' : illegal member initialization: 'pGlClientActiveTextureARB' is not a base or member	d:\Game Projects\Best Fish\irrlicht-1.1\source\Irrlicht\COpenGLDriver.cpp	49	
Error	51	error C2614: 'irr::video::COpenGLDriver' : illegal member initialization: 'pGlActiveTextureARB' is not a base or member	d:\Game Projects\Best Fish\irrlicht-1.1\source\Irrlicht\COpenGLDriver.cpp	49	
Error	52	error C2065: 'pGlActiveTextureARB' : undeclared identifier	d:\Game Projects\Best Fish\irrlicht-1.1\source\Irrlicht\COpenGLDriver.cpp	396	
Error	53	error C2065: 'PFNGLACTIVETEXTUREARBPROC' : undeclared identifier	d:\Game Projects\Best Fish\irrlicht-1.1\source\Irrlicht\COpenGLDriver.cpp	396	
Error	54	error C2146: syntax error : missing ';' before identifier 'wglGetProcAddress'	d:\Game Projects\Best Fish\irrlicht-1.1\source\Irrlicht\COpenGLDriver.cpp	396	
Error	55	error C2065: 'pGlClientActiveTextureARB' : undeclared identifier	d:\Game Projects\Best Fish\irrlicht-1.1\source\Irrlicht\COpenGLDriver.cpp	397	
Error	56	error C2065: 'PFNGLCLIENTACTIVETEXTUREARBPROC' : undeclared identifier	d:\Game Projects\Best Fish\irrlicht-1.1\source\Irrlicht\COpenGLDriver.cpp	397	
Error	57	error C2146: syntax error : missing ';' before identifier 'wglGetProcAddress'	d:\Game Projects\Best Fish\irrlicht-1.1\source\Irrlicht\COpenGLDriver.cpp	397	
How to fix this errors?
Magnet
Posts: 101
Joined: Wed Sep 27, 2006 7:32 pm

Post by Magnet »

Please Help.
I am can't compile and fix errors.
AaronA
Posts: 55
Joined: Tue Sep 12, 2006 1:31 am

Post by AaronA »

Download the DirectX 8 SDK at MSDN - its a heavy download, even better you might want 9.
Spintz
Posts: 1688
Joined: Thu Nov 04, 2004 3:25 pm

Post by Spintz »

The new DX SDKs no longer support DX8. In IrrCompileConfig.h, there is an option for disabling building DX8.
Image
Raedwulf
Posts: 62
Joined: Sat Aug 20, 2005 7:08 am

Post by Raedwulf »

Raedwulf
Posts: 62
Joined: Sat Aug 20, 2005 7:08 am

Post by Raedwulf »

CodeDog
Posts: 106
Joined: Sat Oct 07, 2006 8:00 pm
Location: CA. USA
Contact:

Post by CodeDog »

If you are using the new DX10 SDK then it no longer supported DX8.
In order to compile change the following.
In the file IrrCompileConfig.h
Look for this area in the code:

#define _IRR_COMPILE_WITH_DIRECT3D_8_
#define _IRR_COMPILE_WITH_DIRECT3D_9_


Change it to:

//#define _IRR_COMPILE_WITH_DIRECT3D_8_
#define _IRR_COMPILE_WITH_DIRECT3D_9_

Then try and compile.
Magnet
Posts: 101
Joined: Wed Sep 27, 2006 7:32 pm

Post by Magnet »

I am get the latest version from SVN, install DX9 SDK,
Change compile config for disable DX8.

And I am try to compile IrrLicht.
But I am not solve proglem with OpenGL.

I am compile IrrLicht with VS2005. It has gl.h version 1.2,
but IrrLicht (/source/IrrLicht/glext.h) using version 1.5

gl.h have:

Code: Select all

/* Version */
#define GL_VERSION_1_1                    1
#define GL_VERSION_1_2                    1
And I take next errors:

Code: Select all

COpenGLTexture.cpp
D:\IrrLicht\source\irrlicht\COpenGLDriver.h(209) : error C2146: syntax error : missing ';' before identifier 'extGlCreateShaderObjectARB'
D:\IrrLicht\source\irrlicht\COpenGLDriver.h(209) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:\IrrLicht\source\irrlicht\COpenGLDriver.h(209) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:\IrrLicht\source\irrlicht\COpenGLDriver.h(209) : warning C4183: 'extGlCreateShaderObjectARB': missing return type; assumed to be a member function returning 'int'
D:\IrrLicht\source\irrlicht\COpenGLDriver.h(210) : error C2061: syntax error : identifier 'GLhandleARB'
D:\IrrLicht\source\irrlicht\COpenGLDriver.h(211) : error C2061: syntax error : identifier 'GLhandleARB'
D:\IrrLicht\source\irrlicht\COpenGLDriver.h(373) : error C2146: syntax error : missing ';' before identifier 'pGlActiveTextureARB'
D:\IrrLicht\source\irrlicht\COpenGLDriver.h(373) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:\IrrLicht\source\irrlicht\COpenGLDriver.h(373) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:\IrrLicht\source\irrlicht\COpenGLDriver.h(374) : error C2146: syntax error : missing ';' before identifier 'pGlClientActiveTextureARB'
D:\IrrLicht\source\irrlicht\COpenGLDriver.h(374) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:\IrrLicht\source\irrlicht\COpenGLDriver.h(374) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:\IrrLicht\source\irrlicht\COpenGLDriver.h(380) : error C2146: syntax error : missing ';' before identifier 'pGlCreateShaderObjectARB'
D:\IrrLicht\source\irrlicht\COpenGLDriver.h(380) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:\IrrLicht\source\irrlicht\COpenGLDriver.h(380) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:\IrrLicht\source\irrlicht\COpenGLDriver.h(381) : error C2146: syntax error : missing ';' before identifier 'pGlShaderSourceARB'
D:\IrrLicht\source\irrlicht\COpenGLDriver.h(381) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:\IrrLicht\source\irrlicht\COpenGLDriver.h(381) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:\IrrLicht\source\irrlicht\COpenGLDriver.h(382) : error C2146: syntax error : missing ';' before identifier 'pGlCompileShaderARB'
D:\IrrLicht\source\irrlicht\COpenGLDriver.h(382) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:\IrrLicht\source\irrlicht\COpenGLDriver.h(382) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:\IrrLicht\source\irrlicht\COpenGLDriver.h(383) : error C2146: syntax error : missing ';' before identifier 'pGlCreateProgramObjectARB'
D:\IrrLicht\source\irrlicht\COpenGLDriver.h(383) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
D:\IrrLicht\source\irrlicht\COpenGLDriver.h(383) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

...
How to fix this errors?

I think this errors will are corrected, when I replace
gl.h file by version 1.5
I am a rights?
If Yes please tell me, where I can load necessary gl.h file?
Magnet
Posts: 101
Joined: Wed Sep 27, 2006 7:32 pm

Post by Magnet »

I resolve my problem by put to glext.h next code:

Code: Select all

#undef GL_VERSION_1_2
#undef GL_VERSION_1_3
#undef GL_VERSION_1_4
#undef GL_VERSION_1_5
#undef GL_VERSION_2_0

#undef GL_ARB_multitexture
#undef GL_ARB_shader_objects
Realy this faithfull decision of the problem?
And why I have to done this?
Post Reply