[osg-users] Building OSG on Mac OS X 10.11.5
Wietse Jacobs
wietse.j at gmail.com
Mon Jun 13 03:50:21 PDT 2016
Hello François,
On Mon, Jun 13, 2016 at 11:31 AM François Bérard <francois.berard at imag.fr>
wrote:
> I just built the same OSG (same git rev-parse HEAD).
>
> OS X 10.11.5
> CMake 3.5.2
> Xcode 7.3 (i.e. the only apparent difference with your setup).
>
> I get the same cmake warning about MACOSX_RPATH, which is expected, cf
> bottom of the following post.
>
> http://article.gmane.org/gmane.comp.graphics.openscenegraph.user/89981
>
> The build displays a few warnings, but no error. See attached build log
> (the line ordering is a bit messed up due to the parallel build).
>
> I think that the normal unix way to point to shared libraries that are
> not in "system" locations is using "DYLD_LIBRARY_PATH", I was not aware
> of the "DYLD_FALLBACK_LIBRARY_PATH" variable.
>
I mainly work on windows, so I had to look that up when I was trying to
solve the "image not loaded" error when running osgviewer. I came across a
post *somewhere* that for development purposes it's wiser to us
"DYLD_FALLBACK_LIBRARY_PATH"
and not interfere with "DYLD_LIBRARY_PATH". It's supposed to do what the
name implies: "use this if all else fails...". But I know it's a hack.
...so, I don't understand your "implicit instantiation" errors. Is this
> related to the Xcode 7.3.1 update? Did you play with your c++ library
> somehow?
>
:) I did not play with my c++ library!
Seriously, no. But searching around for this problem gave many results that
point to a transition from using gcc to clang in Xcode and the difference
between using libstdc++ and libc++ as the standard library (for example:
https://github.com/qpdf/qpdf/issues/19). Does that mean anything to you? On
the other hand, that transition was made a few releases ago so I would
expect you to get the same error if that were the reason.
But anyway, since "ref_ptr" doesn't #include <string> it was apparently
relying on an implicit #include *somewhere else*, so it must be that with
my setup that no longer happens. Sadly I haven't got the time right now to
track it down further...
Wietse
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20160613/d66c5bf1/attachment-0002.htm>
More information about the osg-users
mailing list