Re: [osg-users] quicktime plugin fails to compile on OS X 10.5

2010-02-01 Thread Ulrich Hertlein
Hi Stephan,

On 30/01/10 19:30 , Stephan Huber wrote:
 Am 30.01.10 04:38, schrieb Ulrich Hertlein:
 I'm not too familiar with QT/QD anyhow so I thought I'd flag it here instead.
 
 It seems, that the last submission for the quicktime plugin was tested
 only on windows.
 
 can you try to replace the offending line from
 
 Rect bounds = (*GetMovieBoundsRgn(_movie))-rgnBBox;
 
 to
 
 Rect bounds;
 GetRegionBounds(GetMovieBoundsRgn(_movie), bounds);

I can confirm that that compiles and runs fine.
Does that need to be #ifdef'd for OS X or should that work cross platform?

Cheers,
/ulrich
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] quicktime plugin fails to compile on OS X 10.5

2010-02-01 Thread Serge Lages
Hi Guys,

Sorry for this one, I'll try on windows if GetRegionBounds works and
resubmit a patch.

Cheers,

On Mon, Feb 1, 2010 at 9:37 AM, Ulrich Hertlein u.hertl...@sandbox.dewrote:

 Hi Stephan,

 On 30/01/10 19:30 , Stephan Huber wrote:
  Am 30.01.10 04:38, schrieb Ulrich Hertlein:
  I'm not too familiar with QT/QD anyhow so I thought I'd flag it here
 instead.
 
  It seems, that the last submission for the quicktime plugin was tested
  only on windows.
 
  can you try to replace the offending line from
 
  Rect bounds = (*GetMovieBoundsRgn(_movie))-rgnBBox;
 
  to
 
  Rect bounds;
  GetRegionBounds(GetMovieBoundsRgn(_movie), bounds);

 I can confirm that that compiles and runs fine.
 Does that need to be #ifdef'd for OS X or should that work cross platform?

 Cheers,
 /ulrich
 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org




-- 
Serge Lages
http://www.tharsis-software.com
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] quicktime plugin fails to compile on OS X 10.5

2010-02-01 Thread Serge Lages
Hi,

Here is the corrected patch with a #ifdef to compile on all platforms.

Cheers,

On Mon, Feb 1, 2010 at 10:01 AM, Serge Lages serge.la...@gmail.com wrote:

 Hi Guys,

 Sorry for this one, I'll try on windows if GetRegionBounds works and
 resubmit a patch.

 Cheers,

 On Mon, Feb 1, 2010 at 9:37 AM, Ulrich Hertlein u.hertl...@sandbox.dewrote:

 Hi Stephan,

 On 30/01/10 19:30 , Stephan Huber wrote:
  Am 30.01.10 04:38, schrieb Ulrich Hertlein:
  I'm not too familiar with QT/QD anyhow so I thought I'd flag it here
 instead.
 
  It seems, that the last submission for the quicktime plugin was tested
  only on windows.
 
  can you try to replace the offending line from
 
  Rect bounds = (*GetMovieBoundsRgn(_movie))-rgnBBox;
 
  to
 
  Rect bounds;
  GetRegionBounds(GetMovieBoundsRgn(_movie), bounds);

 I can confirm that that compiles and runs fine.
 Does that need to be #ifdef'd for OS X or should that work cross platform?

 Cheers,
 /ulrich
 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org




 --
 Serge Lages
 http://www.tharsis-software.com




-- 
Serge Lages
http://www.tharsis-software.com


MovieData.cpp
Description: Binary data
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] quicktime plugin fails to compile on OS X 10.5

2010-02-01 Thread Robert Osfield
Thanks Serge, fix now merged and submitted to svn/trunk.  One thing
that does make me wonder is whether the Windows and OSX paths will now
behave differently.  Is there any chance that this might happen?

On Mon, Feb 1, 2010 at 9:18 AM, Serge Lages serge.la...@gmail.com wrote:
 Hi,
 Here is the corrected patch with a #ifdef to compile on all platforms.
 Cheers,

 On Mon, Feb 1, 2010 at 10:01 AM, Serge Lages serge.la...@gmail.com wrote:

 Hi Guys,
 Sorry for this one, I'll try on windows if GetRegionBounds works and
 resubmit a patch.
 Cheers,

 On Mon, Feb 1, 2010 at 9:37 AM, Ulrich Hertlein u.hertl...@sandbox.de
 wrote:

 Hi Stephan,

 On 30/01/10 19:30 , Stephan Huber wrote:
  Am 30.01.10 04:38, schrieb Ulrich Hertlein:
  I'm not too familiar with QT/QD anyhow so I thought I'd flag it here
  instead.
 
  It seems, that the last submission for the quicktime plugin was tested
  only on windows.
 
  can you try to replace the offending line from
 
  Rect bounds = (*GetMovieBoundsRgn(_movie))-rgnBBox;
 
  to
 
  Rect bounds;
  GetRegionBounds(GetMovieBoundsRgn(_movie), bounds);

 I can confirm that that compiles and runs fine.
 Does that need to be #ifdef'd for OS X or should that work cross
 platform?

 Cheers,
 /ulrich
 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



 --
 Serge Lages
 http://www.tharsis-software.com



 --
 Serge Lages
 http://www.tharsis-software.com

 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] quicktime plugin fails to compile on OS X 10.5

2010-01-30 Thread Stephan Huber
Hi Ulrich, hi Serge

Am 30.01.10 04:38, schrieb Ulrich Hertlein:
 I'm not too familiar with QT/QD anyhow so I thought I'd flag it here instead.

It seems, that the last submission for the quicktime plugin was tested
only on windows.

can you try to replace the offending line from

Rect bounds = (*GetMovieBoundsRgn(_movie))-rgnBBox;

to

Rect bounds;
GetRegionBounds(GetMovieBoundsRgn(_movie), bounds);

and test if this compile successfully and work with your movies?

I am not on my dev-machine so can't test this fix personally,

cheers,
Stephan
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] quicktime plugin fails to compile on OS X 10.5

2010-01-29 Thread Ulrich Hertlein
Hi guys,

the quicktime plugin (trunk, r11031) doesn't compile (cmake) for me under OS X 
10.5.8:

/Users/uli/Projects/osg/OpenSceneGraph/src/osgPlugins/quicktime/MovieData.cpp: 
In member
function ‘void MovieData::load(osg::Image*, std::string, float)’:
/Users/uli/Projects/osg/OpenSceneGraph/src/osgPlugins/quicktime/MovieData.cpp:96:
 error:
base operand of ‘-’ has non-pointer type ‘OpaqueRgnHandle’

(This line was last changed in r11019.)

The only mention of 'OpaqueRgnHandle' that I've found is in QuickdrawTypes.h 
but doesn't
look like it would solve the issue:

typedef struct OpaqueRgnHandle* RgnHandle;

I'm not too familiar with QT/QD anyhow so I thought I'd flag it here instead.

Cheers,
/ulrich
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org