Hi Mathias,

Unfortunately your suggested change will break the OSX build.  For a
reasons I can't explain linking to SDL under OSX is a bit of dark art
because of the way that it integrates with Cocoa.  If you define your
problem in the conventional way such as putting the main after the
SDL.h header then you get a link error about an undefined _main()
symbol.  If you put the SDL.h header after the main it compiles and
links fine....


There are other hacks to get it compile under OSX that involve compile
Objective C files as long with your app, but in the case osgmovie I
only want SDL to implement audio, I don't need any other stuff.  I
don't a simple example to descend into lots of platform specific
hacks.  Frankly the SDL team have taken some bad turns under OSX, take
a perfectly good cross platform API and.... make it non portable all
for the sake of pandering to Apple's "special" way of doing things.

Any way I've move the static callback function to after the SDL.h and
it still compiles fine for me under Linux.  Could you try an svn
update and let me know if it now works.

Cheers,
Robert.


2009/5/13 Mathias Fröhlich <[email protected]>:
>
> Hi Robert,
>
> Make osgmovie compile on my machine. That is include SDL.h before types from
> SDL.h are used.
>
> Based on rev 10190. Please apply.
>
> Thanks!
>
> Mathias
>
> --
> Dr. Mathias Fröhlich, science + computing ag, Software Solutions
> Hagellocher Weg 71-75, D-72070 Tuebingen, Germany
> Phone: +49 7071 9457-268, Fax: +49 7071 9457-511
> --
> Vorstand/Board of Management:
> Dr. Bernd Finkbeiner, Dr. Roland Niemeier,
> Dr. Arno Steitz, Dr. Ingrid Zech
> Vorsitzender des Aufsichtsrats/
> Chairman of the Supervisory Board:
> Michel Lepert
> Sitz/Registered Office: Tuebingen
> Registergericht/Registration Court: Stuttgart
> Registernummer/Commercial Register No.: HRB 382196
>
>
> _______________________________________________
> osg-submissions mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>
>
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to