[osg-users] [build] osgslice build failure on OSX
Ravi Mathur
ravidavi at utexas.edu
Wed Sep 11 11:02:09 PDT 2019
Thanks for the input Laurens. You're right, it is because of the
USE_GRAPHICSWINDOW() macro called from osgslice and defined in
osgViewer/GraphicsWindow. If I change the macro to use Cocoa, osgslice
compiles and runs fine. Laurens' PR does the same thing, but more
gracefully and with backwards compatibility, so I support his approach.
Ravi
On Wed, Sep 11, 2019 at 4:32 AM Voerman, L. <l.voerman at rug.nl> wrote:
> Hi Robert,
> The reference comes from include/osgViewer/GraphicsWindow near the end of
> the file:
> USE_GRAPICSWINDOW_IMPLEMENTATION(Carbon)
>
> I've created a pull request with a possible fix here
> <https://github.com/openscenegraph/OpenSceneGraph/pull/837>; however
> - I dont have an apple so I can't test anything
> - I got unsure if it's possible to build with mutiple windowing systems,
> and whether we should prefer cocoa if available.
>
> On the other hand my PR will fix the build on modern apple systems without
> making the build impossible on carbon systems. I don't know if the carbon
> system is used anyway; the current master tree will probably not link the
> osgSlice example when building with the carbon windowing system.
> Laurens.
>
> On Wed, Sep 11, 2019 at 9:54 AM Robert Osfield <robert.osfield at gmail.com>
> wrote:
>
>> Hi Ravi,
>>
>> On Tue, 10 Sep 2019 at 16:34, Ravi Mathur <ravidavi at utexas.edu> wrote:
>>
>>> I've tried on OSG 3.6.3 and 3.6.4. You can see from the error I posted
>>> that it's because of the Carbon graphics window type, which hasn't existed
>>> on osx for some time. Might be that other Mac OSG users are on older osx
>>> versions.
>>>
>>
>> I have a quick look through osgslice and couldn't see any reference to
>> platform specific windowing. Where is the reference to Carbon coming from?
>>
>> Robert.
>>
>> _______________________________________________
>> osg-users mailing list
>> osg-users at lists.openscenegraph.org
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20190911/1e2b8036/attachment.html>
More information about the osg-users
mailing list