---------- Forwarded message ---------- From: Amr Aboelela <[email protected]> Date: Mon, Nov 28, 2011 at 9:19 PM Subject: Re: Error while compiling Chameleon UIKit To: Stefan Bidi <[email protected]>
Stefan, thanks for your reply. I am managed now to make it work after doing changes in the following files in opal: M Source/OpalText/CTRun.m M Source/OpalText/CTFont.m M Source/OpalText/CTRun-private.h M Source/OpalText/CTTypesetter.m M Source/OpalText/CTFramesetter.m M Source/OpalText/CTLine.m M Source/OpalText/CTFrame.m M Headers/CoreText/CTRun.h M Headers/CoreText/CTFont.h M Headers/CoreText/CTTypesetter.h M Headers/CoreText/CTFramesetter.h M Headers/CoreText/CTLine.h M Headers/CoreText/CTFrame.h as i changed CFRange to NSRange M Tests/textlayout.m commented CFRangeMake declaration and use. M Headers/CoreGraphics/CGBase.h used #import <CoreFoundation/CoreFoundation.h> and commented all the offending declarations i am attaching my CGBase.h file On Sun, Nov 27, 2011 at 9:28 AM, Stefan Bidi <[email protected]> wrote: > You're running into this because Corebase and Opal have not been > integrated. At this point, they really are 2 completely separate > projects. Main reason being because Opal predates Corebase. As far as I > know, Opal is also more mature. I wanted to make sure you are aware of > these things because you will likely have more problems. > > With that said, I'm tempted to just add a #ifndef CFTYPE_DECLARED around > the 2 declarations but I'll go ahead and wait to see what Eric has to say. > > I do appreciate you testing this out, though, and would like to hear > whatever problems you run into. Successes would be welcomed, too. > > Stef > > On Sun, Nov 27, 2011 at 10:30 AM, Amr Aboelela <[email protected]>wrote: > >> >> amr@ayesha:~/develop/caramel/frameworks/UIKit$ make >> This is gnustep-make 2.4.0. Type 'make print-gnustep-make-help' for help. >> Making all for library libUIKit... >> Compiling file Classes/UIView.m ... >> clang: warning: argument unused during compilation: '-fexec-charset=UTF-8' >> In file included from Classes/UIView.m:40: >> In file included from /usr/local/include/GNUstep/QuartzCore/CALayer.h:6: >> In file included from >> /usr/local/include/GNUstep/QuartzCore/CAMediaTiming.h:6: >> In file included from /usr/local/include/GNUstep/QuartzCore/CABase.h:16: >> In file included from >> /usr/local/include/GNUstep/CoreFoundation/CoreFoundation.h:30: >> /usr/local/include/GNUstep/CoreFoundation/CFBase.h:149:23: error: >> redefinition of typedef 'CFTypeID' is invalid in C [-Wtypedef-redefinition] >> typedef unsigned long CFTypeID; >> ^ >> In file included from Classes/UIView.m:30: >> In file included from Classes/UIView+UIPrivate.h:30: >> In file included from Classes/UIView.h:31: >> In file included from Classes/UIGeometry.h:31: >> In file included from >> /usr/local/include/GNUstep/ApplicationServices/ApplicationServices.h:18: >> In file included from >> /usr/local/include/GNUstep/CoreGraphics/CoreGraphics.h:27: >> /usr/local/include/GNUstep/CoreGraphics/CGBase.h:50:23: note: previous >> definition is here >> typedef unsigned long CFTypeID; >> ^ >> In file included from Classes/UIView.m:40: >> In file included from /usr/local/include/GNUstep/QuartzCore/CALayer.h:6: >> In file included from >> /usr/local/include/GNUstep/QuartzCore/CAMediaTiming.h:6: >> In file included from /usr/local/include/GNUstep/QuartzCore/CABase.h:16: >> In file included from >> /usr/local/include/GNUstep/CoreFoundation/CoreFoundation.h:30: >> /usr/local/include/GNUstep/CoreFoundation/CFBase.h:150:21: error: typedef >> redefinition with different types ('void const *' vs 'NSObject *') >> typedef const void *CFTypeRef; >> ^ >> In file included from Classes/UIView.m:30: >> In file included from Classes/UIView+UIPrivate.h:30: >> In file included from Classes/UIView.h:31: >> In file included from Classes/UIGeometry.h:31: >> In file included from >> /usr/local/include/GNUstep/ApplicationServices/ApplicationServices.h:18: >> In file included from >> /usr/local/include/GNUstep/CoreGraphics/CoreGraphics.h:27: >> /usr/local/include/GNUstep/CoreGraphics/CGBase.h:56:19: note: previous >> definition is here >> typedef NSObject *CFTypeRef; >> >> >> -- >> Info about Islam: http://wikiz.info/islam >> Latest news on twitter: http://www.twitter.com/zagel >> Contribute in a wiki: http://wikiz.info >> >> >> >> _______________________________________________ >> Discuss-gnustep mailing list >> [email protected] >> https://lists.gnu.org/mailman/listinfo/discuss-gnustep >> >> > -- Info about Islam: http://wikiz.info/islam Latest news on twitter: http://www.twitter.com/zagel Contribute in a wiki: http://wikiz.info -- Info about Islam: http://wikiz.info/islam Latest news on twitter: http://www.twitter.com/zagel Contribute in a wiki: http://wikiz.info
/** <title>CGBase</title> <abstract>C Interface to graphics drawing library</abstract> Copyright <copy>(C) 2010 Free Software Foundation, Inc.</copy> Author: Eric Wasylishen Date: Jan 2010 This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #import <CoreFoundation/CoreFoundation.h> #ifndef OPAL_CGBase_h #define OPAL_CGBase_h #include <stdlib.h> #include <stdint.h> #include <stdbool.h> // for off_t #include <sys/types.h> // Note: GNUstep Foundation defines CGFloat #import <Foundation/Foundation.h> #ifndef MAX #define MAX(a,b) ((a)>(b)?(a):(b)) #endif #ifndef MIN #define MIN(a,b) ((a)<(b)?(a):(b)) #endif /* Typedefs for CoreFoundation types */ //typedef signed long CFIndex; //typedef unsigned long CFTypeID; //typedef NSRange CFRange; //typedef NSComparisonResult CFComparisonResult; /* #ifdef __OBJC__ @class NSObject; typedef NSObject *CFTypeRef; #else typedef struct NSObject * CFTypeRef; #endif #ifdef __OBJC__ @class NSString; @class NSMutableString; typedef NSString* CFStringRef; typedef NSMutableString* CFMutableStringRef; #else typedef const struct __CFString * CFStringRef; typedef struct __CFString * CFMutableStringRef; #endif */ #ifdef __OBJC__ @class NSAttributedString; @class NSMutableAttributedString; typedef NSAttributedString* CFAttributedStringRef; typedef NSMutableAttributedString* CFMutableAttributedStringRef; #else typedef struct CFAttributedString * CFAttributedStringRef; typedef struct CFMutableAttributedString * CFMutableAttributedStringRef; #endif /* #ifdef __OBJC__ @class NSArray; @class NSMutableArray; typedef NSArray* CFArrayRef; typedef NSMutableArray* CFMutableArrayRef; #else typedef struct CFArray *CFArrayRef; typedef struct CFArray *CFMutableArrayRef; #endif #ifdef __OBJC__ @class NSCharacterSet; typedef NSCharacterSet* CFCharacterSetRef; #else typedef struct CFCharacterSet * CFCharacterSetRef; #endif #ifdef __OBJC__ @class NSData; @class NSMutableData; typedef NSData* CFDataRef; typedef NSMutableData* CFMutableDataRef; #else typedef struct CFData *CFDataRef; typedef struct CFMutableData *CFMutableDataRef; #endif #ifdef __OBJC__ @class NSDate; @class NSTimeZone; typedef NSDate* CFDateRef; typedef NSTimeZone* CFTimeZoneRef; #else typedef struct CFDate *CFDateRef; typedef struct CFTimeZone *CFTimeZoneRef; #endif #ifdef __OBJC__ @class NSDictionary; @class NSMutableDictionary; typedef NSDictionary* CFDictionaryRef; typedef NSMutableDictionary* CFMutableDictionaryRef; #else typedef struct CFDictionary * CFDictionaryRef; typedef struct CFMutableDictionary * CFMutableDictionaryRef; #endif #ifdef __OBJC__ @class NSError; typedef NSError* CFErrorRef; #else typedef struct CFError *CFErrorRef; #endif #ifdef __OBJC__ @class NSNumber; typedef NSNumber* CFNumberRef; #else typedef struct NSNumber * CFNumberRef; #endif */ #ifdef __OBJC__ @class NSSet; @class NSMutableSet; typedef NSSet* CFSetRef; typedef NSMutableSet* CFMutableSetRef; #else typedef struct CFSet * CFSetRef; typedef struct CFMutableSet * CFMutableSetRef; #endif /* #ifdef __OBJC__ @class NSURL; typedef NSURL *CFURLRef; #else typedef struct CFURL *CFURLRef; #endif */ #endif /* OPAL_CGBase_h */
_______________________________________________ Discuss-gnustep mailing list [email protected] https://lists.gnu.org/mailman/listinfo/discuss-gnustep
