Greg, you need the current Xcode for 10.4.11...

On May 20, 2010, at 10:19 AM, Greg Ercolano wrote:

> manolo gouy wrote:
>> Greg:
>> do you still have an error compiling FLTK-1.3 on your Mac ?
> 
>       Yes -- just tried r7612 and got:
> 
> /usr/bin/ar cr ../lib/libfltk_forms.a ...
> Compiling Fl_Gl_Choice.cxx...
> Compiling Fl_Gl_Overlay.cxx...
> Compiling Fl_Gl_Device_Plugin.cxx...
> Fl_Gl_Device_Plugin.cxx: In function `void print_gl_window(Fl_Gl_Window*, int,
>   int, int)':
> Fl_Gl_Device_Plugin.cxx:101: error: `kCGBitmapByteOrder32Big' undeclared 
> (first
>   use this function)
> Fl_Gl_Device_Plugin.cxx:101: error: (Each undeclared identifier is reported
>   only once for each function it appears in.)
> make[1]: *** [Fl_Gl_Device_Plugin.o] Error 1
> make: *** [all] Error 1
> 
> % svnversion
> 7612
> 
>> If yes, could you please paste in reply the first 60 lines or so
>> of your file
>> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Headers/CGImage.h
> 
>       Sure:
> 
> % head -70 
> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Headers/CGImage.h
> 
> /* CoreGraphics - CGImage.h
> * Copyright (c) 2000-2004 Apple Computer, Inc.
> * All rights reserved.
> */
> 
> #ifndef CGIMAGE_H_
> #define CGIMAGE_H_
> 
> typedef struct CGImage *CGImageRef;
> 
> #include <CoreGraphics/CGColorSpace.h>
> #include <CoreGraphics/CGDataProvider.h>
> #include <CoreGraphics/CGGeometry.h>
> 
> CG_EXTERN_C_BEGIN
> 
> enum CGImageAlphaInfo {
>    kCGImageAlphaNone,               /* For example, RGB. */
>    kCGImageAlphaPremultipliedLast,  /* For example, premultiplied RGBA */
>    kCGImageAlphaPremultipliedFirst, /* For example, premultiplied ARGB */
>    kCGImageAlphaLast,               /* For example, non-premultiplied RGBA */
>    kCGImageAlphaFirst,              /* For example, non-premultiplied ARGB */
>    kCGImageAlphaNoneSkipLast,       /* For example, RBGX. */
>    kCGImageAlphaNoneSkipFirst,      /* For example, XRGB. */
>    kCGImageAlphaOnly                /* No color data, alpha data only */
> };
> typedef enum CGImageAlphaInfo CGImageAlphaInfo;
> 
> enum {
>    kCGBitmapAlphaInfoMask = 0x1F,
>    kCGBitmapFloatComponents = (1 << 8)
> };
> typedef uint32_t CGBitmapInfo; /* Available in MAC OS X 10.4 & later. */
> 
> /* Return the CFTypeID for CGImageRefs. */
> 
> CG_EXTERN CFTypeID CGImageGetTypeID(void) 
> AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER;
> 
> /* Create an image. */
> 
> CG_EXTERN CGImageRef CGImageCreate(size_t width, size_t height, size_t 
> bitsPerComponent, size_t bitsPerPixel, size_t bytesPerRow, CGColorSpaceRef 
> colorspace, CGBitmapInfo bitmapInfo, CGDataProviderRef provider, const float 
> decode[], bool shouldInterpolate, CGColorRenderingIntent intent);
> 
> /* Create an image mask. */
> 
> CG_EXTERN CGImageRef CGImageMaskCreate(size_t width, size_t height, size_t 
> bitsPerComponent, size_t bitsPerPixel, size_t bytesPerRow, CGDataProviderRef 
> provider, const float decode[], bool shouldInterpolate);
> 
> /* Return a copy of `image'. Only the image structure itself is copied; the
> * underlying data is not. */
> 
> CG_EXTERN CGImageRef CGImageCreateCopy(CGImageRef image);
> 
> /* Create an image from `source', a data provider of JPEG-encoded data. */
> 
> CG_EXTERN CGImageRef CGImageCreateWithJPEGDataProvider(CGDataProviderRef 
> source, const float decode[], bool shouldInterpolate, CGColorRenderingIntent 
> intent) AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER;
> 
> /* Create an image using `source', a data provider for PNG-encoded data. */
> 
> CG_EXTERN CGImageRef CGImageCreateWithPNGDataProvider(CGDataProviderRef 
> source, const float decode[], bool shouldInterpolate, CGColorRenderingIntent 
> intent) AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER;
> 
> /* Create an image using the data contained within the subrectangle `rect'
> * of `image'.
> *
> * The new image is created by
> *   1) adjusting `rect' to integral bounds by calling "CGRectIntegral";
> *   2) intersecting the result with a rectangle with origin (0, 0) and
> *      size equal to the size of `image';
> *   3) referencing the pixels within the resulting rectangle, treating the
> *      first pixel of the image data as the origin of the image.
> * If the resulting rectangle is the null rectangle, this function returns
> * NULL.
> _______________________________________________
> fltk-dev mailing list
> [email protected]
> http://lists.easysw.com/mailman/listinfo/fltk-dev

________________________________________
Michael Sweet, Easy Software Products



_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to