Problem building appleseed on windows

53 views
Skip to first unread message

Srinath Ravichandran

unread,
May 24, 2017, 1:09:43 PM5/24/17
to appleseed-dev
Hi

I've tried to build the latest source of appleseed on windows 10. I'm getting this weird error with regards to boost

1>appleseed\src\appleseed\foundation/platform/thread.h(301): error C2280: 'boost::detail::spinlock &boost::detail::spinlock::operator =(const boost::detail::spinlock &)': attempting to reference a deleted function (compiling source file appleseed\src\appleseed\foundation\meta\tests\test_job.cpp)
1>  libraries\boost_1_64_0\boost/smart_ptr/detail/spinlock_std_atomic.hpp(76): note: compiler has generated 'boost::detail::spinlock::operator =' here (compiling source file appleseed\src\appleseed\foundation\meta\tests\test_job.cpp)

My configuration:
OS: windows 10 - x64
Boost: 1.63.0
VS: 2015 - x64

Is the above boost version not supported? Should I go for a lower version to compile appleseed?

Srinath Ravichandran

unread,
May 24, 2017, 1:36:48 PM5/24/17
to appleseed-dev
There's been a typo in my post.

I'm using Boost 1.64.0 and not 1.63.0

Regis Vaquette

unread,
May 25, 2017, 4:13:49 AM5/25/17
to appleseed-dev
Hi Srinath,

You have to use the Visual Studio 2017 build tools (v141) because the Visual Studio 15 tools have a bug that causes this error.

Regis

Regis Vaquette

unread,
Jun 9, 2017, 7:27:17 AM6/9/17
to appleseed-dev
Sorry, it's not the right reason.

To correct the problem you must define BOOST_NO_CXX11_HDR_ATOMIC in order to include spinlock_w32.hpp rather than boost/smart_ptr/detail/spinlock_sync.hpp (cf spinlock.hpp).

Regis

François Beaune

unread,
Jun 9, 2017, 7:31:43 AM6/9/17
to apples...@googlegroups.com
Hey Regis,

Thanks for the details!

As far as I know, the Windows build instructions on the website (https://github.com/appleseedhq/appleseed/wiki/Building-appleseed-on-Windows) are fully accurate and work if closely followed.

In particular I never had to define BOOST_NO_CXX11_HDR_ATOMIC but maybe that's because I only ever tried Boost 1.55 and Boost 1.61?

Franz

--
You received this message because you are subscribed to the Google Groups "appleseed-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to appleseed-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages