[Bf-committers] Help Moving Code: QT

Douglas Bischoff bf-committers@blender.org
Wed, 10 Sep 2003 17:03:59 -0400


On Tuesday, Sep 9, 2003, at 17:32 US/Eastern, Rob Haarsma wrote:

> I did the Quicktime init move just now...
> The init_quicktime()  function now happens in 
> /source/blender/quicktime/apple/quicktime_import.c
> Note that this function is declared in 
> /source/blender/imbuf/IMB_imbuf.h.
> I'll try and tidy the stuff when i'm back from holidays.

Thank you! Now the problem has resurfaced on the other end... 
usiblender.c

I've tried using #undef ID and moving some #includes around thus:

#ifdef WITH_QUICKTIME
#include "quicktime_export.h"
#ifdef _WIN32
#include <QTML.h>
#include <Movies.h>
#elif defined (__APPLE__)
#undef NDEBUG
#include <QuickTime/Movies.h>
#endif /* __APPLE__ */
#endif /* WITH_QUICKTIME */

#undef ID
#include "DNA_object_types.h"

But this isn't working. DNA_object_types.h still runs into typedef 
struct ID and chokes, complaining of a duplicate definition.

Am I misusing #undef?

Thanks for your work. I think what's happened here is that the latest 
update of Apple's developer tools included new headers for several key 
QuickTime functions to work with QuickTime 6.3 and this is now causing 
these breaks. I appreciate your efforts!

Looking forward to the day when someone compiles Blender for a G5...

-Bischofftep