Build VB OSE on Win XP with QT4

Discussions related to using the OSE version of VirtualBox.
Post Reply
keros
Posts: 29
Joined: 13. Mar 2009, 11:16

Build VB OSE on Win XP with QT4

Post by keros »

Hi

I try to build the VB OSE version. I read the build instructions (http://www.virtualbox.org/wiki/Windows% ... structions) but I hang on a QT4 problem.

I have downloaded the QT4 SDK version from http://www.qtsoftware.com/downloads and installed (run configure file, ...) it. If I now try to build the VB source I get the following error (configure.log):
Testing '../QT/4.5.1/': lib/QtCore4.lib not found
Testing '../QT/4.5.1/': lib/VBoxQtCore4.lib not found
Testing '../QT/4.5.1/': lib/QtNetwork4.lib not found
Testing '../QT/4.5.1/': lib/VBoxQtCore4.lib not found

command was:
cscript configure.vbs --with-VC-Express-Edition --with-... ... --with-Qt4=../Qt/4.5.1

I have searched in the /lib folder and only found *.a and *.prl files (libQtCore4.a, ...).
Has anyone an idea what I make wrong?

keros
keros
Posts: 29
Joined: 13. Mar 2009, 11:16

Re: Build VB OSE on Win XP with QT4

Post by keros »

Has nobody an idea?

Is this a new concept of QT (no lib files)? I have no idea why I don't have the needed *.lib files. QT4 should be installed correctly.

Keros
keros
Posts: 29
Joined: 13. Mar 2009, 11:16

Re: Build VB OSE on Win XP with QT4

Post by keros »

Ok QT4 is now compiled on the right way (with VC2005 Express), so after a few :roll: days of errors I have the *.lib files.

But now the VB 2.2.2 compile problems show up.

csscript config...
kmk

Code: Select all

kBuild: Compiling RuntimeR3 - C:/VBOSE/src/VBox/Runtime/r3/alloc-ef.cpp
alloc-ef.cpp
C:\PROGRA~1\MICROS~2\VC\include\intrin.h(912) : error C2733: Zweite C-Bindung fr berladene Funktion 

'_interlockedbittestandset' nicht zul„ssig
        C:\PROGRA~1\MICROS~2\VC\include\intrin.h(912): Siehe Deklaration von '_interlockedbittestandset'
C:\PROGRA~1\MICROS~2\VC\include\intrin.h(913) : error C2733: Zweite C-Bindung fr berladene Funktion 

'_interlockedbittestandreset' nicht zul„ssig
        C:\PROGRA~1\MICROS~2\VC\include\intrin.h(913): Siehe Deklaration von '_interlockedbittestandreset'
kmk.exe[2]: *** [C:/VBOSE/out/win.x86/release/obj/RuntimeR3/r3/alloc-ef.obj] Error 2
The failing command:
@ C:/PROGRA~1/MICROS~2/VC/bin/cl.exe -c -TP -c -nologo -O2 -Zi -Zl -GR- -EHsc -GF -W3 -wd4065 -wd4244 -wd4996 

-Zc:wchar_t- -O2 -GS- -Oy- -MT -IC:/VBOSE/src/VBox/Runtime/include -IC:/VBOSE/src/libs/zlib-1.2.1 

-IC:/VBOSE/src/libs/liblzf-1.51 -IC:/PROGRA~1/MI2578~1/Windows/v6.0A/Include 

-IC:/PROGRA~1/MI2578~1/Windows/v6.0A/Include -IC:/WINDDK/3790~1.183/inc/ddk -IC:/WINDDK/3790~1.183/inc/ddk/wnet 

-IC:/WINDDK/3790~1.183/inc/wnet -IC:/WINDDK/3790~1.183/inc/ddk/wdm/wnet -IC:/VBOSE/include 

-IC:/VBOSE/out/win.x86/release -IC:/PROGRA~1/MICROS~2/VC/include -IC:/PROGRA~1/MICROS~2/VC/atlmfc/include -DVBOX 

-DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DRT_OS_WINDOWS -D__WIN__ -DRT_ARCH_X86 -D__X86__ -D__WIN32__ -D_X86_ 

-DIN_RING3 -DHC_ARCH_BITS=32 -DGC_ARCH_BITS=64 -DIN_RT_R3 -DIN_SUP_R3 -DLDR_WITH_NATIVE -DLDR_WITH_ELF32 

-DLDR_WITH_PE -DRT_WITH_VBOX -DRT_NO_GIP -FdC:/VBOSE/out/win.x86/release/obj/RuntimeR3/r3/alloc-ef-obj.pdb -FD 

-FoC:/VBOSE/out/win.x86/release/obj/RuntimeR3/r3/alloc-ef.obj C:\\VBOSE\\src\\VBox\\Runtime\\r3\\alloc-ef.cpp
kmk.exe[2]: *** [C:/VBOSE/out/win.x86/release/obj/RuntimeR3/r3/alloc-ef.obj] Deleting file 

`C:/VBOSE/out/win.x86/release/obj/RuntimeR3/r3/alloc-ef-obj.idb'
kmk.exe[2]: Leaving directory `C:/VBOSE'
kmk.exe[1]: *** [pass_libraries_this] Error 2
kmk.exe[1]: Leaving directory `C:/VBOSE'
kmk: *** [pass_libraries_order] Error 2
(compiling breaks after a very short time)

I have searched in this file and found the lines:

Code: Select all

__MACHINEI(unsigned char _interlockedbittestandset(long *a, long b))
__MACHINEI(unsigned char _interlockedbittestandreset(long *a, long b))
In Post http://forums.virtualbox.org/viewtopic. ... 685#p68024 I found a "solution". They say I should remove the "volatile" declaration.
Ok in my case there is no "volatile", so I try to do the opposite and added the "volatile" declaration

Code: Select all

__MACHINEI(unsigned char _interlockedbittestandset(long volatile *a, long volatile b))
__MACHINEI(unsigned char _interlockedbittestandreset(long volatile *a, long volatile b))
kmk

Code: Select all

C:\WINDDK\3790~1.183\inc\ddk\wnet\ntddk.h(230) : error C2733: Zweite C-Bindung fr berladene Funktion 

'_interlockedbittestandset' nicht zul„ssig
        C:\WINDDK\3790~1.183\inc\ddk\wnet\ntddk.h(227): Siehe Deklaration von '_interlockedbittestandset'
C:\WINDDK\3790~1.183\inc\ddk\wnet\ntddk.h(236) : error C2733: Zweite C-Bindung fr berladene Funktion 

'_interlockedbittestandreset' nicht zul„ssig
        C:\WINDDK\3790~1.183\inc\ddk\wnet\ntddk.h(233): Siehe Deklaration von '_interlockedbittestandreset'
kmk.exe[2]: *** [C:/VBOSE/out/win.x86/release/obj/RuntimeR0Drv/r0drv/nt/alloc-r0drv-nt.obj] Error 2
The failing command:
(compiling breaks after a very short time)

Searched and found:

Code: Select all

BOOLEAN
_interlockedbittestandset (
    IN LONG *Base,
    IN LONG Offset
    );

BOOLEAN
_interlockedbittestandreset (
    IN LONG *Base,
    IN LONG Offset
    );
Thought -> pff same error same solution

changed it to

Code: Select all

BOOLEAN
_interlockedbittestandset (
    IN LONG volatile *Base,
    IN LONG volatile Offset
    );

BOOLEAN
_interlockedbittestandreset (
    IN LONG volatile *Base,
    IN LONG volatile Offset
    );
kmk

Code: Select all

C:\PROGRA~1\MICROS~2\VC\include\intrin.h(912) : error C2733: Zweite C-Bindung fr berladene Funktion '_interlockedbittestandset' nicht zul„ssig
        C:\PROGRA~1\MICROS~2\VC\include\intrin.h(912): Siehe Deklaration von '_interlockedbittestandset'
C:\PROGRA~1\MICROS~2\VC\include\intrin.h(913) : error C2733: Zweite C-Bindung fr berladene Funktion '_interlockedbittestandreset' nicht zul„ssig
        C:\PROGRA~1\MICROS~2\VC\include\intrin.h(913): Siehe Deklaration von '_interlockedbittestandreset'
kmk.exe[2]: *** [C:/VBOSE/out/win.x86/release/obj/Drivers/Storage/DrvHostDVD.obj] Error 2
The failing command:
(compiling breaks after a long time)

Anyone an Idea how to solve this problem?
http://forums.virtualbox.org/viewtopic. ... ion#p63681
Same problem but also no solution :cry:

Keros
keros
Posts: 29
Joined: 13. Mar 2009, 11:16

Re: Build VB OSE on Win XP with QT4

Post by keros »

Has nobody else build VB 2.2.2 OSE (windows with VC Express 2005/08)?

I have now tried it in Win2k3 with the same result.

Can anyone who have build VB successfully send me the files "intrin.h" and "ntddk.h" or tell me what I have to change?
All google sources tell me to write or erase volatile in this lines, but this does not work in my case.
Post Reply