[MacPorts] #33015: libsdl_image build failure on Tiger: error: ‘CGFloat’ undeclared
#33015: libsdl_image build failure on Tiger: error: ‘CGFloat’ undeclared -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: jmr@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: tiger | Port: libsdl_image -------------------------------------+-------------------------------------- {{{ 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`. -- Ticket URL: <https://trac.macports.org/ticket/33015> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33015: libsdl_image build failure on Tiger: error: ‘CGFloat’ undeclared --------------------------------------+------------------------------------- Reporter: ryandesign@… | Owner: jmr@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: wontfix | Keywords: tiger Port: libsdl_image | --------------------------------------+------------------------------------- Changes (by jmr@…): * status: new => closed * resolution: => wontfix Comment: I'm not going to work on this. File a bug upstream if you like. -- Ticket URL: <https://trac.macports.org/ticket/33015#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33015: libsdl_image build failure on Tiger: error: ‘CGFloat’ undeclared --------------------------------------+------------------------------------- Reporter: ryandesign@… | Owner: jmr@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: wontfix | Keywords: tiger Port: libsdl_image | --------------------------------------+------------------------------------- Comment(by ryandesign@…): I emailed the developer, who said:
From: Sam Lantinga [[br]] Date: January 26, 2012 16:32:05 CST [[br]] To: Ryan Schmidt [[br]] Subject: Re: libsdl_image 1.2.12 compile failure on OS X 10.4 Tiger: 'CGFloat' undeclared [[br]] [[br]] 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. -- Ticket URL: <https://trac.macports.org/ticket/33015#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts