[fixed] Revision 1309 doesn't compile with MinGW - Win32

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.
MasterGod
Posts: 2061
Joined: Fri May 25, 2007 8:06 pm
Location: Israel
Contact:

[fixed] Revision 1309 doesn't compile with MinGW - Win32

Post by MasterGod »

I could compile it last week but now I get errors+warnings.

If someone will tell me how to log those errors I'd post them here.

P.S
Compiled with the following command:

Code: Select all

mingw32-make NDEBUG=1 all_win32
Last edited by MasterGod on Wed Apr 09, 2008 1:36 am, edited 2 times in total.
Image
Dev State: Abandoned (For now..)
Requirements Analysis Doc: ~87%
UML: ~0.5%
wyrmmage
Posts: 204
Joined: Sun Mar 16, 2008 3:12 am
Contact:

Post by wyrmmage »

not quite sure what you mean by 'log the errors', but if you compile from the command line it'll leave the results (errors, in this case) behind and you can do a copy and paste of those :)
-wyrmmage
MasterGod
Posts: 2061
Joined: Fri May 25, 2007 8:06 pm
Location: Israel
Contact:

Post by MasterGod »

Start -> Run -> cmd -> locating Irrlicht source folder -> mingw32-make NDEBUG=1 all_win32 -> Enter.

The build log is in the Windows console, how to I 'copy-paste' from that prehistoric terminal exactly?
Image
Dev State: Abandoned (For now..)
Requirements Analysis Doc: ~87%
UML: ~0.5%
night_hawk
Posts: 153
Joined: Mon Mar 03, 2008 8:42 am
Location: Suceava - Romania
Contact:

Post by night_hawk »

PrintScreen XD
MasterGod
Posts: 2061
Joined: Fri May 25, 2007 8:06 pm
Location: Israel
Contact:

Post by MasterGod »

night_hawk wrote:PrintScreen XD
lol, but there are too many lines and windows limits the console's size to quite small so that wouldn't even be enough.

Well, I'm sorry I don't know how to do that but I'll keep searching.

The best thing would be (for the developers too see which errors and warnings) to compile themselves.
Image
Dev State: Abandoned (For now..)
Requirements Analysis Doc: ~87%
UML: ~0.5%
Kriolyth
Posts: 26
Joined: Wed Mar 26, 2008 6:59 pm
Location: Moscow, Russia

Post by Kriolyth »

Click on the icon in the top left corner of console window ("system menu") -> Edit -> Mark, select a region to copy, press Enter.
The cake is a lie.
MasterGod
Posts: 2061
Joined: Fri May 25, 2007 8:06 pm
Location: Israel
Contact:

Post by MasterGod »

Kriolyth wrote:Click on the icon in the top left corner of console window ("system menu") -> Edit -> Mark, select a region to copy, press Enter.
FTW! It was there all the time!!
Thanks a TONS!

Well, here it is:
Irrlicht, trunk branch, revision 1312 (1309 actually), unpatched with any custom thing, MinGW for windows:
mingw32-make NDEBUG=1 all_win32

Code: Select all

Blah blah blah...

DWIN32 -D_WINDOWS -D_MBCS -D_USRDLL  -c -o CD3D8Texture.o CD3D8Texture.cpp
g++ -Wall -fexpensive-optimizations -O3 -I../../include -Izlib -Ijpeglib -Ilibpn
g -DIRRLICHT_EXPORTS=1 -DIRR_COMPILE_WITH_DX9_DEV_PACK -D__GNUWIN32__ -D_WIN32 -
DWIN32 -D_WINDOWS -D_MBCS -D_USRDLL  -c -o CD3D9Driver.o CD3D9Driver.cpp
In file included from CD3D9Driver.cpp:15:
CD3D9ShaderMaterialRenderer.h:13:25: d3dx9shader.h: No such file or directory
In file included from CD3D9Driver.cpp:15:
CD3D9ShaderMaterialRenderer.h:64: error: expected `,' or `...' before '*' token
CD3D9ShaderMaterialRenderer.h:66: error: ISO C++ forbids declaration of `D3DXMAC
RO' with no type
CD3D9ShaderMaterialRenderer.h:69: error: expected `,' or `...' before '*' token
CD3D9ShaderMaterialRenderer.h:70: error: ISO C++ forbids declaration of `D3DXMAC
RO' with no type
CD3D9ShaderMaterialRenderer.h:72: error: expected `,' or `...' before '*' token
CD3D9ShaderMaterialRenderer.h:75: error: ISO C++ forbids declaration of `D3DXMAC
RO' with no type
CD3D9ShaderMaterialRenderer.h:77: error: expected `,' or `...' before '*' token
CD3D9ShaderMaterialRenderer.h:80: error: ISO C++ forbids declaration of `D3DXMAC
RO' with no type
In file included from CD3D9Driver.cpp:18:
CD3D9HLSLMaterialRenderer.h:66: error: `LPD3DXCONSTANTTABLE' has not been declar
ed
CD3D9HLSLMaterialRenderer.h:66: error: ISO C++ forbids declaration of `table' wi
th no type
CD3D9HLSLMaterialRenderer.h:68: error: `LPD3DXCONSTANTTABLE' does not name a typ
e
CD3D9HLSLMaterialRenderer.h:69: error: `LPD3DXCONSTANTTABLE' does not name a typ
e
CD3D9Driver.cpp: In member function `virtual void irr::video::CD3D9Driver::drawV
ertexPrimitiveList(const void*, irr::u32, const irr::u16*, irr::u32, irr::video:
:E_VERTEX_TYPE, irr::scene::E_PRIMITIVE_TYPE)':
CD3D9Driver.cpp:878: warning: enumeration value `EPT_QUAD_STRIP' not handled in
switch
CD3D9Driver.cpp:878: warning: enumeration value `EPT_QUADS' not handled in switc
h
CD3D9Driver.cpp:878: warning: enumeration value `EPT_POLYGON' not handled in swi
tch
mingw32-make: *** [CD3D9Driver.o] Error 1

C:\Irrlicht\source\Irrlicht>
Image
Dev State: Abandoned (For now..)
Requirements Analysis Doc: ~87%
UML: ~0.5%
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Well, it clearly says that you lack a header file.
Moved to beginners section.
MasterGod
Posts: 2061
Joined: Fri May 25, 2007 8:06 pm
Location: Israel
Contact:

Post by MasterGod »

hybrid wrote:Well, it clearly says that you lack a header file.
Moved to beginners section.
I fail to understand you. :?

I've downloaded the latest revision.
Microsoft Visual C++ 2008 Compiled it just fine.
MinGW-Win32 Provided that log.

What the hell did I do wrong when Last week (rev 1306 IIRC) it complied without any problem -_-...

P.S
I have the latest DirectX SDK :!:

Edit:
Sorry not latest but close - DirectX SDK, November 2007.
Image
Dev State: Abandoned (For now..)
Requirements Analysis Doc: ~87%
UML: ~0.5%
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

It does not find the header file d3dxshader.h. Maybe your include path is wrong, or whatever.
MasterGod
Posts: 2061
Joined: Fri May 25, 2007 8:06 pm
Location: Israel
Contact:

Post by MasterGod »

But earlier revisions compile :?
Can you at least tell me where to check for that path please?

Edit:
Very weird.. I tried downloading rev 1306 again and check if it complies and I get the same log warnings/errors.
Image
Dev State: Abandoned (For now..)
Requirements Analysis Doc: ~87%
UML: ~0.5%
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

Come on, you know this stuff by now.

It's entirely a local configuration issue. The Irrlicht projects don't include paths to the DXSDK, as it could be installed anywhere. It's up to you to ensure that whatever include/lib paths your compiler of choice relies on (INCPATH?) make those files available to the compiler.

You either have a d3dxshader.h file in your DXSDK tree, or not. Have you searched your hard drive for it, and ensured that your compiler has an include path to it?
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
randomMesh
Posts: 1186
Joined: Fri Dec 29, 2006 12:04 am

Post by randomMesh »

Have a look a the the Makefile and edit it, so it can find your DirectX SDK.
MasterGod
Posts: 2061
Joined: Fri May 25, 2007 8:06 pm
Location: Israel
Contact:

Post by MasterGod »

I've search for d3dxshader.h and I don't have it at all. (At least that's what Windows Search says..).

@randomMesh: It seems, as rogerborg says, a local thing, so I think I shouldn't mess with Irrlicht's Makefile.

@rogerborg: That's the thing. One of the last few revisions (I still think it was rev 1306) DID compile perfectly few weeks ago but I don't remember changing any important thing since then that could have caused this problem.

I'll try to download the latest DirectX SDK (March 2008) and see if it fixes it.

P.S
If Windows Search says that after searching the whole Hard Drive it can't find d3dxshader.h so how can VC compile Irrlicht ? rogerborg, that's what confuses me the most. :?

P.P.S
In case Windows Search decided to skip the DirectX SDK folder I've also searched directly there and found nothing.
I really hope upgrading the SDK would solve that..
Image
Dev State: Abandoned (For now..)
Requirements Analysis Doc: ~87%
UML: ~0.5%
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

MasterGod wrote:I've search for d3dxshader.h and I don't have it at all. (At least that's what Windows Search says..).
Did you search for d3dx9shader.h, like in the error message? :P

That's in the March 2008 SDK (freshly downloaded), so you should have it. If not, then it was probably the FBI or the Russian Mafia messing around with your disk while they pwned it.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Post Reply