[vbox-dev] Build fails on OSX 10.8 (Mountain Lion)
simon.vetter at gmx.com
Thu Feb 21 16:51:36 PST 2013
has anyone managed to build virtualbox on MacOSX 10.8 (Mountain Lion)?
The build scripts tend to have the 10.6 SDK hardcoded in multiple places, but symlinking /Developer/SDKs/MacOSX10.6.sdk to /Applications/Xcode.app//Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk (where the SDK is in newer versions of OSX) as suggested in one forum post did the trick and allowed me to go pretty far in the compile process.
I'm still getting an error though. It looks like the PVM type is not defined anywhere.
This is the error that i'm getting :
In file included from /Users/svetter/code/vbox/VirtualBox-4.2.6/include/VBox/vmm/pdm.h:29,
/Users/svetter/code/vbox/VirtualBox-4.2.6/include/VBox/vmm/pdmapi.h:44: error: expected `)' before ‘pVM’
/Users/svetter/code/vbox/VirtualBox-4.2.6/include/VBox/vmm/pdmapi.h:44: error: expected primary-expression before ‘u8Irq’
/Users/svetter/code/vbox/VirtualBox-4.2.6/include/VBox/vmm/pdmapi.h:44: error: expected primary-expression before ‘u8Level’
/Users/svetter/code/vbox/VirtualBox-4.2.6/include/VBox/vmm/pdmapi.h:44: error: expected primary-expression before ‘uTagSrc’
/Users/svetter/code/vbox/VirtualBox-4.2.6/include/VBox/vmm/pdmapi.h:44: error: initializer expression list treated as compound expression
/Users/svetter/code/vbox/VirtualBox-4.2.6/include/VBox/vmm/pdmapi.h:45: warning: ‘PDMIoApicSetIrq’ initialized and declared ‘extern’
/Users/svetter/code/vbox/VirtualBox-4.2.6/include/VBox/vmm/pdmapi.h:45: error: expected `)' before ‘pVM’
The line in question is (from pdmapi.h)
VMMDECL(int) PDMIsaSetIrq(PVM pVM, uint8_t u8Irq, uint8_t u8Level, uint32_t uTagSrc);
Could anyone shed some light on what PVM is and what file I should include to solve this?
I am using xcode 4.6 on OSX 10.8.2 (latest version, 64 bit), with the xcode console tools installed.
The GCC version I am using is 4.2.1 (gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)).
Configure line : ./configure --out-path=/Users/svetter/code/compiled/ --target-arch=amd64 --disable-xpcom --disable-python --disable-java --disable-docs --disable-hardening
I have tried building with --disable-vmmraw as well, to no avail.
Thanks in advance,
More information about the vbox-dev