- Read VirtualBox Manual absolutely
- Build and install kBuild on NetBSD with some problems
- Build and install VirtualBox on FreeBSD(doing now)
Read over the entire VirtualBox Manual and begin to do the actual things.
Following the comments from Ushakov in Melange site, I checkout source from kBuild SVN. With patch Ushakov provided, firstly I found that the patch is out of date and the newest version is exist. I had to checkout the version which the patch specified, but it still failed on some changes. I forced to bootstrap it and unfortunately still build failed.
I had to choose the pkgsrc provided version and it seemed run successfully. After install all needed packages that “configure” script detected, I successfully run “./configure” but run “kmk all” failed. The error log shows below:
Makefile.kmk:19 /root/kbuild/kBuild/subheader.kmk: No such file or directory Makefile.kmk:27 /src/Makefile.kmk: No such file or directory Makefile.kmk:164 /root/kbuild/kBuild/tools/ZIP.kmk: No such file or directory kmk: *** No rule to make target '/root/kbuild/kBuild/tools/ZIP.kmk'. Stop.
Because of the abjective startup, I think I should try it on FreeBSD. Maybe I will get some useful information and inspiration from it. Another reason is FreeBSD provided with plenty of document about building VirtualBox on FreeBSD. Although emulators/virtualbox-ose-legacy port is already exist, I still tried to fetch source. Following the FreeBSD build instructions, I did “kmk all” instruction and also failed.(Oh my god!) It seems that the library crypto isn’t linked and I don’t know why.
- Try to solve problems above