> All,
>
> Is it expected that the 1.3 codebase can still build in "non-cocoa"
> mode?
> I just tried this, and it fails.

Yes, it is definitely my goal.
But you reveal that there are some hickups...

You just have to move, in FL/mac.H, the stuff that defines
CGFloat when it is not known out of the
#ifdef __APPLE_COCOA__ / #endif
where it is now. (Caution, there are several nested #if / #endif)


>
> There is no option to configure to --disable-cocoa so what I did was
> configure normally then hand edit config.h as follows, which I think
> should be correct:
>
> #define USE_QUARTZ 1
> #define __APPLE_QUARTZ__ 1
> /*#define __APPLE_COCOA__ 1 */
> #undef __APPLE_COCOA__
> /* #undef __APPLE_QD__ */
>
> However, the build only gets as far as:
>
> Compiling fl_line_style.cxx...
> fl_line_style.cxx:43: error: expected initializer before '*' token
> fl_line_style.cxx: In function 'void fl_quartz_restore_line_style_()':
> fl_line_style.cxx:49: error: 'fl_quartz_line_pattern' was not
> declared in this scope
> fl_line_style.cxx: In function 'void fl_line_style(int, int, char*)':
> fl_line_style.cxx:148: error: 'CGFloat' does not name a type
> fl_line_style.cxx:150: error: 'CGFloat' was not declared in this scope
> fl_line_style.cxx:150: error: 'p' was not declared in this scope
> fl_line_style.cxx:150: error: 'pattern' was not declared in this scope
> fl_line_style.cxx:152: error: 'fl_quartz_line_pattern' was not
> declared in this scope
> fl_line_style.cxx:165: error: 'CGFloat' was not declared in this scope
> fl_line_style.cxx:165: error: 'p' was not declared in this scope
> fl_line_style.cxx:165: error: 'pattern' was not declared in this scope
> fl_line_style.cxx:173: error: 'fl_quartz_line_pattern' was not
> declared in this scope
> fl_line_style.cxx:175: error: 'fl_quartz_line_pattern' was not
> declared in this scope
> make[1]: *** [fl_line_style.o] Error 1
> make: *** [all] Error 1
>
>
> Thoughts?
>
> --
> Ian
>
>

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

Reply via email to