I tried it yesterday with the latest svn pull (rev 1872). While it still won't compile 'out of the box' without errors, it's a lot easier now to make a x64 build of Irrlicht for Windows (running Vista x64 SP1). I love it that you guys now include a 'Irrlicht9.0.sln' file for us VS2008 users.
I changed only two things:
1. changed the value for 'PreprocessorDefinitions' from 'WIN32' to 'WIN64'
2. changed X:\SDK\irrlicht_svn\source\Irrlicht\CIrrDeviceWin32.cpp:
Code: Select all
//! sets the caption of the window
void CIrrDeviceWin32::setWindowCaption(const wchar_t* text)
{
DWORD dwResult;
if (IsNonNTWindows)
{
const core::stringc s = text;
SendMessageTimeout(HWnd, WM_SETTEXT, 0,
reinterpret_cast<LPARAM>(s.c_str()),
SMTO_ABORTIFHUNG, 2000, &dwResult);
}
else
SendMessageTimeoutW(HWnd, WM_SETTEXT, 0,
reinterpret_cast<LPARAM>(text),
SMTO_ABORTIFHUNG, 2000, &dwResult);
}
Code: Select all
//! sets the caption of the window
void CIrrDeviceWin32::setWindowCaption(const wchar_t* text)
{
DWORD dwResult;
if (IsNonNTWindows)
{
const core::stringc s = text;
#ifdef WIN64
SetWindowTextA(HWnd, s.c_str());
#else
SendMessageTimeout(HWnd, WM_SETTEXT, 0,
reinterpret_cast<LPARAM>(s.c_str()),
SMTO_ABORTIFHUNG, 2000, &dwResult);
#endif
}
else
#ifdef WIN64
SetWindowTextW(HWnd, text);
#else
SendMessageTimeoutW(HWnd, WM_SETTEXT, 0,
reinterpret_cast<LPARAM>(text),
SMTO_ABORTIFHUNG, 2000, &dwResult);
#endif
}
That's it! So I have one question, why isn't there a build configuration made for x64 windows yet in the official irrlicht releases?
I've also tried 3Demon (formerly Irrsphintz; SVN rev 120). I wanted to try out the DX10 feature mainly. But I could not get it to build for x64 windows for the life of me.
It seems that sphintz is using a very old irrlicht that brings in opengl lib from 'glu.h' whereas latest svn irrlicht uses 'glu.h' from windows sdk (not explicitly including 'glu.h' in project file).
Anyway, I gave up after getting an endless stream of errors. Also, 3Demon only comes with solution file that's for VS2005. I'm really not a fan of the VS conversion wizard.
Keep up the great work guys! I hope to have some stuff done in x64 irrlicht to show to the world soon.