On Aug 6, 2007, at 4:16 PM, Sandhitsu Das wrote:

>
>
> On Aug 4, 2007, at 2:45 PM, Ian MacArthur wrote:
>
>>> How can I build FLTK to use X11 and not Carbon on Mac ? I tried
>>> using the --with-x option to configure but it didn't work.
>>>
>>
>> I don't know that anyone does this much anymore - it used to work,
>> but the entire point of a cross-platform lib like fltk is to build
>> natively on every target, and X is *not* the native target on OSX.
>> I certainly haven't built on OSX with X support in... well, a long
>> time, years...
>>
>> Why do you need to do this? Why is a native fltk app not what your
>> need?
>
> I want to to display fltk apps remotely over the network -- that's
> why. I'm not aware of any way one could display Carbon apps remotely
> except for running a full blown VNC-type remote desktop which I don't
> want to do. X is the obvious and the fastest solution in this case.

We do not actively support X11 on OS X. A patch once existed that  
worked well according to those who used it. In general though, this  
should not be too difficult to achieve. The Apple Quickdraw and  
Quartz code is separated from the rest by defining __APPLE_QD__ and  
__APPLE_QUARTZ__ respectively, which in turn are based on the gcc  
predefined variable __APPLE__. Now if you find the right mix between  
these three and USE_X11, you should be able to compile just fine.

I am sorry that I can't give you a point-and-click solution here, but  
this is a rarely requested feature.

Matthias

----
http://robowerk.com/


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

Reply via email to