Administrator
|
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] [2]
Cheers,
Sean |
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. |
In reply to this post by Sean P. DeNigris
For freetype you need to upgrade/update to more fresh autotools (automake, aclocal etc). On 5 December 2011 08:38, Sean P. DeNigris <[hidden email]> wrote: > > Has anyone successfully done this? I spent several hours tonight and couldn't > quite get there... > Strange. But i don't have lion installed. > 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. > -- Best regards, Igor Stasenko. |
you probably need to redirect gcc from llvm to 686-apple-darwin11-gcc-4.2.1 (otherwise it will try to compile with "default compiler" which is LLVM, and that builds but crashes the vm if optimization different from -O0) El 05/12/2011, a las 9:28a.m., Igor Stasenko escribió: > > For freetype you need to upgrade/update to more fresh autotools > (automake, aclocal etc). > > On 5 December 2011 08:38, Sean P. DeNigris <[hidden email]> wrote: >> >> Has anyone successfully done this? I spent several hours tonight and couldn't >> quite get there... >> > > Strange. But i don't have lion installed. > >> 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. >> > > > > -- > Best regards, > Igor Stasenko. |
Administrator
|
In reply to this post by EstebanLM
I was trying to build Carbon. What puzzled me was how Jenkins is able to build...
Cheers,
Sean |
Administrator
|
In reply to this post by EstebanLM
Yes that was it! Happily debugging again. Thanks Igor and Esteban - you rock!
Cheers,
Sean |
In reply to this post by Sean P. DeNigris
I dunno... but you shouldn't use carbon version... I said that several times: it is legacy and we shouldn't even being building it... AFAIK, cocoa version now works and comes with same plugins as carbon. I know... you need AppleScript plugin and I didn't make it work (yet)... sorry for that :( cheers, Esteban El 05/12/2011, a las 1:44p.m., Sean P. DeNigris escribió: > > > EstebanLM wrote >> >> all of this, of course, with cocoa builds, not carbon >> > > I was trying to build Carbon. What puzzled me was how Jenkins is able to > build... > > -- > View this message in context: http://forum.world.st/Building-Cog-on-Mac-Lion-tp4159537p4161246.html > Sent from the Squeak VM mailing list archive at Nabble.com. |
Administrator
|
I stepped through the TestOSA plugin yesterday but couldn't see exactly what is wrong; I'll look more today. For the time being, I put a very simple package on Squeaksource that implements the basic API from the Applescript project, which lets you execute strings as Applescripts, and does not require the plugin: Gofer new squeaksource: 'MetacelloRepository'; package: 'ConfigurationOfSimpleApplescript'; load. (Smalltalk at: #ConfigurationOfSimpleApplescript ) load.
Cheers,
Sean |
Free forum by Nabble | Edit this page |