DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR Pending] Link: http://www.fltk.org/str.php?L2221 Version: 1.3-feature Fix Version: 1.3.0 (r6951) In file FL/mac.H, add this just after the #include <Carbon/Carbon.h>: #ifdef __APPLE_COCOA__ #ifndef __AVAILABILITYMACROS__ #include <AvailabilityMacros.h> #endif #ifndef MAC_OS_X_VERSION_10_3 #define MAC_OS_X_VERSION_10_3 1030 #endif #ifndef MAC_OS_X_VERSION_10_4 #define MAC_OS_X_VERSION_10_4 1040 #endif #ifndef MAC_OS_X_VERSION_10_5 #define MAC_OS_X_VERSION_10_5 1050 #endif #ifndef MAC_OS_X_VERSION_10_6 #define MAC_OS_X_VERSION_10_6 1060 #endif #ifndef MAC_OS_X_VERSION_MAX_ALLOWED #define MAC_OS_X_VERSION_MAX_ALLOWED MAC_OS_X_VERSION_10_3 #endif #endif this should solve all of Ian's errors. In src/Fl_cocoa.mm, remove #include <AvailabilityMacros.h> that we just recently added (sorry for this back and forth) because we have now this included by mac.H so it applies also to, e.g., fl_fonts_mac.cxx and at line 1257 change the 2 lines: @interface FLDelegate : NSObject { } into the 6 lines: @interface FLDelegate : NSObject #if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6 <NSWindowDelegate> #endif { } this should solve the warning you Matt mentionned (this warning is a gift from SDK 10.6 I had not tried yet, I had just run the programs on 10.6). For the Release configuration, Matt, please, remove the ppc64 architecture from it (leaving 3: ppc, i386, x86_64). To do that, open the Info window of the FLTK project itself, go to the Build tab, select the Release configuration, select Show all settings, and go to the Architectures line, delete its current value and replace it by ppc i386 x86_64 This change will propagate to all targets of the FLTK project. The 4-architecture build works well with 10.5 but apparently not with 10.6 builds. I don't think the ppc64 architecture has much interest. Hopefully, we'll have progressed with that. About the change in file makeinclude.in: sorry, I don't see exactly what syntax you suggest that would be more portable. May be you can do the change yourself? The goal is to add -x objective-c++ only to compile file Fl.cxx and only if on a Mac. Link: http://www.fltk.org/str.php?L2221 Version: 1.3-feature Fix Version: 1.3.0 (r6951) _______________________________________________ fltk-dev mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-dev
