compiling irrlicht for x64 windows using vs 2005...part 2

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
lug
Posts: 79
Joined: Tue May 02, 2006 5:15 am
Contact:

compiling irrlicht for x64 windows using vs 2005...part 2

Post by lug »

This is sort of a continuation of the following thread from a while back:

http://irrlicht.sourceforge.net/phpBB2/ ... hp?t=11562

I've made some headways since then.

attempt #1:

1. with WIN32 preprocessor:

result:

482 errors 253 warnings

attempt #2:

1. with WIN64 preprocessor:

result:

200 errors 107 warnings

attempt #3:

1. with WIN64 preprocessor
2. Commented out the following line in "D:\Irrlicht\include\IrrCompileConfig.h":

//#define _IRR_COMPILE_WITH_DIRECT3D_8_

result:

195 errors 107 warnings

attempt #4:

1. with WIN64 preprocessor
2. Commented out the following line in "D:\Irrlicht\include\IrrCompileConfig.h":

//#define _IRR_COMPILE_WITH_DIRECT3D_8_

3. Commented out the following line in "D:\Irrlicht\include\IrrCompileConfig.h":

//#define _IRR_COMPILE_WITH_OPENGL_

result:

19 errors 98 warnings

errors from attempt #4:

Code: Select all


Error	32	error C4235: nonstandard extension used : 'const irr::IUnknown::`vftable'' keyword not supported on this architecture	d:\irrlicht\include\IUnknown.h	114
Error	34	error C2143: syntax error : missing ';' before 'constant'	d:\irrlicht\include\IUnknown.h	114
Error	35	error C2143: syntax error : missing ';' before '}'	d:\irrlicht\include\IUnknown.h	114
Error	92	error C4235: nonstandard extension used : 'const irr::IUnknown::`vftable'' keyword not supported on this architecture	d:\irrlicht\include\IUnknown.h	114
Error	94	error C2143: syntax error : missing ';' before 'constant'	d:\irrlicht\include\IUnknown.h	114
Error	95	error C2143: syntax error : missing ';' before '}'	d:\irrlicht\include\IUnknown.h	114
Error	98	error C4235: nonstandard extension used : 'const irr::IUnknown::`vftable'' keyword not supported on this architecture	d:\irrlicht\include\IUnknown.h	114
Error	100	error C2143: syntax error : missing ';' before 'constant'	d:\irrlicht\include\IUnknown.h	114
Error	101	error C2143: syntax error : missing ';' before '}'	d:\irrlicht\include\IUnknown.h	114
Error	102	error C4235: nonstandard extension used : 'const irr::IUnknown::`vftable'' keyword not supported on this architecture	d:\irrlicht\include\IUnknown.h	114
Error	104	error C2143: syntax error : missing ';' before 'constant'	d:\irrlicht\include\IUnknown.h	114
Error	105	error C2143: syntax error : missing ';' before '}'	d:\irrlicht\include\IUnknown.h	114
Error	106	error C4235: nonstandard extension used : 'const irr::IUnknown::`vftable'' keyword not supported on this architecture	d:\irrlicht\include\IUnknown.h	114
Error	108	error C2143: syntax error : missing ';' before 'constant'	d:\irrlicht\include\IUnknown.h	114
Error	109	error C2143: syntax error : missing ';' before '}'	d:\irrlicht\include\IUnknown.h	114
Error	112	error C4235: nonstandard extension used : 'const irr::IUnknown::`vftable'' keyword not supported on this architecture	d:\irrlicht\include\IUnknown.h	114
Error	114	error C2143: syntax error : missing ';' before 'constant'	d:\irrlicht\include\IUnknown.h	114
Error	115	error C2143: syntax error : missing ';' before '}'	d:\irrlicht\include\IUnknown.h	114
Error	117	error C2061: syntax error : identifier 'HWND'	d:\Irrlicht\source\Irrlicht_x64\COpenGLDriver.cpp	2538

warnings from attempt #4:

Code: Select all


Warning	1	warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\libpng\pngwutil.c	172
Warning	2	warning C4267: 'function' : conversion from 'size_t' to 'png_uint_32', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\libpng\pngwutil.c	1315
Warning	3	warning C4267: '=' : conversion from 'size_t' to 'png_uint_32', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\libpng\pngwutil.c	1523
Warning	4	warning C4267: '=' : conversion from 'size_t' to 'png_uint_32', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\libpng\pngwio.c	52
Warning	5	warning C4267: '=' : conversion from 'size_t' to 'png_uint_32', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\libpng\pngset.c	381
Warning	6	warning C4267: '=' : conversion from 'size_t' to 'png_uint_32', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\libpng\pngset.c	397
Warning	7	warning C4267: '=' : conversion from 'size_t' to 'png_uint_32', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\libpng\pngset.c	419
Warning	8	warning C4267: 'function' : conversion from 'size_t' to 'png_uint_32', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\libpng\pngset.c	657
Warning	9	warning C4267: 'function' : conversion from 'size_t' to 'png_uint_32', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\libpng\pngset.c	943
Warning	10	warning C4267: 'function' : conversion from 'size_t' to 'png_uint_32', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\libpng\pngset.c	977
Warning	11	warning C4267: 'function' : conversion from 'size_t' to 'png_uint_32', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\libpng\pngset.c	995
Warning	12	warning C4267: 'function' : conversion from 'size_t' to 'png_uint_32', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\libpng\pngrutil.c	210
Warning	13	warning C4267: 'function' : conversion from 'size_t' to 'png_uint_32', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\libpng\pngrutil.c	234
Warning	14	warning C4267: 'function' : conversion from 'size_t' to 'png_uint_32', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\libpng\pngrutil.c	297
Warning	15	warning C4267: '=' : conversion from 'size_t' to 'png_uint_32', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\libpng\pngrutil.c	1060
Warning	16	warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\libpng\pngrutil.c	1153
Warning	17	warning C4267: '=' : conversion from 'size_t' to 'png_uint_32', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\libpng\pngrutil.c	2976
Warning	18	warning C4267: '-=' : conversion from 'size_t' to 'png_uint_32', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\libpng\pngpread.c	520
Warning	19	warning C4267: '-=' : conversion from 'size_t' to 'png_uint_32', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\libpng\pngpread.c	536
Warning	20	warning C4267: '-=' : conversion from 'size_t' to 'png_uint_32', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\libpng\pngpread.c	700
Warning	21	warning C4267: '-=' : conversion from 'size_t' to 'png_uint_32', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\libpng\pngpread.c	723
Warning	22	warning C4267: 'function' : conversion from 'size_t' to 'png_uint_32', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\libpng\pngpread.c	1279
Warning	23	warning C4267: '+=' : conversion from 'size_t' to 'long', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\jpeglib\jmemmgr.c	306
Warning	24	warning C4267: '+=' : conversion from 'size_t' to 'long', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\jpeglib\jmemmgr.c	366
Warning	25	warning C4267: '-=' : conversion from 'size_t' to 'long', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\jpeglib\jmemmgr.c	976
Warning	26	warning C4267: '-=' : conversion from 'size_t' to 'long', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\jpeglib\jmemmgr.c	990
Warning	27	warning C4996: 'setmode' was declared deprecated	d:\Irrlicht\source\Irrlicht_x64\jpeglib\cdjpeg.c	154
Warning	28	warning C4996: 'fileno' was declared deprecated	d:\Irrlicht\source\Irrlicht_x64\jpeglib\cdjpeg.c	154
Warning	29	warning C4996: 'setmode' was declared deprecated	d:\Irrlicht\source\Irrlicht_x64\jpeglib\cdjpeg.c	172
Warning	30	warning C4334: '<<' : result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)	d:\Irrlicht\source\Irrlicht_x64\zlib\inftrees.c	265
Warning	31	warning C4334: '<<' : result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)	d:\Irrlicht\source\Irrlicht_x64\zlib\inflate.c	1270
Warning	33	warning C4091: '' : ignored on left of 'int' when no variable is declared	d:\irrlicht\include\IUnknown.h	114
Warning	36	warning C4244: 'argument' : conversion from 'LPARAM' to 'UINT', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CIrrDeviceWin32.cpp	203
Warning	37	warning C4244: 'argument' : conversion from 'WPARAM' to 'UINT', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CIrrDeviceWin32.cpp	203
Warning	38	warning C4244: 'argument' : conversion from 'LPARAM' to 'UINT', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CIrrDeviceWin32.cpp	224
Warning	39	warning C4244: 'argument' : conversion from 'WPARAM' to 'UINT', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CIrrDeviceWin32.cpp	224
Warning	40	warning C4267: 'argument' : conversion from 'size_t' to 'irr::s32', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CXMLWriter.cpp	44
Warning	41	warning C4267: 'argument' : conversion from 'size_t' to 'irr::s32', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CXMLWriter.cpp	71
Warning	42	warning C4267: 'argument' : conversion from 'size_t' to 'irr::s32', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CXMLWriter.cpp	98
Warning	43	warning C4267: 'argument' : conversion from 'size_t' to 'irr::s32', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CXMLWriter.cpp	100
Warning	44	warning C4267: 'argument' : conversion from 'size_t' to 'irr::s32', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CXMLWriter.cpp	112
Warning	45	warning C4267: 'argument' : conversion from 'size_t' to 'irr::s32', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CXMLWriter.cpp	132
Warning	46	warning C4267: 'return' : conversion from 'size_t' to 'irr::s32', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CWriteFile.cpp	49
Warning	47	warning C4267: 'return' : conversion from 'size_t' to 'irr::s32', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CReadFile.cpp	49
Warning	48	warning C4244: '=' : conversion from 'intptr_t' to 'long', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CFileList.cpp	46
Warning	49	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	510
Warning	50	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	511
Warning	51	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	512
Warning	52	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	513
Warning	53	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	514
Warning	54	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	515
Warning	55	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	516
Warning	56	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	517
Warning	57	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	518
Warning	58	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	519
Warning	59	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	522
Warning	60	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	523
Warning	61	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	524
Warning	62	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	525
Warning	63	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	526
Warning	64	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	527
Warning	65	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	528
Warning	66	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	529
Warning	67	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	530
Warning	68	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	531
Warning	69	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	534
Warning	70	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	535
Warning	71	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	536
Warning	72	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	537
Warning	73	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	538
Warning	74	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	539
Warning	75	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	540
Warning	76	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	541
Warning	77	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	542
Warning	78	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	543
Warning	79	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	546
Warning	80	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	547
Warning	81	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	548
Warning	82	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	549
Warning	83	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	550
Warning	84	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	551
Warning	85	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	552
Warning	86	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	553
Warning	87	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	554
Warning	88	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	555
Warning	89	warning C4244: 'argument' : conversion from '__int64' to 'irr::s32', possible loss of data	d:\irrlicht\source\irrlicht_x64\dmfsupport.h	173
Warning	90	warning C4244: 'argument' : conversion from '__int64' to 'irr::s32', possible loss of data	d:\irrlicht\source\irrlicht_x64\dmfsupport.h	184
Warning	91	warning C4267: 'argument' : conversion from 'size_t' to 'irr::s32', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CAnimatedMeshMS3D.cpp	134
Warning	93	warning C4091: '' : ignored on left of 'int' when no variable is declared	d:\irrlicht\include\IUnknown.h	114
Warning	96	warning C4267: 'argument' : conversion from 'size_t' to 'UINT', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CD3D9ShaderMaterialRenderer.cpp	167
Warning	97	warning C4267: 'argument' : conversion from 'size_t' to 'UINT', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CD3D9ShaderMaterialRenderer.cpp	224
Warning	99	warning C4091: '' : ignored on left of 'int' when no variable is declared	d:\irrlicht\include\IUnknown.h	114
Warning	103	warning C4091: '' : ignored on left of 'int' when no variable is declared	d:\irrlicht\include\IUnknown.h	114
Warning	107	warning C4091: '' : ignored on left of 'int' when no variable is declared	d:\irrlicht\include\IUnknown.h	114
Warning	110	warning C4267: 'argument' : conversion from 'size_t' to 'UINT', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CD3D9HLSLMaterialRenderer.cpp	97
Warning	111	warning C4267: 'argument' : conversion from 'size_t' to 'UINT', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CD3D9HLSLMaterialRenderer.cpp	179
Warning	113	warning C4091: '' : ignored on left of 'int' when no variable is declared	d:\irrlicht\include\IUnknown.h	114
Warning	116	warning C4267: 'argument' : conversion from 'size_t' to 'irr::s32', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CImageLoaderPNG.cpp	45

More to come... :)
lug
Posts: 79
Joined: Tue May 02, 2006 5:15 am
Contact:

Post by lug »

attempt #5:

1. with WIN64 preprocessor
2. Commented out the following line in "D:\Irrlicht\include\IrrCompileConfig.h":

//#define _IRR_COMPILE_WITH_DIRECT3D_8_

3. Commented out the following line in "D:\Irrlicht\include\IrrCompileConfig.h":

//#define _IRR_COMPILE_WITH_OPENGL_

4. Commented out the following line in "D:\Irrlicht\include\IUnknown.h":

//_IRR_DEBUG_BREAK_IF(ReferenceCounter <= 0) // someone is doing bad reference counting.

5. Commented out the following line in "D:\Irrlicht\include\irrArray.h":

//_IRR_DEBUG_BREAK_IF(index>=used) // access violation

6. Commented out the following line in "D:\Irrlicht\include\irrString.h":

//_IRR_DEBUG_BREAK_IF(index>=used) // bad index

result:

1 errors 92 warnings

error from attempt #5:

Code: Select all

Error	93	error C2061: syntax error : identifier 'HWND'	d:\Irrlicht\source\Irrlicht_x64\COpenGLDriver.cpp	2538
warnings from attempt #5:

Code: Select all

Warning	1	warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\libpng\pngwutil.c	172
Warning	2	warning C4267: 'function' : conversion from 'size_t' to 'png_uint_32', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\libpng\pngwutil.c	1315
Warning	3	warning C4267: '=' : conversion from 'size_t' to 'png_uint_32', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\libpng\pngwutil.c	1523
Warning	4	warning C4267: '=' : conversion from 'size_t' to 'png_uint_32', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\libpng\pngwio.c	52
Warning	5	warning C4267: '=' : conversion from 'size_t' to 'png_uint_32', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\libpng\pngset.c	381
Warning	6	warning C4267: '=' : conversion from 'size_t' to 'png_uint_32', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\libpng\pngset.c	397
Warning	7	warning C4267: '=' : conversion from 'size_t' to 'png_uint_32', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\libpng\pngset.c	419
Warning	8	warning C4267: 'function' : conversion from 'size_t' to 'png_uint_32', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\libpng\pngset.c	657
Warning	9	warning C4267: 'function' : conversion from 'size_t' to 'png_uint_32', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\libpng\pngset.c	943
Warning	10	warning C4267: 'function' : conversion from 'size_t' to 'png_uint_32', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\libpng\pngset.c	977
Warning	11	warning C4267: 'function' : conversion from 'size_t' to 'png_uint_32', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\libpng\pngset.c	995
Warning	12	warning C4267: 'function' : conversion from 'size_t' to 'png_uint_32', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\libpng\pngrutil.c	210
Warning	13	warning C4267: 'function' : conversion from 'size_t' to 'png_uint_32', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\libpng\pngrutil.c	234
Warning	14	warning C4267: 'function' : conversion from 'size_t' to 'png_uint_32', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\libpng\pngrutil.c	297
Warning	15	warning C4267: '=' : conversion from 'size_t' to 'png_uint_32', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\libpng\pngrutil.c	1060
Warning	16	warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\libpng\pngrutil.c	1153
Warning	17	warning C4267: '=' : conversion from 'size_t' to 'png_uint_32', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\libpng\pngrutil.c	2976
Warning	18	warning C4267: '-=' : conversion from 'size_t' to 'png_uint_32', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\libpng\pngpread.c	520
Warning	19	warning C4267: '-=' : conversion from 'size_t' to 'png_uint_32', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\libpng\pngpread.c	536
Warning	20	warning C4267: '-=' : conversion from 'size_t' to 'png_uint_32', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\libpng\pngpread.c	700
Warning	21	warning C4267: '-=' : conversion from 'size_t' to 'png_uint_32', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\libpng\pngpread.c	723
Warning	22	warning C4267: 'function' : conversion from 'size_t' to 'png_uint_32', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\libpng\pngpread.c	1279
Warning	23	warning C4267: '+=' : conversion from 'size_t' to 'long', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\jpeglib\jmemmgr.c	306
Warning	24	warning C4267: '+=' : conversion from 'size_t' to 'long', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\jpeglib\jmemmgr.c	366
Warning	25	warning C4267: '-=' : conversion from 'size_t' to 'long', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\jpeglib\jmemmgr.c	976
Warning	26	warning C4267: '-=' : conversion from 'size_t' to 'long', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\jpeglib\jmemmgr.c	990
Warning	27	warning C4996: 'setmode' was declared deprecated	d:\Irrlicht\source\Irrlicht_x64\jpeglib\cdjpeg.c	154
Warning	28	warning C4996: 'fileno' was declared deprecated	d:\Irrlicht\source\Irrlicht_x64\jpeglib\cdjpeg.c	154
Warning	29	warning C4996: 'setmode' was declared deprecated	d:\Irrlicht\source\Irrlicht_x64\jpeglib\cdjpeg.c	172
Warning	30	warning C4334: '<<' : result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)	d:\Irrlicht\source\Irrlicht_x64\zlib\inftrees.c	265
Warning	31	warning C4334: '<<' : result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)	d:\Irrlicht\source\Irrlicht_x64\zlib\inflate.c	1270
Warning	32	warning C4244: 'argument' : conversion from 'LPARAM' to 'UINT', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CIrrDeviceWin32.cpp	203
Warning	33	warning C4244: 'argument' : conversion from 'WPARAM' to 'UINT', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CIrrDeviceWin32.cpp	203
Warning	34	warning C4244: 'argument' : conversion from 'LPARAM' to 'UINT', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CIrrDeviceWin32.cpp	224
Warning	35	warning C4244: 'argument' : conversion from 'WPARAM' to 'UINT', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CIrrDeviceWin32.cpp	224
Warning	36	warning C4267: 'argument' : conversion from 'size_t' to 'irr::s32', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CXMLWriter.cpp	44
Warning	37	warning C4267: 'argument' : conversion from 'size_t' to 'irr::s32', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CXMLWriter.cpp	71
Warning	38	warning C4267: 'argument' : conversion from 'size_t' to 'irr::s32', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CXMLWriter.cpp	98
Warning	39	warning C4267: 'argument' : conversion from 'size_t' to 'irr::s32', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CXMLWriter.cpp	100
Warning	40	warning C4267: 'argument' : conversion from 'size_t' to 'irr::s32', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CXMLWriter.cpp	112
Warning	41	warning C4267: 'argument' : conversion from 'size_t' to 'irr::s32', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CXMLWriter.cpp	132
Warning	42	warning C4267: 'return' : conversion from 'size_t' to 'irr::s32', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CWriteFile.cpp	49
Warning	43	warning C4267: 'return' : conversion from 'size_t' to 'irr::s32', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CReadFile.cpp	49
Warning	44	warning C4244: '=' : conversion from 'intptr_t' to 'long', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CFileList.cpp	46
Warning	45	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	510
Warning	46	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	511
Warning	47	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	512
Warning	48	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	513
Warning	49	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	514
Warning	50	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	515
Warning	51	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	516
Warning	52	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	517
Warning	53	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	518
Warning	54	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	519
Warning	55	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	522
Warning	56	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	523
Warning	57	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	524
Warning	58	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	525
Warning	59	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	526
Warning	60	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	527
Warning	61	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	528
Warning	62	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	529
Warning	63	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	530
Warning	64	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	531
Warning	65	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	534
Warning	66	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	535
Warning	67	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	536
Warning	68	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	537
Warning	69	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	538
Warning	70	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	539
Warning	71	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	540
Warning	72	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	541
Warning	73	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	542
Warning	74	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	543
Warning	75	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	546
Warning	76	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	547
Warning	77	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	548
Warning	78	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	549
Warning	79	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	550
Warning	80	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	551
Warning	81	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	552
Warning	82	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	553
Warning	83	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	554
Warning	84	warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CQ3LevelMesh.cpp	555
Warning	85	warning C4244: 'argument' : conversion from '__int64' to 'irr::s32', possible loss of data	d:\irrlicht\source\irrlicht_x64\dmfsupport.h	173
Warning	86	warning C4244: 'argument' : conversion from '__int64' to 'irr::s32', possible loss of data	d:\irrlicht\source\irrlicht_x64\dmfsupport.h	184
Warning	87	warning C4267: 'argument' : conversion from 'size_t' to 'irr::s32', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CAnimatedMeshMS3D.cpp	134
Warning	88	warning C4267: 'argument' : conversion from 'size_t' to 'UINT', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CD3D9ShaderMaterialRenderer.cpp	167
Warning	89	warning C4267: 'argument' : conversion from 'size_t' to 'UINT', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CD3D9ShaderMaterialRenderer.cpp	224
Warning	90	warning C4267: 'argument' : conversion from 'size_t' to 'UINT', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CD3D9HLSLMaterialRenderer.cpp	97
Warning	91	warning C4267: 'argument' : conversion from 'size_t' to 'UINT', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CD3D9HLSLMaterialRenderer.cpp	179
Warning	92	warning C4267: 'argument' : conversion from 'size_t' to 'irr::s32', possible loss of data	d:\Irrlicht\source\Irrlicht_x64\CImageLoaderPNG.cpp	45
lug
Posts: 79
Joined: Tue May 02, 2006 5:15 am
Contact:

Post by lug »

attempt #6:

1. with WIN64 preprocessor
2. Commented out the following line in "D:\Irrlicht\include\IrrCompileConfig.h":

//#define _IRR_COMPILE_WITH_DIRECT3D_8_

3. Commented out the following line in "D:\Irrlicht\include\IrrCompileConfig.h":

//#define _IRR_COMPILE_WITH_OPENGL_

4. Commented out the following line in "D:\Irrlicht\include\IUnknown.h":

//_IRR_DEBUG_BREAK_IF(ReferenceCounter <= 0) // someone is doing bad reference counting.

5. Commented out the following line in "D:\Irrlicht\include\irrArray.h":

//_IRR_DEBUG_BREAK_IF(index>=used) // access violation

6. Commented out the following line in "D:\Irrlicht\include\irrString.h":

//_IRR_DEBUG_BREAK_IF(index>=used) // bad index

7. Commented out the following line in "D:\Irrlicht\source\Irrlicht_x64\COpenGLDriver.cpp":

//IVideoDriver* createOpenGLDriver(const core::dimension2d<s32>& screenSize,
// HWND window, bool fullscreen, bool stencilBuffer, io::IFileSystem* io, bool vsync, bool antiAlias)
//{
//return 0;
//}

result:

1 errors 92 warnings

error from attempt #6:

Code: Select all

Error	93	fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'	d:\Irrlicht\source\obj\irrdebug\CGUIButton.obj	1

The warnings are the same as the last attempt.
lug
Posts: 79
Joined: Tue May 02, 2006 5:15 am
Contact:

Post by lug »

I'm stuck. :(

I see where the problem is from looking at the following line in "D:\Irrlicht\source\Irrlicht_x64\x64\Debug\BuildLog.htm":

Code: Select all

/OUT:"..\..\bin\Win32-visualstudio\Irrlicht.dll" /INCREMENTAL /DLL /MANIFEST /MANIFESTFILE:"x64\Debug\Irrlicht.dll.intermediate.manifest" /NODEFAULTLIB:"libci.lib" /DEBUG /PDB:"..\obj\IrrDebug\Irrlicht.pdb" /IMPLIB:"..\..\lib\Win32-visualstudio\Irrlicht.lib" /MACHINE:X64 /MACHINE:I386 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib
It's this part here from the above snippet:

/MACHINE:X64 /MACHINE:I386

But when I look at the linker options, I don't see "MACHINE:I386" just one for "MACHINE:X64." Piff!
hybrid
Admin
Posts: 14144
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

The IRR_BREAK_DEBUG_IF is compiler dependent for MSVC versions, you might want to use assert instead as gcc.
The last error could be a problem of an old object file, remove all .o files and compile again.
lug
Posts: 79
Joined: Tue May 02, 2006 5:15 am
Contact:

Post by lug »

I've finally got it to build successfully, go here to see:

http://irrlicht.sourceforge.net/phpBB2/ ... hp?t=15056
Post Reply