Builder virtualbox 4.3.28 on windows failed

Discussions related to using the OSE version of VirtualBox.

Builder virtualbox 4.3.28 on windows failed

Postby hugolau » 20. Jul 2015, 08:01

i builder virtualbox on windows 7(32bit).
How to fix this problem, error message:
Code: Select all   Expand viewCollapse view
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.
hugolau
 
Posts: 5
Joined: 20. Jul 2015, 07:56

Re: Builder virtualbox 4.3.28 on windows failed

Postby noteirak » 20. Jul 2015, 15:19

Moved to "VirtualBox OSE"
Hyperbox - Virtual Infrastructure Manager - https://kamax.io/hbox/
Manage your VirtualBox infrastructure the free way!
noteirak
Site Moderator
 
Posts: 5198
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7

Re: Builder virtualbox 4.3.28 on windows failed

Postby mhanor » 21. Jul 2015, 09:58

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   Expand viewCollapse view
VBOX_WITH_HARDENING :=
mhanor
Volunteer
 
Posts: 317
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

Postby hugolau » 23. Jul 2015, 12:00

Thanks for your reply, but I've met a new problem.
Code: Select all   Expand viewCollapse view
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
hugolau
 
Posts: 5
Joined: 20. Jul 2015, 07:56

Re: Builder virtualbox 4.3.28 on windows failed

Postby NTI » 23. Jul 2015, 12:38

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?
NTI
 
Posts: 21
Joined: 23. Jul 2015, 12:35

Re: Builder virtualbox 4.3.28 on windows failed

Postby mhanor » 23. Jul 2015, 16:09

hugolau, you need to have windres in the path, check the mingw path.
NTI, it's VBOX_WITH_HARDENING, not VBOX_HARDENING
mhanor
Volunteer
 
Posts: 317
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

Postby NTI » 23. Jul 2015, 17:30

Thanks mhanor! I got it wrong.
NTI
 
Posts: 21
Joined: 23. Jul 2015, 12:35

Re: Builder virtualbox 4.3.28 on windows failed

Postby hugolau » 24. Jul 2015, 05:49

mhanor, thanks for you reply, i cheked mingw path, here is result.
Code: Select all   Expand viewCollapse view
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.

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

Re: Builder virtualbox 4.3.28 on windows failed

Postby mhanor » 24. Jul 2015, 08:51

hugolau, set the PATH_TOOL_MINGW32 variable in LocalConfig.kmk
Code: Select all   Expand viewCollapse view
PATH_TOOL_MINGW32 := E:/vbe/x86/mingw
mhanor
Volunteer
 
Posts: 317
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

Postby hugolau » 27. Jul 2015, 11:40

hi,mhanor:
i set the PATH_TOOL_MINGW32 variable in LocalConfig.kmk but the problem is still not resolved
search forums found the post:
https://forums.virtualbox.org/viewtopic ... es#p323433
then add
Code: Select all   Expand viewCollapse view
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.
hugolau
 
Posts: 5
Joined: 20. Jul 2015, 07:56

Re: Builder virtualbox 4.3.28 on windows failed

Postby NTI » 29. Jul 2015, 13:17

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!
NTI
 
Posts: 21
Joined: 23. Jul 2015, 12:35

Re: Builder virtualbox 4.3.28 on windows failed

Postby hugolau » 30. Jul 2015, 07:27

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


Return to VirtualBox OSE

Who is online

Users browsing this forum: No registered users and 2 guests