CFLite old: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 2: | Line 2: | ||
On Windows XP or Windows Vista:<br> | On Windows XP or Windows Vista:<br> | ||
* Install [[CFLite/Cygwin|Cygwin]] - select (add them by clicking the text labelled Skip) these packages during the install: | |||
** Devel/gcc-core | |||
** Devel/gcc-objc | |||
** Devel/make | |||
** If you want to debug the dll, also install Devel/gdb. | |||
** When you first run cygwin, it may notify you that it needs you to build /etc/passwd and /etc/group. Do this. Your cygwin setup should be ready. | |||
* 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] | |||
* Get FreeBSD's [http://www.freebsd.org/cgi/cvsweb.cgi/~checkout~/src/sys/libkern/flsl.c?rev=1.4;content-type=text%2Fplain flsl.c] source file | |||
* Download [http://kjams.com/cflite/downloads/include.zip include.zip] (contains /usr/include/*, which includes AvailabilityMacros, AssertMacros and TargetConditionals from 10.5) | |||
* If you're using Microsoft Visual Studio, you'll need [http://msinttypes.googlecode.com/svn/trunk/stdint.h stdint.h] and [http://www.koders.com/c/fidDF4818DD265741F8A74455FC281F0C1CBA35EB47.aspx stdbool.h] They don't come with the compiler but are part of the C99 standard. | |||
* You will need the contents of mach/*, i386/*, malloc/malloc.h, and sys/cdefs.h from xcode 3.0 | |||
* Apply the patch | |||
* Run make | |||
* Download [[CFLite/CFTest|CFTest]] source files. This is the test harness sample project.<br>* You can ignore the XCode project<br>* create a new project in your windows dev environment and add the two .cpp files.<br>* the "console.txt" is the example output that it '''should''' look like in your console<br>* you may need to tweak the relative path for "test.xml" to load properly. Please document any necessary changes to the source code. | |||
Revision as of 04:30, 12 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:
- Install Cygwin - select (add them by clicking the text labelled Skip) these packages during the install:
- Devel/gcc-core
- Devel/gcc-objc
- Devel/make
- If you want to debug the dll, also install Devel/gdb.
- When you first run cygwin, it may notify you that it needs you to build /etc/passwd and /etc/group. Do this. Your cygwin setup should be ready.
- Download ICU4C
- Download CFLite 476.13. Ooops! Not available? Try: CFLite 476.10
- Get FreeBSD's flsl.c source file
- Download include.zip (contains /usr/include/*, which includes AvailabilityMacros, AssertMacros and TargetConditionals from 10.5)
- If you're using Microsoft Visual Studio, you'll need stdint.h and stdbool.h They don't come with the compiler but are part of the C99 standard.
- You will need the contents of mach/*, i386/*, malloc/malloc.h, and sys/cdefs.h from xcode 3.0
- Apply the patch
- Run make
- 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.