[Vm-dev] Building Cog on Mac Lion

Esteban Lorenzano estebanlm at gmail.com
Mon Dec 5 12:06:31 UTC 2011


Hi Sean, 
I'm building it. All that problems (well, not freetype building, who works fine for me) where fixed in cog-osx and blessed branchs of gitorious (not in svn, I still didn't figure out how to re-send the changes to svn :( )
all of this, of course, with cocoa builds, not carbon

cheers,
Esteban


El 05/12/2011, a las 4:38a.m., Sean P. DeNigris escribió:

> 
> Has anyone successfully done this? I spent several hours tonight and couldn't
> quite get there...
> 
> I started with the files and build scripts from jenkins (cog.tar.gz and
> vmmaker-image.zip) and this is what I found:
> 
> * Carbon Jit - after manually adjusting some "AGL/gl.h"s to "OpenGl/gl.h"s,
> and defining "useTempMem (1L << 2)", it stopped at 53% (see [1] below)
> 
> * Cocoa Jit
>  - with FT2Plugin via make, stopped at 99% while building free type library
> (see [2] below)
> 
> * Without FT2 via make, builds, but immediately fails when an image is
> opened, no dump
> 
> * cmake -G Xcode with FT2 same as above
> 
> [1]
> 
> 
>> /Developer/cog_xcode/platforms/Mac OS/vm/sqMacNSPluginUILogic2.h:18:
>> error: expected ‘)’ before ‘*’ token
>> /Developer/cog_xcode/platforms/Mac OS/vm/NSCursorWrappers.m:52: error:
>> expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘macCursor’
>> /Developer/cog_xcode/platforms/Mac OS/vm/NSCursorWrappers.m: In function
>> ‘SetCursorBackToSomething’:
>> /Developer/cog_xcode/platforms/Mac OS/vm/NSCursorWrappers.m:59: warning:
>> implicit declaration of function ‘SetCursor’
>> /Developer/cog_xcode/platforms/Mac OS/vm/NSCursorWrappers.m:59: error:
>> ‘macCursor’ undeclared (first use in this function)
>> /Developer/cog_xcode/platforms/Mac OS/vm/NSCursorWrappers.m:59: error:
>> (Each undeclared identifier is reported only once
>> /Developer/cog_xcode/platforms/Mac OS/vm/NSCursorWrappers.m:59: error: for
>> each function it appears in.)
>> 
> 
> [2]
> 
> 
>> [ 99%] Building freetype library
>> Cloning into freetype2...
>> remote: Counting objects: 42449, done.
>> remote: Compressing objects: 100% (7719/7719), done.
>> remote: Total 42449 (delta 34919), reused 41796 (delta 34438)
>> Receiving objects: 100% (42449/42449), 11.63 MiB | 1.31 MiB/s, done.
>> Resolving deltas: 100% (34919/34919), done.
>> Note: checking out 'VER-2-4-4'.
>> 
>> You are in 'detached HEAD' state. You can look around, make experimental
>> changes and commit them, and you can discard any commits you make in this
>> state without impacting any branches by performing another checkout.
>> 
>> If you want to create a new branch to retain commits you create, you may
>> do so (now or later) by using -b with the checkout command again. Example:
>> 
>>  git checkout -b new_branch_name
>> 
>> HEAD is now at 9ec31ce... * Version 2.4.4 released.
>> =========================
>> ERROR: Your version of the `aclocal' tool is too old.
>>       Minimum version 1.10.1 is required (yours is version 1.10).
>>       Please upgrade or use the ACLOCAL variable to point to a more
>> recent one.
>> 
>> 
>> FreeType build system -- automatic system detection
>> 
>> The following settings are used:
>> 
>>  platform                    unix
>>  compiler                    cc
>>  configuration directory     ./builds/unix
>>  configuration rules         ./builds/unix/unix.mk
>> 
>> If this does not correspond to your system or settings please remove the
>> file
>> `config.mk' from this directory then read the INSTALL file for help.
>> 
>> Otherwise, simply type `make' again to build the library,
>> or `make refdoc' to build the API reference (the latter needs python).
>> 
>> Generating modules list in ./objs/ftmodule.h...
>> * module: truetype  (Windows/Mac font files with extension *.ttf or *.ttc)
>> * module: type1     (Postscript font files with extension *.pfa or *.pfb)
>> * module: cff       (OpenType fonts with extension *.otf)
>> * module: cid       (Postscript CID-keyed fonts, no known extension)
>> * module: pfr       (PFR/TrueDoc font files with extension *.pfr)
>> * module: type42    (Type 42 font files with no known extension)
>> * module: winfnt    (Windows bitmap fonts with extension *.fnt or *.fon)
>> * module: pcf       (pcf bitmap fonts)
>> * module: bdf       (bdf bitmap fonts)
>> * module: sfnt      (helper module for TrueType & OpenType formats)
>> * module: autofit   (automatic hinting module)
>> * module: pshinter  (Postscript hinter module)
>> * module: raster    (monochrome bitmap renderer)
>> * module: smooth    (anti-aliased bitmap renderer)
>> * module: smooth    (anti-aliased bitmap renderer for LCDs)
>> * module: smooth    (anti-aliased bitmap renderer for vertical LCDs)
>> * module: psaux     (Postscript Type 1 & Type 2 helper module)
>> * module: psnames   (Postscript & Unicode Glyph name handling)
>> done.
>> /bin/sh: ./configure: No such file or directory
>> make[3]: *** [setup] Error 127
>> config.mk:25: builds/unix/unix-def.mk: No such file or directory
>> config.mk:26: builds/unix/unix-cc.mk: No such file or directory
>> make[3]: *** No rule to make target `builds/unix/unix-cc.mk'.  Stop.
>> config.mk:25: builds/unix/unix-def.mk: No such file or directory
>> config.mk:26: builds/unix/unix-cc.mk: No such file or directory
>> make[3]: *** No rule to make target `builds/unix/unix-cc.mk'.  Stop.
>> cp: ./freetype2/objs/.libs/libfreetype.a: No such file or directory
>> make[2]: *** [FT2Plugin/libfreetype.a] Error 1
>> make[1]: *** [FT2Plugin/CMakeFiles/FT2Plugin.dir/all] Error 2
>> make: *** [all] Error 2
>> 
> 
> --
> View this message in context: http://forum.world.st/Building-Cog-on-Mac-Lion-tp4159537p4159537.html
> Sent from the Squeak VM mailing list archive at Nabble.com.



More information about the Vm-dev mailing list