building a new VM from scratch on osx

classic Classic list List threaded Threaded
3 messages Options
Camillo Bruni Camillo Bruni
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

building a new VM from scratch on osx


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?
Igor Stasenko Igor Stasenko
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: building a new VM from scratch on osx


On 18 January 2012 17:32, Camillo Bruni <[hidden email]> wrote:

>
> 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
>

hmm... are you sure about setting CC? if i remember it was begin to
work only after you set
CMAKE_C_COMPILER or something like that.

> ....
>
> [ 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?

no. Esteban?

--
Best regards,
Igor Stasenko.
Camillo Bruni Camillo Bruni
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: building a new VM from scratch on osx



On 2012-01-19, at 00:17, Igor Stasenko wrote:

>
> On 18 January 2012 17:32, Camillo Bruni <[hidden email]> wrote:
>>
>> 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
>>
>
> hmm... are you sure about setting CC? if i remember it was begin to
> work only after you set
> CMAKE_C_COMPILER or something like that.

I see gcc popping up when I compile everything, though might not harm to set another ENV var :P
let's try then

>> ....
>>
>> [ 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?
>
> no. Esteban?
>
> --
> Best regards,
> Igor Stasenko.

Loading...