Build source code on Ubuntu for Windows (KBUILD_TARGET=win)

Discussions related to using the OSE version of VirtualBox.
Post Reply
hungpmtin44
Posts: 7
Joined: 10. Mar 2024, 16:10

Build source code on Ubuntu for Windows (KBUILD_TARGET=win)

Post by hungpmtin44 »

On Ubuntu I have run command (build success):

Code: Select all

./configure --disable-hardening
source ./env.sh
kmk
cd out/linux.x86/release/bin/src
make
sudo make install
But i want to build for Windows with bellow command (faild):

Code: Select all

./configure --disable-hardening
source ./env.sh
kmk KBUILD_TARGET=win
Error:

Code: Select all

/src/bldprogs/VBoxPeSetVersion.cpp:61:5: error: ‘_vsnprintf’ was not declared in this scope; did you mean ‘vsnprintf’?
/VBoxPeSetVersion.cpp:94:67: error: ‘errno’ was not declared in this scope
/VBoxPeSetVersion.cpp:41:1: note: ‘errno’ is defined in header ‘<cerrno>’; did you forget to ‘#include <cerrno>’?
...
Please help me, thank
Post Reply