(Sorry I didn't replied yesterday...)
What you need:
1) windows core sdk
2) directx sdk (headers and libraries)
3) relo and vc++ toolkit (of course
![Laughing :lol:](./images/smilies/icon_lol.gif)
)
What you do:
1) First there is a bug in Relo.
![Sad :(](./images/smilies/icon_sad.gif)
... If you add other folders in the "extra library paths" in the project options, it won't work.
This is because it use the /L option to add more lib folders and this is not a real option of MSVC++ ... (so this is why you get errors like LINK : warning LNK4044: unrecognized option '/LC:\DXSDK\lib'; ignored )
I don't know how to fix it and what options to use... But I found a solution, copy all the files that are in your
directx/lib and
Microsoft SDK/lib into your
C:/Program Files/Microsoft Visual C++ Toolkit 2003/lib folder (if it is where you installed vc++)
2) Unzip Irrlicht source somewhere (I used C:/Irrlicht/source)
3)Go to your relo folder. Open config/compilers/msvc.ini
add the following lines:
[DLL Commands]
CompileCmd=cl "$IN" /c /Fo"$OUT" /I"$PATH\..\include" $CFLAGS /nologo
LinkCmd=link /DLL /NOLOGO /LIBPATH:"$PATH\..\lib" $LFLAGS $IN "/OUT:C:\irrlicht\source\irrlicht.dll"
(you can see that I added manually the output name for the dll with the /OUT option. This is because otherwise it tried to give it a .exe extension (another relo bug) instead of .dll . If you want to use another path, modify this option..)
4) Open Relo. click file/open project . change the type to "supported formats" . open c:/Irrlicht/source/Irrlicht.dsp
Wait some time...
5) Go to project options.
In the
Linker tab: choose
Windows DLL then check "create import library" and choose generate .DEF file
For the Extra libraries type:
kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib
In the
Options tab:
Add this to the extra compiler switches:
/O2 /Og /D WIN32 /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "IRRLICHT_EXPORTS" /D "_MBCS" /D "_USRDLL"
In the
directories tabL
Add to the extra include paths:
c:/DXSDK/include
c:/Microsoft sdk/include
c:/irrlicht/source/include
C:/Program Files/Microsoft Visual C++ Toolkit 2003/include
c:/irrlicht/source
do not add library paths because it doesn't work.
click OK.
6) Save your project (file/save project) so you don't need to set again all the options later.
7) click on "build" and cross your fingers...
after a while the dll should be generated with success.
..then it will try to generate irrlicht.exp and irrlicht.lib
and as I already said in my previous post it will fail I don't know why...
8 ) Give me your comments.
![Wink :wink:](./images/smilies/icon_wink.gif)