[fixed]Can't compile SVN with MSVC++ 2005 Express Edition

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
MasterGod
Posts: 2061
Joined: Fri May 25, 2007 8:06 pm
Location: Israel
Contact:

[fixed]Can't compile SVN with MSVC++ 2005 Express Edition

Post by MasterGod »

I have tried to compile the SVN revision 1009 in MSVC 2005 but I got this thing.

Code: Select all

------ Build started: Project: Irrlicht, Configuration: Debug Win32 ------
Compiling...
.
.
.
.
Build log was saved at "file://d:\Programming\Libraries\Engines\Graphic Engines\3D Engines\Irrlicht\Irrlicht SDK (SVN)\source\obj\IrrDebug\BuildLog.htm"
Irrlicht - 17 error(s), 548 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
* I CAN compile the examples.
* How can I isolate the errors in the log in VC2005?

And I'm not sure if its the right file but I used - Irrlicht8.0.sln

PS:
I'm new to VC 2005.
Last edited by MasterGod on Sat Sep 29, 2007 1:25 pm, edited 1 time in total.
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 »

Yes, the vc8 project is correct.
You have to start the MSVC first without a project. It configures several things then. Next you have to configure the Platform SDK for MSVC. There's a batch file provided in the PSDK, but that does not always work. You might have to adjust paths on your own in the preferences.
finally, be sure to have DirectX SDK installed and configured (I think it configures itself automatically in MSVC).
You should be able to create the DLL without problems.
slygamer
Posts: 1
Joined: Fri Sep 28, 2007 2:23 am
Location: Brisbane, Australia

Post by slygamer »

I can confirm that it compiles with Express. As hybrid said, make sure the include and library paths are set correctly. The DirectX SDK installer adds the correct paths, if it is installed after Express was installed.

Tip: press F4 to jump to the next warning/error after compiling.
MasterGod
Posts: 2061
Joined: Fri May 25, 2007 8:06 pm
Location: Israel
Contact:

Post by MasterGod »

*Installed PSDK*

Here are some errors I get:

Code: Select all

.\os.cpp(60) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
.\Irrlicht.cpp(10) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
.\COSOperator.cpp(9) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
d:\programming\libraries\engines\graphic engines\3d engines\irrlicht\irrlicht sdk (svn)\source\irrlicht\CIrrDeviceWin32.h(16) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
D:\Program Files\Microsoft DirectX SDK (August 2007)\Include\d3d9.h(40) : fatal error C1083: Cannot open include file: 'objbase.h': No such file or directory
D:\Program Files\Microsoft DirectX SDK (August 2007)\Include\d3d9.h(40) : fatal error C1083: Cannot open include file: 'objbase.h': No such file or directory
D:\Program Files\Microsoft DirectX SDK (August 2007)\Include\d3d9.h(40) : fatal error C1083: Cannot open include file: 'objbase.h': No such file or directory
D:\Program Files\Microsoft DirectX SDK (August 2007)\Include\d3d9.h(40) : fatal error C1083: Cannot open include file: 'objbase.h': No such file or directory
D:\Program Files\Microsoft DirectX SDK (August 2007)\Include\d3d9.h(40) : fatal error C1083: Cannot open include file: 'objbase.h': No such file or directory
d:\programming\libraries\engines\graphic engines\3d engines\irrlicht\irrlicht sdk (svn)\source\irrlicht\CD3D9Driver.h(14) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
d:\programming\libraries\engines\graphic engines\3d engines\irrlicht\irrlicht sdk (svn)\source\irrlicht\COpenGLTexture.h(17) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
d:\programming\libraries\engines\graphic engines\3d engines\irrlicht\irrlicht sdk (svn)\source\irrlicht\COpenGLSLMaterialRenderer.h(13) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
And some more "windows.h" errors..

Now in my IDE these are the settings:
Include files:
D:\Programming\Libraries\Engines\Graphic Engines\3D Engines\Irrlicht\Irrlicht SDK (SVN)\include
$(VCInstallDir)include\Irrlicht
$(VCInstallDir)include\irrKlang
D:\Program Files\Microsoft DirectX SDK (August 2007)\Include
$(VCInstallDir)include
$(VCInstallDir)PlatformSDK\include
$(FrameworkSDKDir)include

Library files:
D:\Programming\Libraries\Engines\Graphic Engines\3D Engines\Irrlicht\Irrlicht SDK (SVN)\lib\Win32-visualstudio
D:\Program Files\Microsoft DirectX SDK (August 2007)\Lib\x86
$(VCInstallDir)lib
$(VCInstallDir)PlatformSDK\lib
$(FrameworkSDKDir)lib
$(VSInstallDir)
$(VSInstallDir)lib
Image
Dev State: Abandoned (For now..)
Requirements Analysis Doc: ~87%
UML: ~0.5%
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

I guess your platform SDK isn't installed under "$(VCInstallDir)PlatformSDK". Use the full path instead
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
MasterGod
Posts: 2061
Joined: Fri May 25, 2007 8:06 pm
Location: Israel
Contact:

Post by MasterGod »

You were right, I fixed the paths and it compiles now!
Thanks.
Image
Dev State: Abandoned (For now..)
Requirements Analysis Doc: ~87%
UML: ~0.5%
jayvatar
Posts: 6
Joined: Mon Nov 13, 2006 4:44 pm
Location: Kansas City, MO

Post by jayvatar »

MasterGod wrote:You were right, I fixed the paths and it compiles now!
Thanks.
Can you give more details about how you fixed this? I am having the same error and I am not sure where to find $(VCInstallDir)PlatformSDK in project settings.
Post Reply