суббота, 13 августа 2011 г.

Компиляция Irrlicht для 64-разрядной Win7

I would like to post my experience building the latest irrlicht svn (rev 2402) for x64 windows platform (Vista x64 SP2). 

Thanks for making the changes to irrlicht to make it more x64 friendly. 

Here's the needed steps to get irrlicht to build for x64 windows platform: 

1. Change 'WIN32' to 'WIN64' in 'C/C++->Preprocessor->Preprocessor Definitions' (VS 2008 SP1 paired with DX SDK March 2009). This step is needed to get around the following errors: 

CODE: SELECT ALL

Error   8   error C2664: 'SendMessageTimeoutA' : cannot convert parameter 7 from 'DWORD *' to 'PDWORD_PTR'   d:\SDK\irrlicht_svn\source\Irrlicht\CIrrDeviceWin32.cpp   568
Error   9   error C2664: 'SendMessageTimeoutW' : cannot convert parameter 7 from 'DWORD *' to 'PDWORD_PTR'   d:\SDK\irrlicht_svn\source\Irrlicht\CIrrDeviceWin32.cpp   578


2. Remove '/MACHINE:I386' from 'Linker->Command Line'. This step is needed to get around the following errors:


CODE: SELECT ALL

Error   1   fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'   d:\SDK\irrlicht_svn\work\debug64\CDefaultSceneNodeAnimatorFactory.obj   1


Now you're done! Well, except for the 48 warning messages :D


Taken here

Комментариев нет:

Отправить комментарий