New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #33015 (closed defect: wontfix)

Opened 2 years ago

Last modified 8 months ago

libsdl_image build failure on Tiger: error: ‘CGFloat’ undeclared

Reported by: ryandesign@… Owned by: jmr@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: tiger Cc: egall@…
Port: libsdl_image

Description

IMG_ImageIO.m: In function ‘Create_SDL_Surface_From_CGImage_RGB’:
IMG_ImageIO.m:220: error: ‘CGFloat’ undeclared (first use in this function)
IMG_ImageIO.m:220: error: (Each undeclared identifier is reported only once
IMG_ImageIO.m:220: error: for each function it appears in.)
IMG_ImageIO.m:220: error: parse error before ‘whitePoint’
IMG_ImageIO.m:230: error: ‘whitePoint’ undeclared (first use in this function)
IMG_ImageIO.m:230: error: ‘blackPoint’ undeclared (first use in this function)
IMG_ImageIO.m:231: error: ‘matrix’ undeclared (first use in this function)
IMG_ImageIO.m:231: warning: passing argument 3 of ‘CGColorSpaceCreateCalibratedRGB’ from incompatible pointer type
IMG_ImageIO.m: In function ‘Create_SDL_Surface_From_CGImage_Index’:
IMG_ImageIO.m:310: warning: initialization makes pointer from integer without a cast
IMG_ImageIO.m: In function ‘Create_SDL_Surface_From_CGImage’:
IMG_ImageIO.m:354: error: ‘kCGColorSpaceModelIndexed’ undeclared (first use in this function)
make: *** [IMG_ImageIO.lo] Error 1

I believe it should be possible to typedef CGFloat to float.

Attachments

main.log (53.8 KB) - added by ryandesign@… 2 years ago.

Change History

Changed 2 years ago by ryandesign@…

comment:1 Changed 2 years ago by jmr@…

  • Status changed from new to closed
  • Resolution set to wontfix

I'm not going to work on this. File a bug upstream if you like.

comment:2 Changed 2 years ago by ryandesign@…

I emailed the developer, who said:

From: Sam Lantinga
Date: January 26, 2012 16:32:05 CST
To: Ryan Schmidt
Subject: Re: libsdl_image 1.2.12 compile failure on OS X 10.4 Tiger: 'CGFloat' undeclared

It's probably easiest to mark it 10.5 and higher. I saw a couple other errors in there that wouldn't be fixed just by switching to float.

So I added a pre-fetch block for darwin 8 in r89361 to error out early.

comment:3 Changed 8 months ago by egall@…

  • Cc egall@… added

Cc Me!

Note: See TracTickets for help on using tickets.