Building VBox 5.0.0 on Win7 - Linking error - il mismatch
Posted: 30. Jul 2015, 16:45
I'm building VBox5.0.0 on a win7 x86 machine. I've followed the official build instruction from https://www.virtualbox.org/wiki/Windows ... structions. But I got an error of Il mismatch between 'P1' version '20100826' and 'P2' version '20081201'.
Error details:
I guess it's because of the libraries (SDL, libcurl, openssl) that I downloaded do not match with each other. Do I need to build all of them locally? (I have only built QT4 by myself.) Or it is because of something else?
Commands that I used for building VBox:
Error details:
Code: Select all
fatal error C1900: Il mismatch between 'P1' version '20100826' and 'P2' version '20081201'
LINK : fatal error LNK1257: code generation failed
kmk: *** [C:/VBox/VirtualBox-5.0.0/out/win.x86/release/obj/VBoxRT/VBoxRT.dll] Error 1257
The failing command:
@ C:/PROGRA~1/MICROS~2.0/VC/bin/link.exe -nologo -machine:x86
-Ignore:4197 /NOD /INCREMENTAL:NO /MAPINFO:EXPORTS /LargeAddressAware /DynamicBase /NxCompat /Release /Debug /
Version:500.0 /STUB:C:/VBox/VirtualBox-5.0.0/src/VBox/HostDrivers/Support/win/winstub.com /DISALLOWLIB:libc.lib /DISALLO
WLIB:libcd.lib /DISALLOWLIB:libcmt.lib /DISALLOWLIB:libcmtd.lib /DISALLOWLIB:msvcrtd.lib /DISALLOWLIB:msvcprtd.lib /M
ANIFEST /delayload:gdi32.dll /delayload:user32.dll /delayload:shell32.dll /delayload:ole32.dll /delayload:oleaut32.dll /
delayload:advapi32.dll /OUT:C:/VBox/VirtualBox-5.0.0/out/win.x86/release/obj/VBoxRT/VBoxRT.dll /IMPLIB:C:/VBox/Virtua
lBox-5.0.0/out/win.x86/release/obj/VBoxRT/VBoxRT.lib /MAPINFO:EXPORTS /INCREMENTAL:NO /MAP:C:/VBox/VirtualBox-5.0.0/out/
win.x86/release/obj/VBoxRT/VBoxRT.map /DLL /DEF:C:/VBox/VirtualBox-5.0.0/out/win.x86/release/obj/VBoxRT/VBoxRT.def /L
IBPATH:C:/PROGRA~1/MICROS~2/Windows/v7.1/Lib /LIBPATH:C:/WinDDK/7600.16385.1/lib/wlh/i386 /LIBPATH:C:/PROGRA~1/MICROS~
2/Windows/v7.1/Lib @C:/VBox/VirtualBox-5.0.0/out/win.x86/release/obj/VBoxRT/VBoxRT.rsp
kmk: *** [C:/VBox/VirtualBox-5.0.0/out/win.x86/release/obj/VBoxRT/VBoxRT.dll] Deleting file `C:/VBox/VirtualBox-5.0.0/ou
t/win.x86/release/obj/VBoxRT/VBoxRT.rsp'
Commands that I used for building VBox:
Code: Select all
cscript configure.vbs --with-libSDL=C:\VBox\SDL-devel-1.2.15-VC\SDL-1.2.15 --with-openssl=C:\VBox\openssl-0.9.8k_WIN32 --with-libcurl=C:\VBox\curl-7.40.0-devel-mingw32 --with-QT4=C:\VBox\qt-4.7.3 --with-MinGW32=C:\VBox\MinGW32-3.3.3
env.bat
kmk