Changes between Initial Version and Version 1 of BuildingCocotron

Nov 30, 2010, 10:45:14 PM (10 years ago)



  • BuildingCocotron

    v1 v1  
     1= Building Cocotron for use with CCL =
     3First, install Xcode on a Macintosh.
     5Next, install the Cocotron tools.  Follow the directions found at
     8With the tools installed, you are ready to build the Cocotron
     9sources.  You will need to install Mercurial.  Check out the source code with
     11hg clone cocotron
     14Next, apply the patch from $REPO/trunk/aux/cocotron/win32/cocotron/cocotron-r59942ee67d15.patch
     15(This patch contains some changes to NSDocument.m and NSApplication.m.)
     16Something like this will probably work:
     18$ cd cocotron/AppKit
     19$ patch -p2 </path/to/patch
     22Open cocotron/Cocoa/Cocoa.xcodeproj, and build it.
     24Now, do the following:
     26$ mkdir /tmp/cocotron
     27$ cd /Developer/Cocotron/1.0/Windows/i386/Frameworks
     28$ /Developer/Cocotron/1.0/bin/retargetBundle -F . -framework Foundation -framework AppKit  -destination /tmp/cocotron
     31To build interfaces, you need an interface translator.  The process is similar to that outlines in BuildFFIGEN, but you use the patches
     32in, and the gcc sources from the Cocotron tools.
     34Now, assuming that on your Windows system you have a ccl:cocotron; directory, do the following steps:
     35  * tar up /tmp/cocotron and untar it into ccl:cocotron; on the Windows system
     36  * get the win32-headers directory from svn onto your Macintosh system, go into win32-headers/cocoa/C/ and run
     37  * tar up win32-headers/cocoa/C and move it over to the Windows system
     38  * on the Windows system, parse the ffi files in the usual way, i.e., (require 'parse-ffi) (dotimes (i 2) (parse-standard-ffi-files :cocoa))
     40If you're lucky, it might work.