Build from source where HOST is Linux and TARGET is Windows

Discussions related to using the OSE version of VirtualBox.
Post Reply
wytmoon
Posts: 8
Joined: 10. Dec 2012, 07:17

Build from source where HOST is Linux and TARGET is Windows

Post by wytmoon »

Hi,

I can build from source in Ubuntu 12.04 for Linux targets but I was wondering if I can also build from Ubuntu 12.04 for Windows ( 7 or 8 ) targets?
Is it possible or can I only build Windows targets under Windows hosts?

Thanks for the help
wytmoon
Posts: 8
Joined: 10. Dec 2012, 07:17

Re: Build from source where HOST is Linux and TARGET is Wind

Post by wytmoon »

Ok. I decided to build VBox on my Win 7 env instead. I followed the build instructions for Windows and started building the source using "cscript configure.vbs".
The following is the build log from VirtualBox and it seems I get stuck on a "Microsoft VBScript runtime error"

C:\Users\wytmoon\Documents\Research\Virtual Box\VirtualBox-4.2.4>cscript configure.vbs --with-MinGW32=C:\MinGW
Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation. All rights reserved.

Shell inheritance test: OK
Source path: OK
Checking for kBuild...
Found kBuild: C:/Users/wytmoon/Documents/Research/VIRTUA~1/VirtualBox-4.2.4/kBuild (C:/Users/wytmoon/Documents/Research/Virtual Box/VirtualBox-4.2.4/kBuild)
Found kBuild binaries: C:/Users/wytmoon/Documents/Research/VIRTUA~1/VirtualBox-4.2.4/kBuild/bin/win.x86 (C:/Users/wytmoon/Documents/Research/Virtual Box/VirtualBox-4.2.4/kBuild/bin/win.x86)
Checking for Windows DDK v7.1...
Found Windows DDK v7.1: C:/WinDDK/7600.16385.1
Checking for Visual C++...
Found Visual C++ v10 with DDK ATL: C:/PROGRA~1/MICROS~1.0/VC (C:/Program Files/Microsoft Visual Studio 10.0/VC)
Checking for Windows Platform SDK (recent)...
Found Windows Platform SDK (v71): C:/PROGRA~1/MIA713~1/Windows/v7.1 (C:/Program Files/Microsoft SDKs/Windows/v7.1)
Checking for Midl.exe...
Found Midl.exe: C:/PROGRA~1/MIA713~1/Windows/v7.1/bin/Midl.exe (C:/Program Files/Microsoft SDKs/Windows/v7.1/Bin/Midl.exe)
Checking for MinGW32 GCC v3.3.x + Binutils + Runtime + W32API...
C:\Users\wytmoon\Documents\Research\Virtual Box\VirtualBox-4.2.4\configure.vbs(1507, 16) Microsoft VBScript runtime error: Type mismatch: '[string: "2 Copyright"]'

I checked line 1507 of configure.vbs but there is no such thing as "2 Copyright" there.
Can someone help me with building for Windows 7?

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

Re: Build from source where HOST is Linux and TARGET is Wind

Post by mhanor »

The vbs script is incorrectly parsing the output from the mingw compiler. You can comment out the whole section that parses and compares the mingw version string.
lijack
Posts: 3
Joined: 16. Dec 2012, 04:14

Re: Build from source where HOST is Linux and TARGET is Wind

Post by lijack »

may be you could execute configure.vbs on windows xp or Create a new file(AutoConfig.kmk) in accordance with the format like
# -*- Makefile -*-
#
# Build configuration generated by cscript configure.vbs --with-DDK=C:\WinDDK\7600.16385.1 --with-libSDL=*:\SDL-1.2.14 --with-MinGW32=*:\mingw --with-Qt4=*:\Qt\4.8.0 "--with-SDK=C:\Program Files\Microsoft SDKs\Windows\v7.1" --with-python=*:\Python26 --with-openssl=*:\openssl --with-libcurl=*:\libcurl
#
VBOX_OSE := 1
PATH_SDK_WINDDK71 := C:/WinDDK/7600.16385.1
VBOX_WITH_WDDM_W8 :=
PATH_TOOL_VCC100 := C:/PROGRA~1/MICROS~2.0/VC
PATH_TOOL_VCC100X86 := $(PATH_TOOL_VCC100)
PATH_TOOL_VCC100AMD64 := $(PATH_TOOL_VCC100)
PATH_SDK_WINPSDK71 := C:/PROGRA~1/MIA713~1/Windows/v7.1
VBOX_WINPSDK := WINPSDK71
VBOX_MAIN_IDL := C:/PROGRA~1/MIA713~1/Windows/v7.1/bin/Midl.exe
PATH_TOOL_MINGW32 := *:/mingw
PATH_SDK_W32API := *:\mingw
VBOX_WITH_OPEN_WATCOM :=
PATH_SDK_LIBSDL := *:/sdl
SDK_VBOX_OPENSSL_INCS := *:/openssl/include
SDK_VBOX_OPENSSL_LIBS := *:/openssl/lib/ssleay32.lib H:/tools/openssl/lib/libeay32.lib
SDK_VBOX_BLD_OPENSSL_LIBS := *:/openssl/lib/ssleay32.lib H:/tools/openssl/lib/libeay32.lib
SDK_VBOX_LIBCURL_INCS := *:/libcurl/include
SDK_VBOX_LIBCURL_LIBS := *:/libcurl/libcurl.lib
PATH_SDK_QT4 := *:/Qt4.8.3
PATH_TOOL_QT4 := $(PATH_SDK_QT4)
VBOX_PATH_QT4 := $(PATH_SDK_QT4)
VBOX_BLD_PYTHON := *:/Python26/python.exe
VBOX_GSOAP_INSTALLED = 1
VBOX_PATH_GSOAP := *:/gsoap-2.8/gsoap
VBOX_PATH_GSOAP_BIN := $(VBOX_PATH_GSOAP)/bin/win32
PATH_SDK_WINDDK := C:/WinDDK/7600.16385.1
xuchao
Posts: 15
Joined: 20. Oct 2013, 16:15

Re: Build from source where HOST is Linux and TARGET is Wind

Post by xuchao »

i hava the same problem .How did you sovle it at last?
Post Reply