Builder virtualbox 4.3.28 on windows failed

Discussions related to using the OSE version of VirtualBox.
Post Reply
hugolau
Posts: 5
Joined: 20. Jul 2015, 07:56

Builder virtualbox 4.3.28 on windows failed

Post by hugolau »

i builder virtualbox on windows 7(32bit).
How to fix this problem, error message:

Code: Select all

cscript configure.vbs --with-MinGW32=E:\vbe\x86\mingw  --with-libSDL=E:\vbe\x86\SDL-1.2.15 --with-openssl=E:\vbe\x86\openssl-0.9.8zg --with-libcurl=E:\vbe\x86\cul-dll --with-Qt4=E:\vbe\Qt\4.8.6 --with-VC-Express-Edition
.....

Checking for libcurl...
 Found libcurl: E:/vbe/x86/curl-dll
Checking for Qt4...
 Found Qt4 : E:/vbe/Qt/4.8.6

Execute env.bat once before you start to build VBox:

  env.bat
  kmk

E:\vbe\src\VirtualBox-4.3.28>env

E:\vbe\src\VirtualBox-4.3.28>kmk
Config.kmk:2467: E:/vbe/src/VirtualBox-4.3.28/out/win.x86/release/DynamicConfig.kmk: No such file or directory
Config.kmk:2722: *** You need to enable code signing for a hardened windows build to work..  Stop.
noteirak
Site Moderator
Posts: 5229
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: Builder virtualbox 4.3.28 on windows failed

Post by noteirak »

Moved to "VirtualBox OSE"
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
mhanor
Volunteer
Posts: 321
Joined: 7. Oct 2009, 12:40
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: various

Re: Builder virtualbox 4.3.28 on windows failed

Post by mhanor »

The easiest way for you is to disable VirtualBox hardening, by creating or editing LocalConfig.kmk and adding a new line containing:

Code: Select all

VBOX_WITH_HARDENING :=
hugolau
Posts: 5
Joined: 20. Jul 2015, 07:56

Re: Builder virtualbox 4.3.28 on windows failed

Post by hugolau »

Thanks for your reply, but I've met a new problem.

Code: Select all

E:\vbe\src\VirtualBox-4.3.30\src\VBox\Additions\WINNT\VBoxMMR\tsmfhook.cpp(466)
: warning C4800: 'BOOL' : forcing value to bool 'true' or 'false' (performance warning)
E:\vbe\src\VirtualBox-4.3.30\src\VBox\Additions\WINNT\VBoxMMR\tsmfhook.cpp(476)
: warning C4800: 'BOOL' : forcing value to bool 'true' or 'false' (performance warning)
kBuild: Compiling VBoxRemPrimary - E:/vbe/src/VirtualBox-4.3.30/src/recompiler/cpu-exec.c
kBuild: Compiling VBoxRemPrimary - E:/vbe/src/VirtualBox-4.3.30/src/recompiler/exec.c
kBuild: Compiling VBoxRemPrimary - E:/vbe/src/VirtualBox-4.3.30/src/recompiler/translate-all.c
In file included from E:/vbe/src/VirtualBox-4.3.30/include/VBox/vusb.h:32,
                 from E:/vbe/src/VirtualBox-4.3.30/include/VBox/vmm/pdmusb.h:40,
                 from E:/vbe/src/VirtualBox-4.3.30/include/VBox/vmm/pdm.h:37,
                 from E:/vbe/src/VirtualBox-4.3.30/src/recompiler/VBoxRecompiler.c:39:
E:/vbe/src/VirtualBox-4.3.30/include/iprt/queueatomic.h: In function `RTQueueAtomicInit':
E:/vbe/src/VirtualBox-4.3.30/include/iprt/queueatomic.h:72: warning: initialization discards qualifiers from pointer target type
kBuild: Compiling VBoxRemPrimary - E:/vbe/src/VirtualBox-4.3.30/src/recompiler/host-utils.c
kBuild: Compiling VBoxRemPrimary - E:/vbe/src/VirtualBox-4.3.30/src/recompiler/cutils.c
kBuild: Compiling VBoxRemPrimary - E:/vbe/src/VirtualBox-4.3.30/src/recompiler/tcg-runtime.c
kBuild: Compiling VBoxRemPrimary - E:/vbe/src/VirtualBox-4.3.30/src/recompiler/tcg/tcg.c
kBuild: Compiling VBoxRemPrimary - E:/vbe/src/VirtualBox-4.3.30/src/recompiler/tcg/tcg-dyngen.c
kBuild: Compiling VBoxRemPrimary - E:/vbe/src/VirtualBox-4.3.30/src/recompiler/fpu/softfloat-native.c
kBuild: Compiling VBoxRemPrimary - E:/vbe/src/VirtualBox-4.3.30/src/recompiler/target-i386/op_helper.c
kBuild: Compiling VBoxRemPrimary - E:/vbe/src/VirtualBox-4.3.30/src/recompiler/target-i386/helper.c
kBuild: Compiling VBoxRemPrimary - E:/vbe/src/VirtualBox-4.3.30/src/recompiler/target-i386/translate.c
kBuild: Generating E:/vbe/src/VirtualBox-4.3.30/out/win.x86/release/obj/VBoxREMImp/VBoxREMRes.o
E:/vbe/src/VirtualBox-4.3.30/src/recompiler/tcg/tcg.c: In function `tcg_dump_ops':
E:/vbe/src/VirtualBox-4.3.30/src/recompiler/tcg/tcg.c:861: warning: unused variable `buf'
kmk_redirect.exe: error: _spawnvp(_P_WAIT, "windres", ...) failed: No such fileor directory
kmk: *** [E:/vbe/src/VirtualBox-4.3.30/out/win.x86/release/obj/VBoxREMImp/VBoxREMRes.o] Error 1
kmk: *** Waiting for unfinished jobs....
E:/vbe/src/VirtualBox-4.3.30/src/recompiler/target-i386/op_helper.c: In function `helper_vmrun':
E:/vbe/src/VirtualBox-4.3.30/src/recompiler/target-i386/op_helper.c:6541: warning: unused variable `valid_err'
kmk: *** Exiting with status 2
NTI
Posts: 21
Joined: 23. Jul 2015, 12:35

Re: Builder virtualbox 4.3.28 on windows failed

Post by NTI »

I've got the same problem of enabling code signing for a hardened windows build when building VBox5.0.0 on Win7.

I can't find a LocalConfig.kmk file locally, so just created one with only a line in it - " VBOX_HARDENING := ". But it doesn't seem to make any difference.

Any idea?
mhanor
Volunteer
Posts: 321
Joined: 7. Oct 2009, 12:40
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: various

Re: Builder virtualbox 4.3.28 on windows failed

Post by mhanor »

hugolau, you need to have windres in the path, check the mingw path.
NTI, it's VBOX_WITH_HARDENING, not VBOX_HARDENING
NTI
Posts: 21
Joined: 23. Jul 2015, 12:35

Re: Builder virtualbox 4.3.28 on windows failed

Post by NTI »

Thanks mhanor! I got it wrong.
hugolau
Posts: 5
Joined: 20. Jul 2015, 07:56

Re: Builder virtualbox 4.3.28 on windows failed

Post by hugolau »

mhanor, thanks for you reply, i cheked mingw path, here is result.

Code: Select all

E:\vbe\x86\mingw>tree
Folder PATH listing
Volume serial number is 000C-B4BB
E:.
├───bin
├───doc
│   └───mingw-runtime
├───include
│   ├───c++
│   │   └───3.3.3
│   │       ├───backward
│   │       ├───bits
│   │       ├───ext
│   │       └───mingw32
│   │           └───bits
│   ├───ddk
│   ├───GL
│   └───sys
├───info
├───lib
│   └───gcc-lib
│       └───mingw32
│           └───3.3.3
│               ├───include
│               └───install-tools
│                   └───include
├───man
│   ├───man1
│   └───man7
└───mingw32
    ├───bin
    └───lib
        └───ldscripts

E:\vbe\x86\mingw>bin\windres -V
GNU windres 2.13.90 20021005
Copyright 2002 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.

mhanor
Volunteer
Posts: 321
Joined: 7. Oct 2009, 12:40
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: various

Re: Builder virtualbox 4.3.28 on windows failed

Post by mhanor »

hugolau, set the PATH_TOOL_MINGW32 variable in LocalConfig.kmk

Code: Select all

PATH_TOOL_MINGW32 := E:/vbe/x86/mingw
hugolau
Posts: 5
Joined: 20. Jul 2015, 07:56

Re: Builder virtualbox 4.3.28 on windows failed

Post by hugolau »

hi,mhanor:
i set the PATH_TOOL_MINGW32 variable in LocalConfig.kmk but the problem is still not resolved
search forums found the post:
viewtopic.php?f=10&t=67605&p=320569&hil ... es#p323433
then add

Code: Select all

TOOL_MINGWW64_PREFIX = E:/vbe/x86/mingw/bin/
in file "src/recompiler/Makefile.kmk"

builder successfully.

Thank you for help me solved this problem, Thank you very much.
NTI
Posts: 21
Joined: 23. Jul 2015, 12:35

Re: Builder virtualbox 4.3.28 on windows failed

Post by NTI »

Hi hugolau

May I ask how you built QT4? Can you find VBoxQtCore4.lib, QtCoreVBox4.lib, VBoxQtNetwork4.lib, and QtNetworkVBox4.lib under your QT's lib folder after building it? I can't get those libs required by VBox at all.

Many thanks!
hugolau
Posts: 5
Joined: 20. Jul 2015, 07:56

Re: Builder virtualbox 4.3.28 on windows failed

Post by hugolau »

NTI, i did not build QT. download qt lib form here
https://download.qt.io/archive/qt/4.8/4 ... mirrorlist
Post Reply