CFLite old: Difference between revisions

From kJams Wiki
Jump to navigation Jump to search
Guberif (talk | contribs)
No edit summary
Guberif (talk | contribs)
No edit summary
Line 8: Line 8:
# Download [http://download.icu-project.org/files/icu4c/4.0/icu4c-4_0-Win32-msvc8.zip ICU4C]  
# Download [http://download.icu-project.org/files/icu4c/4.0/icu4c-4_0-Win32-msvc8.zip ICU4C]  
# Download [http://www.opensource.apple.com/darwinsource/tarballs/apsl/CF-476.13.tar.gz CFLite 476.13].  '''Ooops!'''  Not available?  Try: [http://www.opensource.apple.com/darwinsource/tarballs/apsl/CF-476.10.tar.gz CFLite 476.10]
# Download [http://www.opensource.apple.com/darwinsource/tarballs/apsl/CF-476.13.tar.gz CFLite 476.13].  '''Ooops!'''  Not available?  Try: [http://www.opensource.apple.com/darwinsource/tarballs/apsl/CF-476.10.tar.gz CFLite 476.10]
#get FreeBSD's flsl.c source file
# install it where??
# install it where??
# Download [http://kjams.com/cflite/downloads/include.zip include.zip] (contains /usr/include/*, which includes AvailabilityMacros, AssertMacros and TargetConditionals from 10.5)
# Download [http://kjams.com/cflite/downloads/include.zip include.zip] (contains /usr/include/*, which includes AvailabilityMacros, AssertMacros and TargetConditionals from 10.5)

Revision as of 12:02, 10 August 2008

This page documents how to build CFLite 476.10 such that you can then link to it in your Windows projects, and then blissfully use CFStrings, CFDictionaries, and all the other CFGoodness that CFLite will bring you. For a "quick and dirty" way to just start *using* CFLite on windows (without having to compile it), click here.

On Windows XP or Windows Vista:

  1. Install Cygwin - select these packages during the install:

Devel/gcc-core Devel/gcc-objc Devel/make (add them by clicking the text labelled Skip) My install didn't complete the first time, if this happens, run setup.exe again and run through the defaults My install told me to build /etc/passwd and /etc/group and gave instructions, do this if notified.kjgft

  1. Download ICU4C
  2. Download CFLite 476.13. Ooops! Not available? Try: CFLite 476.10
  3. get FreeBSD's flsl.c source file
  4. install it where??
  5. Download include.zip (contains /usr/include/*, which includes AvailabilityMacros, AssertMacros and TargetConditionals from 10.5)
  6. install it where??
  7. you'll need stdint.h and stdbool.h if you're using Microsoft Visual Studio, it doesn't come with the compiler but is part of the C99 standard. I suggest placing these files in your Visual Studio C include folder(C:\Program Files\Microsoft Visual Studio 8\VC\include by default for VS2005), but you can add these on a separate include path if you want to keep your compiler header folder pristine. More details about this file are on Wikipedia. Maybe it would be better to just add this to the include.zip with AvailabilityMacros et al?
  8. Muck with leopard headers

You will need the contents of mach/*, i386/*, malloc/malloc.h, and sys/cdefs.h from xcode 3.0

  1. Apply the patch
  2. run make
  3. Download CFTest source files. This is the test harness sample project.
    * You can ignore the XCode project
    * create a new project in your windows dev environment and add the two .cpp files.
    * the "console.txt" is the example output that it should look like in your console
    * you may need to tweak the relative path for "test.xml" to load properly. Please document any necessary changes to the source code.