[Vm-dev] building a new VM from scratch on osx

Camillo Bruni camillo.bruni at inria.fr
Wed Jan 18 16:32:22 UTC 2012


I am currently trying to get a decent HOWTO file ready for the VM repos.
However trying to build the VM under OS X 10.7.2 with the latest sources from git://gitorious.org/cogvm/blessed.git I fail on the following code...


cd build
export CC='/usr/bin/gcc-4.2'
cmake .
make

....

[ 55%] Building CXX object CMakeFiles/CogVM.dir/Users/cami-data/education/phd/project/cog/blessed/platforms/Mac_OS/vm/NSCursorWrappers.m.o
...
In file included from /Users/cami-data/education/phd/project/cog/blessed/platforms/Mac OS/vm/NSCursorWrappers.m:44:
/Users/cami-data/education/phd/project/cog/blessed/platforms/Mac OS/vm/sqMacNSPluginUILogic2.h:18: error: expected ‘)’ before ‘*’ token
/Users/cami-data/education/phd/project/cog/blessed/platforms/Mac OS/vm/NSCursorWrappers.m:52: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘macCursor’
/Users/cami-data/education/phd/project/cog/blessed/platforms/Mac OS/vm/NSCursorWrappers.m: In function ‘SetCursorBackToSomething’:
/Users/cami-data/education/phd/project/cog/blessed/platforms/Mac OS/vm/NSCursorWrappers.m:59: warning: implicit declaration of function ‘SetCursor’
/Users/cami-data/education/phd/project/cog/blessed/platforms/Mac OS/vm/NSCursorWrappers.m:59: error: ‘macCursor’ undeclared (first use in this function)
/Users/cami-data/education/phd/project/cog/blessed/platforms/Mac OS/vm/NSCursorWrappers.m:59: error: (Each undeclared identifier is reported only once
/Users/cami-data/education/phd/project/cog/blessed/platforms/Mac OS/vm/NSCursorWrappers.m:59: error: for each function it appears in.)
/Users/cami-data/education/phd/project/cog/blessed/platforms/Mac OS/vm/NSCursorWrappers.m: In function ‘ioSetCursorARGB’:
/Users/cami-data/education/phd/project/cog/blessed/platforms/Mac OS/vm/NSCursorWrappers.m:98: warning: passing argument 1 of ‘getBitmapDataPlanes:’ from incompatible pointer type
make[2]: *** [CMakeFiles/CogVM.dir/Users/cami-data/education/phd/project/cog/blessed/platforms/Mac_OS/vm/NSCursorWrappers.m.o] Error 1
make[1]: *** [CMakeFiles/CogVM.dir/all] Error 2


it seems like 'Cursor' is nowhere defined...

any ideas?


More information about the Vm-dev mailing list