I'm trying to build LibreOffice (to use it with LibreOffice Online) using build wrapper from https://github.com/husisusi/officeonlin-install.sh
There is no problem with the wrapper itself, but the build is failed in cppuhelper with the following error:
/opt/libreoffice/cppuhelper/source/component_context.cxx: In member function ‘virtual void cppu::ComponentContext::disposing()’:
/opt/libreoffice/cppuhelper/source/component_context.cxx:394:17: error: expected unqualified-id before ‘[’ token
for ( auto& [rName, rEntry] : m_map )
It seems that the commit, changed this line is 58ef4b593bba3d592e07e0f25140808c74f8aa0f
Probably, something is needed on the compiler level to overcome this issue. Please, help.
(In reply to Peter from comment #0)
> I'm trying to build LibreOffice (to use it with LibreOffice Online) using
> build wrapper from https://github.com/husisusi/officeonlin-install.sh
> There is no problem with the wrapper itself, but the build is failed in
> cppuhelper with the following error:
> /opt/libreoffice/cppuhelper/source/component_context.cxx: In member function
> ‘virtual void cppu::ComponentContext::disposing()’:
> /opt/libreoffice/cppuhelper/source/component_context.cxx:394:17: error:
> expected unqualified-id before ‘[’ token
> for ( auto& [rName, rEntry] : m_map )
@Stephan, I thought you might be interested in this issue
What revision of LibreOffice are you trying to build? What version of what C++ compiler are you using?
Collabora Office 188.8.131.52
Branch distro/collabora/cp-6.2 (head)
I tried both gcc 6.3.0 and clang 7.0.1
see <https://gerrit.libreoffice.org/c/core/+/83472/2#message-7bc0ff3eecb502304f503e52f6a2c4b63dbce382>: "This requires C++17. I thought we don't allow that on this branch?"
This requires a newer compiler, something like GCC 7 or newer. Otherwhise distro/collabora/cp-6.2 is a vendor branch, if you wish to build LibreOffice Online, use master instead.