[KDE/Mac] Building kactivities (Boost failure)

René J.V. Bertin rjvbertin at gmail.com
Fri Jun 12 20:05:58 UTC 2015

On Friday June 12 2015 11:53:53 Allen Winter wrote:

Hi Allen,

> Apologies if this has been discussed before.
> I'm trying to build on my Macbook OSX 10.9, clang version 5.0, with kdesrc-build.

You should start by getting the latest Xcode for OS X 10.9, v6.2 (with Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)) from here:
(direct link: http://adcdownload.apple.com/Developer_Tools/Xcode_6.2/Xcode_6.2.dmg)
(you may need to sign up for a free developer account to get access to this download).

> I got as far as kactivities, which is failing as follows:

What version of kactivities is that? I have 4.13.3 installed through MacPorts.

> In file included from /usr/local/include/boost/range/concepts.hpp:19:
> /usr/local/include/boost/concept_check.hpp:168:5: error: non-type template argument refers to function 'failed' that does not have linkage
>     BOOST_CONCEPT_USAGE(CopyConstructible) {
>     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /usr/local/include/boost/concept/usage.hpp:29:7: note: expanded from macro 'BOOST_CONCEPT_USAGE'
>       BOOST_CONCEPT_ASSERT((boost::concepts::usage_requirements<model>)); \
>       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /usr/local/include/boost/concept/assert.hpp:43:5: note: expanded from macro 'BOOST_CONCEPT_ASSERT'
>     BOOST_CONCEPT_ASSERT_FN(void(*)ModelInParens)
>     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> I have boost 1.57.0, cmake says min version required is 1.49
> anyway, help.

I have boost 1.56.0, built without support for single-threaded libraries but that shouldn't be what makes the difference here, and the lines in the files cited above are identical in 1.56.0 as in 1.57.0 .

Two possibilities why I have not encountered this issue:
- you may need to enable C++11 mode explicitly (but I don't see that done by the MacPorts version)
- you may need to disable building the activityranking plugin, as MacPorts does.


More information about the kde-mac mailing list