[Bf-committers] Help Moving Code: QT

John K. Walton bf-committers@blender.org
Wed, 10 Sep 2003 18:45:14 -0400 (EDT)


on the subject of quicktime, I'll reveal (without avi's permission i
guess), that the irix platform is planning on adding quicktime support for
native supplied codecs. so, please keep the conversation on the mail list.
thanks!
john

On Wed, 10 Sep 2003, Ton Roosendaal wrote:

> Hi,
> 
> Lucky I never upgrade stuff until it's absolutely required! :)
> 
> I have no idea how the ID is defined in the quicktime libs, but when  
> that's not a typedef, the #undef won't work.
> 
> Rob changed code to remove Quicktime code from Blender, I guess he  
> should do that for usiblender.c as well... or check what he did, and  
> copy it.
> 
> -Ton-
> 
> 
> On Wednesday, Sep 10, 2003, at 23:03 Europe/Amsterdam, Douglas Bischoff  
> wrote:
> 
> > 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
> >
> > _______________________________________________
> > Bf-committers mailing list
> > Bf-committers@blender.org
> > http://www.blender.org/mailman/listinfo/bf-committers
> >
> >
> ------------------------------------------------------------------------ 
> --
> Ton Roosendaal  Blender Foundation ton@blender.org  
> http://www.blender.org
> 
> _______________________________________________
> Bf-committers mailing list
> Bf-committers@blender.org
> http://www.blender.org/mailman/listinfo/bf-committers
>