Discussion:
[Opensg-users] Build problems with boost
Andy Somogyi
2017-01-23 17:21:25 UTC
Permalink
Hi,

I’m trying to build opensg on MacOS 10.12 Sierra, and it fails when trying accessing boost.

What version of boost is opensg supposed to work with?. I’m using 1.63.0 installed from Brew.

Boost it built without C++11 support, and I try to build Opensg the same way, i.e. disabling C++11.

I’m using Clang 8.0.

On another note, how does opensg compare complexity wise to openscenegraph. Reason I ask is I’m looking for a simple scene graph library that does not add a significant amount on top of OpenGL, I’m looking to stay as simple and as close to the underlying OpenGL as possible.

thanks




/Users/andy/src/opensg/Source/Base/Base/OSGAtomic.h:72:27: error: no member named 'atomic_exchange_and_add' in namespace 'boost::detail'
return boost::detail::atomic_exchange_and_add(pValue, rcDelta);
~~~~~~~~~~~~~~~^
/Users/andy/src/opensg/Source/Base/Base/OSGAtomic.h:81:37: error: cannot initialize a parameter of type 'atomic_int_least32_t *'
(aka '_Atomic(boost::int_least32_t) *') with an lvalue of type 'RefCountStore *' (aka 'int *')
boost::detail::atomic_increment(pValue);
^~~~~~
/usr/local/include/boost/smart_ptr/detail/sp_counted_base_clang.hpp:29:54: note: passing argument to parameter 'pw' here
inline void atomic_increment( atomic_int_least32_t * pw )
Carsten Neumann
2017-01-23 19:58:48 UTC
Permalink
Hello,
Post by Andy Somogyi
I’m trying to build opensg on MacOS 10.12 Sierra, and it fails when trying accessing boost.
What version of boost is opensg supposed to work with?. I’m using 1.63.0 installed from Brew.
I usually just use what comes with the linux distro, in my case that is
currently still Fedora 23, that would mean boost 1.59.0 (I think).
Post by Andy Somogyi
Boost it built without C++11 support, and I try to build Opensg the same way, i.e. disabling C++11.
I’m using Clang 8.0.
On another note, how does opensg compare complexity wise to openscenegraph. Reason I ask is I’m looking for a simple scene graph library that does not add a significant amount on top of OpenGL, I’m looking to stay as simple and as close to the underlying OpenGL as possible.
I'm not deeply familiar with OpenSceneGraph. I would imagine the level
of abstraction is somewhat comparable. In general scene graphs have
fallen a bit out of favor and game engines become more popular as the
basis for interactive applications. What makes the most sense (as ever
;) ) depends on your application.
Post by Andy Somogyi
/Users/andy/src/opensg/Source/Base/Base/OSGAtomic.h:72:27: error: no member named 'atomic_exchange_and_add' in namespace 'boost::detail'
return boost::detail::atomic_exchange_and_add(pValue, rcDelta);
~~~~~~~~~~~~~~~^
/Users/andy/src/opensg/Source/Base/Base/OSGAtomic.h:81:37: error: cannot initialize a parameter of type 'atomic_int_least32_t *'
(aka '_Atomic(boost::int_least32_t) *') with an lvalue of type 'RefCountStore *' (aka 'int *')
boost::detail::atomic_increment(pValue);
^~~~~~
/usr/local/include/boost/smart_ptr/detail/sp_counted_base_clang.hpp:29:54: note: passing argument to parameter 'pw' here
inline void atomic_increment( atomic_int_least32_t * pw )
Hmm, looks like this is making use of boost atomic internals which
appear to have changed in more recent boost. This would require a little
bit of investigation to find out what the replacement should be.

Cheers,
Carsten

Continue reading on narkive:
Loading...