|
From: Keith W. <kw...@cs...> - 2004-06-26 23:29:04
|
Obviously Quesa gets along with Carbon just fine, as I have had no
trouble carbonizing Queeg (only needed a couple of tweaks to get it
going) and many of the example programs are clearly OS X native. I made
a rather quick attempt to turn Queeg into a Mach-O project and
immediately faced a couple of serious problems. First of all, of
course, libraries are handled fairly differently in Mach-O projects. I
was unable to simply add the Quesa lib file to the project and I don't
know how to interpret the Quesa lib file as a framework. Any thoughts
on this? Second of all, during compiling, the Quesa.h preproc
directives fail in numerous places, not the least of which is the
following segment at line 93:
#if (!QUESA_OS_MACINTOSH && \
!QUESA_OS_WIN32 && \
!QUESA_OS_UNIX && \
!QUESA_OS_BE && \
!QUESA_OS_COCOA)
#error Target OS not selected!
So QUESA_OS_MACINTOSH isn't defined, which means this block at the very
top of Quesa.h failed to process correctly:
#if ((defined(__MWERKS__) && __dest_os == __mac_os && !(__INTEL__)) ||
defined(MPW_CPLUS) || defined(MPW_C))
#ifndef QUESA_OS_MACINTOSH
#define QUESA_OS_MACINTOSH 1
#endif
#endif
Any thoughts on how to kick-start Mach-O with Quesa?
Fundamentally, I don't care too much about Mach-O, except that I noticed
that Queeg/Qut doesn't use Carbon events for Carbon applications. It
uses old fashioned Classic OS 9 events. The preprocs in Queeg/Qut
suggest that it only uses Carbon events for Mach-O apps, not Carbon
apps, as shown here at the top of Qut.c:
#ifndef QUT_MAC_CARBON_EVENTS
#if defined(TARGET_RT_MAC_MACHO) && (TARGET_RT_MAC_MACHO)
#define QUT_MAC_CARBON_EVENTS 1
#else
#define QUT_MAC_CARBON_EVENTS 0
#endif
#endif
...which is why I'm trying to convert Queeg/Qut to Mach-O...although I
suspect I could approach the problem from the other direction and try to
get the Carbon version of Queeg/Qut to use Carbon events.
Thanks for any input on this issue.
Cheers!
________________________________________________________________________
Keith Wiley kw...@cs...
http://www.unm.edu/~keithw http://www.mp3.com/KeithWiley
"Yet mark his perfect self-contentment, and hence learn his lesson,
that to be self-contented is to be vile and ignorant, and that to
aspire is better than to be blindly and impotently happy."
-- Edwin A. Abbott, Flatland
________________________________________________________________________
|