sgt_pinky wrote:Great find Lug. Thanks.
It looks like the site is down for me. But to get the build to compile past the dx8 stuff (note this is using the "source/Irrlicht/Irrlicht8.0.sln" build with VS2005 with irrlicht SVN revision 276):
1. add in the include path to your directx 9 sdk (I have the october 2006) to the project properties's c/c++->general->additional include directories.
2. add in the library path to directx 9 sdk from number one to the project properties's Linker->General->additional library directories.
3. copy the following 8 files from the "DX81SDK_FULL.exe" (there's no need to install the 8.1 SDK; this is a zip archive so look for the "DXSDK\include" folder inside the archive) to the directx 9 sdk include folder:
d3dx8mesh.h
d3dx8.h
d3dx8tex.h
d3dx8shape.h
d3dx8math.h
d3dx8math.inl
d3dx8effect.h
d3dx8core.h
4. copy the following file from the "DX81SDK_FULL.exe" (look for the "DXSDK\lib" folder inside the archive) to the directx 9 sdk lib folder (lib/x86):
d3dx8.lib
5. remove "SColor.cpp" from the solution explorer (irrlicht->gui impl).
6. now build and it should get past the dx8 errors and build the irrlicht.lib file.
Update:
Hmmm...well, if I build for debug I get the following linker error:
fatal error LNK1104: cannot open file '..\obj\IrrDebug\SColor.obj'
If I build for release, I get the following error:
fatal error C1083: Cannot open source file: '.\SColor.cpp': No such file or directory
why is that I wonder?
Update #2:
Nevermind, looks like it's a known issue (page 8, look at sio2's post):
http://irrlicht.sourceforge.net/phpBB2/ ... hp?t=13869
Update #3:
Fixed the post to reflect new info from hybrid (thanks!).
Update #4:
How to build irrlicht .net SVN (rev 276 -- I was successful after many hours researching the forum) with VS 2005:
1. add "msvcmrt.lib" to "Linker->Input->Additional Dependencies" in your project property.
2. perform a search and replace on project for "[Paramflag::Out]" and replace with "[Out]". This should touch the following files (14 places total):
\source\Irrlicht.NET\ISceneCollisionManager.cpp (4 places)
\source\Irrlicht.NET\ISceneCollisionManager.h (4 places)
\source\Irrlicht.NET\Line3D.h (1 places)
\source\Irrlicht.NET\Plane3D.h (5 places)
3. change the following line in "\source\Irrlicht.NET\Irrlicht.NET.cpp":
bool IrrlichtDevice::NativeEventReceiver::OnEvent(irr::SEvent e)
to
bool IrrlichtDevice::NativeEventReceiver::OnEvent(const irr::SEvent &e)
4. change the following line in "\source\Irrlicht.NET\Irrlicht.NET.h":
bool OnEvent(irr::SEvent e);
to
bool OnEvent(const irr::SEvent &e);
5. perform the following changes to "include\ICameraSceneNode.h":
a. add "#include "SViewFrustrum.h".
b. comment out "struct SViewFrustrum".
6. create a folder called "debug" in the "\source" folder.
7. copy over "Irrlicht.lib" from "lib\Win32-visualstudio" (you should have this built already if you follow the non-.net SVN build steps at the top of this post) to the folder created in step 6.
For some reason, the default irrlicht .net is not looking in it's "\source\Irrlicht.NET\Debug" folder but instead looks for "Irrlicht.lib" in the "\source\debug" level. That's why steps 6 and 7 are needed.
8. build and you should have a SVN .NET version of Irrlicht without any errors.
Update #5:
I've packed everything and uploaded to rapidshare so that anyone can take a look at the settings and so forth in the solution/project files if the above instructions weren't clear.
I've removed all the svn/obj/intermediate files to reduce the file size (32 MB to 14 MB) of the archive. I did not build any of the example files. I did build release and debug versions of the .NET and non-.NET win32 .dlls (built using DX8.1 SDK and DX9 August 2006 SDK).
This does not contain any other library builds except for WIN32 (no gcc). All the source files are there. Again, this is not supported and not an official build. Use at your own risk.
Download from the link below:
<<see update 7>>
Update #6:
Sorry, the above link doesn't work. I'll see if I can find another place to upload.
Update #7:
Okay, new download link (removed some left over obj files so now it's 10 MB instead of 14 MB):
http://www.megaupload.com/?d=WYYQCV93