Building VirtualBox OSE 2.1.4 on Windows (use VS2005, Qt4)

Discussions related to using the OSE version of VirtualBox.

Building VirtualBox OSE 2.1.4 on Windows (use VS2005, Qt4)

Postby yk700101 » 19. Feb 2009, 00:15

The build (use VS2005, Qt4) succeeded.
But I think there may be mistakes.
This is for reference.

Prerequisites
Code: Select all   Expand viewCollapse view
Windows Server 2003 Web Edition SP2

Visual Studio 2005 Professional Edition with service pack 1

Windows Platform SDK
  (come with Visual Studio 2005)
 
Windows Driver Development Kit
  Windows Server 2003 SP1 DDK
 
DirectX SDK
  Microsoft DirectX SDK (November 2008)

MingW
  gcc-core-3.3.1-20030804-1.tar.gz
  gcc-g++-3.3.1-20030804-1.tar.gz
  mingw-runtime-3.8.tar.gz
  w32api-3.5.tar.gz
  binutils-2.13.90-20021006-2.tar.gz

SDL
  SDL-devel-1.2.13-VC8.zip

libxml2 and libxslt1 libraries
  libxml2-sources-2.7.3.tar.gz
  libxslt-1.1.24.tar.gz

QT
  qt-win-opensource-src-4.4.3.zip



Directory tree
Code: Select all   Expand viewCollapse view
  D:\z_Build2
  ??libxml2-2.7.3
  ??libxslt-1.1.24
  ??mingw
  ??qt-win-opensource-src-4.4.3
  ??SDL-1.2.13
  ??VirtualBox-2.1.4_OSE


Building libxml2
  • Command
    Code: Select all   Expand viewCollapse view
    cd D:\z_Build2\libxml2-2.7.3\win32

    cscript configure.js iconv=no

    nmake /f Makefile.msvc > D:\z_Build2\build.libxml2.log 2>&1

    nmake /f Makefile.msvc install

Building libxslt
  • Command
    Code: Select all   Expand viewCollapse view
    cd D:\z_Build2\libxslt-1.1.24\win32

    cscript configure.js iconv=no include=D:\z_Build2\libxml2-2.7.3\win32\include lib=D:\z_Build2\libxml2-2.7.3\win32\lib

    nmake /f Makefile.msvc > D:\z_Build2\build.libxslt.log 2>&1

    nmake /f Makefile.msvc install

Building Qt4
  • Command
    Code: Select all   Expand viewCollapse view
    "D:\Program Files\Microsoft DirectX SDK (November 2008)\Utilities\Bin\dx_setenv.cmd"

    set PATH=%PATH%;D:\z_Build2\qt-win-opensource-src-4.4.3\bin;

    cd D:\z_Build2\qt-win-opensource-src-4.4.3

    configure -release -shared -no-fast -exceptions -accessibility -stl -no-sql-sqlite -no-qt3support -no-opengl -no-dsp -no-vcproj -no-incredibuild-xge -qmake -process -rtti -no-mmx -no-3dnow -no-sse -no-sse2 -no-openssl -no-dbus -no-phonon -no-phonon-backend -no-webkit -no-assistant-webkit -arch windows -qt-style-windows -qt-style-windowsxp -qt-style-windowsvista -qt-style-plastique -qt-style-cleanlooks -no-style-motif -no-style-cde


    Code: Select all   Expand viewCollapse view
    nmake > D:\z_Build2\build.qt4.log 2>&1

Building VirtualBox(configure)

Building VirtualBox(make)
  • Prepare
    get short names.
    Code: Select all   Expand viewCollapse view
    dir /X D:\

    02/18/2009  08:34 AM    <DIR>          PROGRA~1     Program Files


    Code: Select all   Expand viewCollapse view
    dir /X "D:\Program Files"

    02/15/2009  02:43 PM    <DIR>          MI5881~1     Microsoft DirectX SDK (November 2008)
    02/17/2009  11:16 AM    <DIR>          MICROS~1     Microsoft Visual Studio 8


    Edit D:\z_Build2\VirtualBox-2.1.4_OSE\AutoConfig.kmk
    Add to the bottom
    Code: Select all   Expand viewCollapse view
    PATH_SDK_WINPSDK      := D:/PROGRA~1/MICROS~1/vc/PlatformSDK
    PATH_SDK_WINPSDKINCS   = $(PATH_SDK_WINPSDK)
    PATH_SDK_WIN32SDK      = $(PATH_SDK_WINPSDK)
    PATH_SDK_WIN64SDK      = $(PATH_SDK_WINPSDK)

    PATH_SDK_DXSDK        := D:/PROGRA~1/MI5881~1
    PATH_SDK_DXSDKX86      = $(PATH_SDK_DXSDK)
    PATH_SDK_DXSDKAMD64    = $(PATH_SDK_DXSDK)

    SDK_VBOX_LIBXML2_LIBS  := D:/z_Build2/libxml2-2.7.3/win32/lib/libxml2_a.lib
    SDK_VBOX_LIBXSLT_LIBS   := D:/z_Build2/libxslt-1.1.24/win32/lib/libxslt_a.lib

    VBOX_WITH_QTGUI :=
    PATH_SDK_QT4 := D:/z_Build2/qt-win-opensource-src-4.4.3


    Command
    Code: Select all   Expand viewCollapse view
    echo. > D:\z_Build2\VirtualBox-2.1.4_OSE\src\VBox\Additions\WINNT\Installer\Makefile.kmk

  • Command
    Code: Select all   Expand viewCollapse view
    cd D:\z_Build2\VirtualBox-2.1.4_OSE

    env.bat

    set PATH=%PATH%;D:\z_Build2\mingw\bin;
    set PATH=%PATH%;D:\z_Build2\qt-win-opensource-src-4.4.3\bin;

    kmk > D:\z_Build2\build.vbox.log 2>&1

  • Error-1
    Code: Select all   Expand viewCollapse view
    Sorry_Cannot_Find_The_Midl_Compiler_In_The_PSDK /nologo \
       /out D:\\z_Build2\\VirtualBox-2.1.4_OSE\\out\\win.x86\\release\\obj\\VBoxCOM \
       /cpp_cmd  D:\\PROGRA~1\\MICROS~1\\VC\\bin\\cl.exe \
       /I D:\\PROGRA~1\\MICROS~1\\vc\\PlatformSDK\\Include \
       /I idl \
       D:\\z_Build2\\VirtualBox-2.1.4_OSE\\out\\win.x86\\release\\bin\\sdk\\bindings\\mscom\\idl\\VirtualBox.idl
    process_begin: CreateProcess(NULL, Sorry_Cannot_Find_The_Midl_Compiler_In_The_PSDK /nologo /out D:\z_Build2\VirtualBox-2.1.4_OSE\out\win.x86\release\obj\VBoxCOM /cpp_cmd D:\PROGRA~1\MICROS~1\VC\bin\cl.exe /I D:\PROGRA~1\MICROS~1\vc\PlatformSDK\Include /I idl D:\z_Build2\VirtualBox-2.1.4_OSE\out\win.x86\release\bin\sdk\bindings\mscom\idl\VirtualBox.idl, ...) failed.
    make (e=127): The specified procedure could not be found.

    kmk.exe[2]: *** [D:/z_Build2/VirtualBox-2.1.4_OSE/out/win.x86/release/obj/VBoxCOM/VirtualBox_i.c] Error 127

  • Resolve-1
    Edit D:\z_Build2\VirtualBox-2.1.4_OSE\AutoConfig.kmk
    Add to the bottom
    Code: Select all   Expand viewCollapse view
    PATH_SDK_WINPSDK_BIN := D:/PROGRA~1/MICROS~1/Common7/Tools/Bin

  • Error-2
    Code: Select all   Expand viewCollapse view
    D:\z_Build2\VirtualBox-2.1.4_OSE\include\iprt/asm.h(1632) : error C3861: '__readdr': identifier not found
    .
    .
    .
    D:\z_Build2\VirtualBox-2.1.4_OSE\include\iprt/asm.h(2066) : error C3861: '__writedr': identifier not found
    kmk.exe[2]: *** [D:/z_Build2/VirtualBox-2.1.4_OSE/out/win.x86/release/obj/VBoxCOM/glue/initterm.obj] Error 2
    The failing command:
    @ D:/PROGRA~1/MICROS~1/VC/bin/cl.exe -c -TP -c -nologo -O2 -Zi -Zl -GR -GF- -MD -EHsc -W3 -wd4065 -wd4996 -wd4250 -Zc:wchar_t- -O2 -GS- -Oy- -ID:/PROGRA~1/MICROS~1/VC/atlmfc/include -ID:/z_Build2/VirtualBox-2.1.4_OSE/out/win.x86/release/bin/sdk/bindings/mscom/include -ID:/PROGRA~1/MICROS~1/vc/PlatformSDK/Include -ID:/WinDDK/6001.18002/inc/ddk -ID:/WinDDK/6001.18002/inc/ddk/wnet -ID:/WinDDK/6001.18002/inc/wnet -ID:/WinDDK/6001.18002/inc/ddk/wdm/wnet -ID:/z_Build2/VirtualBox-2.1.4_OSE/include -ID:/z_Build2/VirtualBox-2.1.4_OSE/out/win.x86/release -ID:/PROGRA~1/MICROS~1/VC/include -ID:/PROGRA~1/MICROS~1/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 -DUNICODE -DNDEBUG=1 -D_UNICODE -D_WIN32_WINNT=0x0500 -FdD:/z_Build2/VirtualBox-2.1.4_OSE/out/win.x86/release/obj/VBoxCOM/glue/initterm-obj.pdb -FD -FoD:/z_Build2/VirtualBox-2.1.4_OSE/out/win.x86/release/obj/VBoxCOM/glue/initterm.obj D:\\z_Build2\\VirtualBox-2.1.4_OSE\\src\\VBox\\Main\\glue\\initterm.cpp

  • Resolve-2-1
    Code: Select all   Expand viewCollapse view
    pushd D:\z_Build2\VirtualBox-2.1.4_OSE\include\iprt\
    move asm.h          asm.h.original
    copy asm.h.original asm.h
    popd

  • Resolve-2-2
    Change D:\z_Build2\VirtualBox-2.1.4_OSE\include\iprt\asm.h(71-72)
    Code: Select all   Expand viewCollapse view
    #  pragma intrinsic(__readdr)
    #  pragma intrinsic(__writedr)

    to
    Code: Select all   Expand viewCollapse view
    //#  pragma intrinsic(__readdr)
    //#  pragma intrinsic(__writedr)


    Change D:\z_Build2\VirtualBox-2.1.4_OSE\include\iprt\asm.h
    (1631, 1667, 1703, 1739, 1775, 1811, 1860, 1895, 1929, 1963, 1997, 2031, 2065, )
    Code: Select all   Expand viewCollapse view
    # if RT_INLINE_ASM_USES_INTRIN

    to
    Code: Select all   Expand viewCollapse view
    # if 0

After build
Command
Code: Select all   Expand viewCollapse view
copy D:\z_Build2\qt-win-opensource-src-4.4.3\bin\QtCore4.dll D:\z_Build2\VirtualBox-2.1.4_OSE\out\win.x86\release\bin
copy D:\z_Build2\qt-win-opensource-src-4.4.3\bin\QtGui4.dll D:\z_Build2\VirtualBox-2.1.4_OSE\out\win.x86\release\bin
copy D:\z_Build2\qt-win-opensource-src-4.4.3\bin\QtNetwork4.dll D:\z_Build2\VirtualBox-2.1.4_OSE\out\win.x86\release\bin

cd D:\z_Build2\VirtualBox-2.1.4_OSE\out\win.x86\release\bin

comregister.cmd
SUPUninstall.exe
SUPInstall.exe
yk700101
 
Posts: 42
Joined: 7. Feb 2009, 00:17
Location: Japan
Primary OS: MS Windows Vista
VBox Version: OSE self-compiled
Guest OSses: Debian

Postby mrpopgun » 24. Feb 2009, 21:15

So, I'm working through the build doc and am getting hung up right off the bat. It says to download gcc-G++ 3.3.1. Problem is, that is such an old version it isn't even available on the website anymore. I can get 3.3.3 or up. Since I don't have all the files, is it easy to simply edit particular files for the newer version?

Alternativley
1) Where can I get a copy of gcc-g++ 3.3.1?
2) Can I download a compiled copy of OSE for Windows from someone or is that against the rules?

Pop
mrpopgun
 
Posts: 2
Joined: 24. Feb 2009, 21:10

Binaries and build log

Postby yk700101 » 25. Feb 2009, 03:10

1) Where can I get a copy of gcc-g++ 3.3.1?


[Windows build instructions - VirtualBox]
http://www.virtualbox.org/wiki/Windows%20build%20instructions

2) Can I download a compiled copy of OSE for Windows from someone or is that against the rules?


[Licensing_FAQ - VirtualBox(7. Can I redistribute the VirtualBox binaries?)]
http://www.virtualbox.org/wiki/Licensing_FAQ

[This is binaries and build log.]
http://www.transferbigfiles.com/Get.aspx?id=106481a1-700b-4109-864b-b41c105a8ae7
(link expires March 01 @ 05:42 PM MST)
yk700101
 
Posts: 42
Joined: 7. Feb 2009, 00:17
Location: Japan
Primary OS: MS Windows Vista
VBox Version: OSE self-compiled
Guest OSses: Debian

Postby mrpopgun » 25. Feb 2009, 03:17

Thank you for the binary!!! I will promptly test tomorrow morning.

The reason I asked about the gcc-g++ download location is because the link on the Build Page is non-functional. It looks like the build doc hasn't been updated in some time.

That link takes you to where you have to select GCC 2, 3 or 4. When you select 3, it shows the current version is 3.4.5. Previous versions only go back to 3.3.3, not as far back as 3.3.1.

Anyways, thanks again!
mrpopgun
 
Posts: 2
Joined: 24. Feb 2009, 21:10

binaries and build log (same as previous one)

Postby yk700101 » 3. Mar 2009, 16:34

[binaries(same as previous one)]
http://www.transferbigfiles.com/Get.aspx?id=17d72d0a-5dd6-4cb9-9238-0d145131b6d0
(link expires March 08 @ 07:23 AM MST)

[build log (same as previous one)]
http://www.transferbigfiles.com/Get.aspx?id=a502c10d-f0ea-4cf5-af94-6a36699ff08c
(link expires March 08 @ 07:48 AM MST)
yk700101
 
Posts: 42
Joined: 7. Feb 2009, 00:17
Location: Japan
Primary OS: MS Windows Vista
VBox Version: OSE self-compiled
Guest OSses: Debian

Re: Binaries and build log

Postby AndersKOlsson » 4. Mar 2009, 16:42

yk700101 wrote:
1) Where can I get a copy of gcc-g++ 3.3.1?


[Windows build instructions - VirtualBox]
http://www.virtualbox.org/wiki/Windows%20build%20instructions

It now seems the direct link to http://prdownloads.sf.net/mingw/gcc-g++-3.3.1-20030804-1.tar.gz?download is broken (all others work, even gcc-core). Any suggestions where to go from here? I've googled, but no alternative download found.
AndersKOlsson
 
Posts: 22
Joined: 10. Feb 2009, 11:49
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: SLES 10

percent-encoding

Postby yk700101 » 5. Mar 2009, 00:50

AndersKOlsson wrote:
yk700101 wrote:
1) Where can I get a copy of gcc-g++ 3.3.1?


[Windows build instructions - VirtualBox]
http://www.virtualbox.org/wiki/Windows%20build%20instructions

It now seems the direct link to http://prdownloads.sf.net/mingw/gcc-g++-3.3.1-20030804-1.tar.gz?download is broken (all others work, even gcc-core). Any suggestions where to go from here? I've googled, but no alternative download found.


I found it is broken now.
Please try below.(++ -> %2B%2B)
http://prdownloads.sf.net/mingw/gcc-g%2B%2B-3.3.1-20030804-1.tar.gz?download
yk700101
 
Posts: 42
Joined: 7. Feb 2009, 00:17
Location: Japan
Primary OS: MS Windows Vista
VBox Version: OSE self-compiled
Guest OSses: Debian

Re: Building VirtualBox OSE 2.1.4 on Windows (use VS2005, Qt4)

Postby AndersKOlsson » 5. Mar 2009, 14:18

The new link works fine. Thanks!
AndersKOlsson
 
Posts: 22
Joined: 10. Feb 2009, 11:49
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: SLES 10

Re: Building VirtualBox OSE 2.1.4 on Windows (use VS2005, Qt4)

Postby AndersKOlsson » 6. Mar 2009, 10:24

Thought I might share something I got stuck on while following these instructions:

I had cl.exe crashing on me as soon as I tried building anything. A bit of googling led me to this article http://social.msdn.microsoft.com/Forums/en-US/Vsexpressvc/thread/325b5459-c469-40d0-bf6d-e3356a2f14cd/. To use MSVC from outside the IDE one needs to set up the environment with vcvarsall.bat. In my environment it's located in C:\Program Files\Microsoft Visual Studio 8\VC\vcvarsall.bat. Maybe mentioning that would be a good addition to the guide, just like it's mentioned how to set up DirectX SDK's environment.

Many thanks for the guide, I'd be dead in the water without it.
AndersKOlsson
 
Posts: 22
Joined: 10. Feb 2009, 11:49
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: SLES 10

Visual Studio 2005 Command Prompt window

Postby yk700101 » 6. Mar 2009, 11:52

AndersKOlsson wrote:Thought I might share something I got stuck on while following these instructions:

I had cl.exe crashing on me as soon as I tried building anything. A bit of googling led me to this article http://social.msdn.microsoft.com/Forums/en-US/Vsexpressvc/thread/325b5459-c469-40d0-bf6d-e3356a2f14cd/. To use MSVC from outside the IDE one needs to set up the environment with vcvarsall.bat. In my environment it's located in C:\Program Files\Microsoft Visual Studio 8\VC\vcvarsall.bat. Maybe mentioning that would be a good addition to the guide, just like it's mentioned how to set up DirectX SDK's environment.

Many thanks for the guide, I'd be dead in the water without it.

I am glad to be able to help you.

Instead of vcvarsall.bat, I opened the Visual Studio 2005 Command Prompt window.(maybe same as 'vcvarsall.bat x86')
Code: Select all   Expand viewCollapse view
Start -> Programs -> Microsoft Visual Studio 2005 -> Visual Studio Tools -> Visual Studio 2005 Command Prompt
yk700101
 
Posts: 42
Joined: 7. Feb 2009, 00:17
Location: Japan
Primary OS: MS Windows Vista
VBox Version: OSE self-compiled
Guest OSses: Debian

Re: Building VirtualBox OSE 2.1.4 on Windows (use VS2005, Qt4)

Postby AndersKOlsson » 6. Mar 2009, 14:11

I'm pretty close to getting this beast to build, but keep hitting a problem:

When building a cpp-file the make-script fails in finding cc1plus. I've searched, and found that I have it in C:\MinGW\lib\gcc-lib\mingw32\3.3.1\cc1plus.exe. The output I'm getting:

Code: Select all   Expand viewCollapse view
kBuild: Compiling RuntimeR3NoCRTGCC - C:/Users/eolnans/Downloads/Vbox-deps/build/VirtualBox-2.1.4_OSE/src/VBox/Runtime/common/misc/sanity-cpp.cpp
alloc-ef-cpp.cpp
g++.exe: installation problem, cannot exec `cc1plus': No such file or directory
kmk.exe[2]: *** [C:/Users/eolnans/Downloads/Vbox-deps/build/VirtualBox-2.1.4_OSE/out/win.x86/release/obj/RuntimeR3NoCRTGCC/common/misc/sanity-cpp.o] Error 1
The failing command:
@C:/MinGW/bin/g++.exe -c -g -O2 -nostdinc -fno-strict-aliasing -fno-math-errno -Wall -Wno-unused -Wno-trigraphs -s -m32 -IC:/Users/eolnans/Downloads/Vbox-deps/build/VirtualBox-2.1.4_OSE/src/VBox/Runtime/include -IC:/Users/eolnans/Downloads/Vbox-deps/build/VirtualBox-2.1.4_OSE/include/iprt/nocrt -IC:/Users/eolnans/Downloads/Vbox-deps/build/VirtualBox-2.1.4_OSE/include -IC:/Users/eolnans/Downloads/Vbox-deps/build/VirtualBox-2.1.4_OSE/out/win.x86/release -DVBOX -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DRT_OS_WINDOWS -D__WIN__ -DRT_ARCH_X86 -D__X86__ -D__WIN32__ -DIN_RING3 -DIPRT_NO_CRT -DHC_ARCH_BITS=32 -DGC_ARCH_BITS=64 -Wp,-MD,C:/Users/eolnans/Downloads/Vbox-deps/build/VirtualBox-2.1.4_OSE/out/win.x86/release/obj/RuntimeR3NoCRTGCC/common/misc/sanity-cpp.o.dep -Wp,-MT,C:/Users/eolnans/Downloads/Vbox-deps/build/VirtualBox-2.1.4_OSE/out/win.x86/release/obj/RuntimeR3NoCRTGCC/common/misc/sanity-cpp.o -Wp,-MP -o C:/Users/eolnans/Downloads/Vbox-deps/build/VirtualBox-2.1.4_OSE/out/win.x86/release/obj/RuntimeR3NoCRTGCC/common/misc/sanity-cpp.o C:/Users/eolnans/Downloads/Vbox-deps/build/VirtualBox-2.1.4_OSE/src/VBox/Runtime/common/misc/sanity-cpp.cpp
kmk.exe[2]: *** Waiting for unfinished jobs....
kmk.exe[2]: Leaving directory `C:/Users/eolnans/Downloads/Vbox-deps/build/VirtualBox-2.1.4_OSE'
kmk.exe[2]: Entering directory `C:/Users/eolnans/Downloads/Vbox-deps/build/VirtualBox-2.1.4_OSE'
kmk.exe[2]: *** Exiting with status 2
kmk.exe[1]: *** [pass_libraries_this] Error 2
kmk.exe[1]: Leaving directory `C:/Users/eolnans/Downloads/Vbox-deps/build/VirtualBox-2.1.4_OSE'
kmk: *** [pass_libraries_order] Error 2
AndersKOlsson
 
Posts: 22
Joined: 10. Feb 2009, 11:49
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: SLES 10

'installation problem' of MinGw

Postby yk700101 » 6. Mar 2009, 18:23

AndersKOlsson wrote:
Code: Select all   Expand viewCollapse view
kBuild: Compiling RuntimeR3NoCRTGCC - C:/Users/eolnans/Downloads/Vbox-deps/build/VirtualBox-2.1.4_OSE/src/VBox/Runtime/common/misc/sanity-cpp.cpp
alloc-ef-cpp.cpp
g++.exe: installation problem, cannot exec `cc1plus': No such file or directory


I think this error was caused by 'installation problem' of MinGw.
I suggest you re-install MinGw.

[HOWTO Install the MinGW (GCC) Compiler Suite | MinGW] (* I found this page a few days ago.)
http://www.mingw.org/wiki/HOWTO_Install_the_MinGW_GCC_Compiler_Suite
yk700101
 
Posts: 42
Joined: 7. Feb 2009, 00:17
Location: Japan
Primary OS: MS Windows Vista
VBox Version: OSE self-compiled
Guest OSses: Debian

Re: Building VirtualBox OSE 2.1.4 on Windows (use VS2005, Qt4)

Postby rryk » 8. Mar 2009, 02:30

What can this be? Any solution to this?

Code: Select all   Expand viewCollapse view
kBuild: Compiling RuntimeR3NoCRTGCC - D:/Sergey/++Projects/vbox/src/VBox/Runtime/common/misc/sanity-cpp.cpp
process_begin: CreateProcess(NULL, D:/Sergey/++Projects/vbox/tools/win.x86/mingw32/v3.3.3/bin/g++.exe -c -g -O2 -nostdinc -fno-strict-aliasing -fno-math-errno -Wall -Wno-unused -Wno-trigraphs -s -m32 -ID:/Sergey/++Projects/vbox/src/VBox/Runtime/include -ID:/Sergey/++Projects/vbox/include/iprt/nocrt -ID:/Sergey/++Projects/vbox/include -ID:/Sergey/++Projects/vbox/out/win.x86/release -DVBOX -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DRT_OS_WINDOWS -D__WIN__ -DRT_ARCH_X86 -D__X86__ -D__WIN32__ -DIN_RING3 -DIPRT_NO_CRT -DHC_ARCH_BITS=32 -DGC_ARCH_BITS=64 -Wp,-MD,D:/Sergey/++Projects/vbox/out/win.x86/release/obj/RuntimeR3NoCRTGCC/common/misc/sanity-cpp.o.dep -Wp,-MT,D:/Sergey/++Projects/vbox/out/win.x86/release/obj/RuntimeR3NoCRTGCC/common/misc/sanity-cpp.o -Wp,-MP -o D:/Sergey/++Projects/vbox/out/win.x86/release/obj/RuntimeR3NoCRTGCC/common/misc/sanity-cpp.o D:/Sergey/++Projects/vbox/src/VBox/Runtime/common/misc/sanity-cpp.cpp, ...) failed.
make (e=127): The specified procedure could not be found.
kmk.exe[2]: *** [D:/Sergey/++Projects/vbox/out/win.x86/release/obj/RuntimeR3NoCRTGCC/common/misc/sanity-cpp.o] Error 127
The failing command:
@D:/Sergey/++Projects/vbox/tools/win.x86/mingw32/v3.3.3/bin/g++.exe -c -g -O2 -nostdinc -fno-strict-aliasing -fno-math-errno -Wall -Wno-unused -Wno-trigraphs -s -m32 -ID:/Sergey/++Projects/vbox/src/VBox/Runtime/include -ID:/Sergey/++Projects/vbox/include/iprt/nocrt -ID:/Sergey/++Projects/vbox/include -ID:/Sergey/++Projects/vbox/out/win.x86/release -DVBOX -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DRT_OS_WINDOWS -D__WIN__ -DRT_ARCH_X86 -D__X86__ -D__WIN32__ -DIN_RING3 -DIPRT_NO_CRT -DHC_ARCH_BITS=32 -DGC_ARCH_BITS=64 -Wp,-MD,D:/Sergey/++Projects/vbox/out/win.x86/release/obj/RuntimeR3NoCRTGCC/common/misc/sanity-cpp.o.dep -Wp,-MT,D:/Sergey/++Projects/vbox/out/win.x86/release/obj/RuntimeR3NoCRTGCC/common/misc/sanity-cpp.o -Wp,-MP -o D:/Sergey/++Projects/vbox/out/win.x86/release/obj/RuntimeR3NoCRTGCC/common/misc/sanity-cpp.o D:/Sergey/++Projects/vbox/src/VBox/Runtime/common/misc/sanity-cpp.cpp
rryk
 
Posts: 8
Joined: 6. Mar 2009, 02:50

Where is g++.exe?

Postby yk700101 » 8. Mar 2009, 05:20

rryk wrote:What can this be? Any solution to this?

Code: Select all   Expand viewCollapse view
kBuild: Compiling RuntimeR3NoCRTGCC - D:/Sergey/++Projects/vbox/src/VBox/Runtime/common/misc/sanity-cpp.cpp
process_begin: CreateProcess(NULL, D:/Sergey/++Projects/vbox/tools/win.x86/mingw32/v3.3.3/bin/g++.exe -c -g -O2 -nostdinc -fno-strict-aliasing -fno-math-errno -Wall -Wno-unused -Wno-trigraphs -s -m32 -ID:/Sergey/++Projects/vbox/src/VBox/Runtime/include -ID:/Sergey/++Projects/vbox/include/iprt/nocrt -ID:/Sergey/++Projects/vbox/include -ID:/Sergey/++Projects/vbox/out/win.x86/release -DVBOX -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DRT_OS_WINDOWS -D__WIN__ -DRT_ARCH_X86 -D__X86__ -D__WIN32__ -DIN_RING3 -DIPRT_NO_CRT -DHC_ARCH_BITS=32 -DGC_ARCH_BITS=64 -Wp,-MD,D:/Sergey/++Projects/vbox/out/win.x86/release/obj/RuntimeR3NoCRTGCC/common/misc/sanity-cpp.o.dep -Wp,-MT,D:/Sergey/++Projects/vbox/out/win.x86/release/obj/RuntimeR3NoCRTGCC/common/misc/sanity-cpp.o -Wp,-MP -o D:/Sergey/++Projects/vbox/out/win.x86/release/obj/RuntimeR3NoCRTGCC/common/misc/sanity-cpp.o D:/Sergey/++Projects/vbox/src/VBox/Runtime/common/misc/sanity-cpp.cpp, ...) failed.
make (e=127): The specified procedure could not be found.
kmk.exe[2]: *** [D:/Sergey/++Projects/vbox/out/win.x86/release/obj/RuntimeR3NoCRTGCC/common/misc/sanity-cpp.o] Error 127
The failing command:
@D:/Sergey/++Projects/vbox/tools/win.x86/mingw32/v3.3.3/bin/g++.exe -c -g -O2 -nostdinc -fno-strict-aliasing -fno-math-errno -Wall -Wno-unused -Wno-trigraphs -s -m32 -ID:/Sergey/++Projects/vbox/src/VBox/Runtime/include -ID:/Sergey/++Projects/vbox/include/iprt/nocrt -ID:/Sergey/++Projects/vbox/include -ID:/Sergey/++Projects/vbox/out/win.x86/release -DVBOX -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DRT_OS_WINDOWS -D__WIN__ -DRT_ARCH_X86 -D__X86__ -D__WIN32__ -DIN_RING3 -DIPRT_NO_CRT -DHC_ARCH_BITS=32 -DGC_ARCH_BITS=64 -Wp,-MD,D:/Sergey/++Projects/vbox/out/win.x86/release/obj/RuntimeR3NoCRTGCC/common/misc/sanity-cpp.o.dep -Wp,-MT,D:/Sergey/++Projects/vbox/out/win.x86/release/obj/RuntimeR3NoCRTGCC/common/misc/sanity-cpp.o -Wp,-MP -o D:/Sergey/++Projects/vbox/out/win.x86/release/obj/RuntimeR3NoCRTGCC/common/misc/sanity-cpp.o D:/Sergey/++Projects/vbox/src/VBox/Runtime/common/misc/sanity-cpp.cpp


Please confirm
Code: Select all   Expand viewCollapse view
D:/Sergey/++Projects/vbox/tools/win.x86/mingw32/v3.3.3/bin/g++.exe

exists.

Please check your AutoConfig.kmk .

My AutoConfig.kmk is
Code: Select all   Expand viewCollapse view
# -*- Makefile -*-
#
# Build configuration generated by cscript configure.vbs --with-MinGW=D:\z_Build2\mingw --with-libSDL=D:\z_Build2\SDL-1.2.13 --with-libxml2=D:\z_Build2\libxml2-2.7.3\win32 --with-libxslt=D:\z_Build2\libxslt-1.1.24\win32 --with-qt=D:\z_Build2\qt-win-opensource-src-4.4.3
#
VBOX_OSE := 1
VBOX_USE_VCC80        := 1
PATH_TOOL_VCC80       := D:/PROGRA~1/MICROS~1/VC
PATH_TOOL_VCC80X86     = $(PATH_TOOL_VCC80)
PATH_TOOL_VCC80AMD64   = $(PATH_TOOL_VCC80)
PATH_SDK_W2K3DDK      := D:/WINDDK/3790~1.183
PATH_SDK_W2K3DDKX86    = $(PATH_SDK_W2K3DDK)
PATH_SDK_W2K3DDKAMD64  = $(PATH_SDK_W2K3DDK)
MAIN_IDL = D:/WINDDK/3790~1.183/bin/x86/Midl.exe
PATH_TOOL_MINGW32     := D:/z_Build2/mingw
PATH_SDK_W32API        = D:\z_Build2\mingw
PATH_SDK_LIBSDL       := D:/z_Build2/SDL-1.2.13
SDK_VBOX_LIBXML2_INCS  := D:/z_Build2/libxml2-2.7.3/win32/include
SDK_VBOX_LIBXML2_LIBS  := D:/z_Build2/libxml2-2.7.3/win32/lib/libxml2.lib
SDK_VBOX_LIBXSLT_INCS   := D:/z_Build2/libxslt-1.1.24/win32/include
SDK_VBOX_LIBXSLT_LIBS   := D:/z_Build2/libxslt-1.1.24/win32/lib/libxslt.lib
VBOX_PATH_QT          := D:/z_Build2/qt-win-opensource-src-4.4.3
QTDIR                  = $(VBOX_PATH_QT)
LIB_QT                 =
VBOX_DLL_QT            =

PATH_SDK_WINPSDK      := D:/PROGRA~1/MICROS~1/vc/PlatformSDK
PATH_SDK_WINPSDKINCS   = $(PATH_SDK_WINPSDK)
PATH_SDK_WIN32SDK      = $(PATH_SDK_WINPSDK)
PATH_SDK_WIN64SDK      = $(PATH_SDK_WINPSDK)

PATH_SDK_DXSDK        := D:/PROGRA~1/MI5881~1
PATH_SDK_DXSDKX86      = $(PATH_SDK_DXSDK)
PATH_SDK_DXSDKAMD64    = $(PATH_SDK_DXSDK)

SDK_VBOX_LIBXML2_LIBS  := D:/z_Build2/libxml2-2.7.3/win32/lib/libxml2_a.lib
SDK_VBOX_LIBXSLT_LIBS   := D:/z_Build2/libxslt-1.1.24/win32/lib/libxslt_a.lib

VBOX_WITH_QTGUI :=
PATH_SDK_QT4 := D:/z_Build2/qt-win-opensource-src-4.4.3

PATH_SDK_WINPSDK_BIN := D:/PROGRA~1/MICROS~1/Common7/Tools/Bin
yk700101
 
Posts: 42
Joined: 7. Feb 2009, 00:17
Location: Japan
Primary OS: MS Windows Vista
VBox Version: OSE self-compiled
Guest OSses: Debian

Re: Building VirtualBox OSE 2.1.4 on Windows (use VS2005, Qt4)

Postby rryk » 8. Mar 2009, 12:27

yk700101 wrote:Please confirm
Code: Select all   Expand viewCollapse view
D:/Sergey/++Projects/vbox/tools/win.x86/mingw32/v3.3.3/bin/g++.exe

exists.


This solved previous problem (thank you for that), but I have new one. Now, after cleaning and building again I got an error:
Code: Select all   Expand viewCollapse view
kBuild: Compiling SUPR0IdcClient - D:/Sergey/++Projects/vbox/src/VBox/HostDrivers/Support/win/SUPR0IdcClient-win.c
C:\WINDDK\3790~1.183\inc\ddk\wnet\ntddk.h(8678) : warning C4163: '_InterlockedExchange_StupidDDKVsCompilerCrap' : not available as an intrinsic function
C:\WINDDK\3790~1.183\inc\ddk\wnet\ntddk.h(8731) : warning C4163: '_InterlockedExchangeAdd_StupidDDKVsCompilerCrap' : not available as an intrinsic function
C:\WINDDK\3790~1.183\inc\ddk\wnet\ntddk.h(8761) : warning C4163: '_InterlockedCompareExchange_StupidDDKVsCompilerCrap' : not available as an intrinsic function
C:\WINDDK\3790~1.183\inc\ddk\wnet\ntddk.h(14841) : warning C4163: '_InterlockedAddLargeStatistic_StupidDDKVsCompilerCrap' : not available as an intrinsic function
SUPR0IdcClient-win.c
D:/Sergey/++Projects/vbox/kBuild/bin/win.x86/kmk_redirect.exe -E 'PYTHONPATH=D:/Sergey/++Projects/vbox/src/VBox/GuestHost/OpenGL/glapi_parser;D:/Sergey/++Projects/vbox/src/VBox/GuestHost/OpenGL/packer;D:/Sergey/++Projects/vbox/src/VBox/HostServices/SharedOpenGL/crserverlib' -o D:/Sergey/++Projects/vbox/out/win.x86/release/obj/VBoxOGLgen/spu_dispatch_table.h  -- python-not-found.exe D:/Sergey/++Projects/vbox/src/VBox/GuestHost/OpenGL/spu_loader/dispatchheader.py D:/Sergey/++Projects/vbox/src/VBox/GuestHost/OpenGL/glapi_parser
kmk_redirect.exe: error: _spawnvp(_P_WAIT, "python-not-found.exe", ...) failed: No such file or directory
kmk.exe[2]: *** [D:/Sergey/++Projects/vbox/out/win.x86/release/obj/VBoxOGLgen/spu_dispatch_table.h] Error 1
kmk.exe[2]: *** Deleting file `D:/Sergey/++Projects/vbox/out/win.x86/release/obj/VBoxOGLgen/spu_dispatch_table.h'
kmk.exe[2]: *** Waiting for unfinished jobs....
C:\WINDDK\3790~1.183\inc\ddk\wnet\ntddk.h(8678) : warning C4163: '_InterlockedExchange_StupidDDKVsCompilerCrap' : not available as an intrinsic function
C:\WINDDK\3790~1.183\inc\ddk\wnet\ntddk.h(8731) : warning C4163: '_InterlockedExchangeAdd_StupidDDKVsCompilerCrap' : not available as an intrinsic function
C:\WINDDK\3790~1.183\inc\ddk\wnet\ntddk.h(8761) : warning C4163: '_InterlockedCompareExchange_StupidDDKVsCompilerCrap' : not available as an intrinsic function
C:\WINDDK\3790~1.183\inc\ddk\wnet\ntddk.h(14841) : warning C4163: '_InterlockedAddLargeStatistic_StupidDDKVsCompilerCrap' : not available as an intrinsic function
kmk.exe[2]: Leaving directory `D:/Sergey/++Projects/vbox'
kmk.exe[2]: Entering directory `D:/Sergey/++Projects/vbox'
kmk.exe[2]: *** Exiting with status 2
kmk.exe[1]: *** [pass_libraries_this] Error 2
kmk.exe[1]: Leaving directory `D:/Sergey/++Projects/vbox'
kmk: *** [pass_libraries_order] Error 2


Firstly I decided that it needs Python and installed it, but that didn't help.
I also noticed that if I perform build process without cleaning I get following error:

Code: Select all   Expand viewCollapse view
kBuild: Linking RuntimeR3NoCRTGCC
++Syntax error in archive script, line 1
++D:\Sergey\++Projects\vbox\tools\win.x86\mingw32\v3.3.3\bin\ar.exe: can't openfile Projects/vbox/out/win.x86/release/obj/RuntimeR3NoCRTGCC/common/misc/sanity-cpp.o
kmk.exe[2]: *** [D:/Sergey/++Projects/vbox/out/win.x86/release/obj/RuntimeR3NoCRTGCC/RuntimeR3NoCRTGCC.lib] Error 9
The failing command:
@D:/Sergey/++Projects/vbox/tools/win.x86/mingw32/v3.3.3/bin/ar.exe -M < D:/Sergey/++Projects/vbox/out/win.x86/release/obj/RuntimeR3NoCRTGCC/RuntimeR3NoCRTGCC.lib.ar-script
kmk.exe[2]: *** [D:/Sergey/++Projects/vbox/out/win.x86/release/obj/RuntimeR3NoCRTGCC/RuntimeR3NoCRTGCC.lib] Deleting file `D:/Sergey/++Projects/vbox/out/win.x86/release/obj/RuntimeR3NoCRTGCC/RuntimeR3NoCRTGCC.lib.ar-script'
kmk.exe[2]: *** Waiting for unfinished jobs....
kmk.exe[2]: Leaving directory `D:/Sergey/++Projects/vbox'
kmk.exe[2]: Entering directory `D:/Sergey/++Projects/vbox'
kmk.exe[2]: *** Exiting with status 2
kmk.exe[1]: *** [pass_libraries_this] Error 2
kmk.exe[1]: Leaving directory `D:/Sergey/++Projects/vbox'
kmk: *** [pass_libraries_order] Error 2


Here is my AutoConfig.kmk:
Code: Select all   Expand viewCollapse view
# -*- Makefile -*-
#
# Build configuration generated by cscript configure.vbs --with-MinGW=tools\win.x86\mingw32\v3.3.3 --with-libSDL=tools\win.x86\libsdl\v1.2.13 --with-Qt4=tools\win.x86\qt\v4.4.3 --with-W32API=tools\win.x86\w32api\v3.13
#
VBOX_OSE := 1
VBOX_USE_VCC80        := 1
PATH_TOOL_VCC80       := C:/PROGRA~1/MICROS~3/VC
PATH_TOOL_VCC80X86     = $(PATH_TOOL_VCC80)
PATH_TOOL_VCC80AMD64   = $(PATH_TOOL_VCC80)
PATH_SDK_WINPSDK      := C:/PROGRA~1/MI9547~1
PATH_SDK_WINPSDKINCS   = $(PATH_SDK_WINPSDK)
PATH_SDK_WIN32SDK      = $(PATH_SDK_WINPSDK)
PATH_SDK_WIN64SDK      = $(PATH_SDK_WINPSDK)
PATH_SDK_W2K3DDK      := C:/WINDDK/3790~1.183
PATH_SDK_W2K3DDKX86    = $(PATH_SDK_W2K3DDK)
PATH_SDK_W2K3DDKAMD64  = $(PATH_SDK_W2K3DDK)
MAIN_IDL = C:/PROGRA~1/MI9547~1/bin/Midl.exe
PATH_SDK_DXSDK        := C:/PROGRA~1/MI22C6~1
PATH_SDK_DXSDKX86      = $(PATH_SDK_DXSDK)
PATH_SDK_DXSDKAMD64    = $(PATH_SDK_DXSDK)
PATH_TOOL_MINGW32     := D:/Sergey/++Projects/vbox/tools/win.x86/mingw32/v3.3.3
PATH_SDK_W32API        = tools\win.x86\w32api\v3.13
PATH_SDK_LIBSDL       := D:/Sergey/++Projects/vbox/tools/win.x86/libsdl/v1.2.13
PATH_SDK_QT4          := tools/win.x86/qt/v4.4.3
PATH_TOOL_QT4          = $(PATH_SDK_QT4)
VBOX_PATH_QT4          = $(PATH_SDK_QT4)
rryk
 
Posts: 8
Joined: 6. Mar 2009, 02:50

Next

Return to VirtualBox OSE

Who is online

Users browsing this forum: No registered users and 2 guests