Problem compiling 5.1.6 in Linux 64-bit

Hello,
I tried to compile the 5.1.6 stable, but got this error (at 31%):

kicad/kicad-5.1.6/include/tool/selection.h:261:23: error: ‘all_of’ is not a member of ‘std’
261 | return ( std::all_of( m_items.begin() + 1, m_items.end(),
| ^~~~~~
make[2]: *** [common/CMakeFiles/common.dir/build.make:709: common/CMakeFiles/common.dir/widgets/lib_tree.cpp.o] Error 1

How can I fix the above ?
The 5.1.5 compiles well.

5.1.6 doesn’t have the line that the error references: https://gitlab.com/kicad/code/kicad/-/blob/5.1.6/include/tool/selection.h

The nighlty has: https://gitlab.com/kicad/code/kicad/-/blob/master/include/tool/selection.h#L262
You probably didn’t check out the right tag.

If you need to compile nightly you probably need to update your compiler or enable c++11 features if they are not enabled by default.

The master branch (v6 development) requires C++14 minimum.

2 Likes

I overwrited the existing selection.h file by the version:
https://gitlab.com/kicad/code/kicad/-/blob/master/include/tool/selection.h.
Compiling went fine, thanks !

1 Like