Context: I'm trying to run CMake as described here (under Linux-installing dependencies > Building OpenVDB). I'm in WSL.
When I do so I get this error:
CMake Deprecation Warning at CMakeLists.txt:259 (message):
Support for CMake versions < 3.12 is deprecated and will be removed.
-- CMake Build Type: Release
CMake Error at CMakeLists.txt:445 (message):
Insufficient g++ version. Minimum required is "6.3.1". Found version
"5.4.0"
-- Configuring incomplete, errors occurred!
So it obviously needs G++ version 6 instead of 5. If I run g++ --version
, I do indeed have version 5.4.0.
However I've been troubleshooting and I haven't had much luck actually updating G++. I ran apt-get install g++-6
and it seemed to install the package, but the g++ version hasn't changed and I can't locate where g++-6 actually is.
I also ran dpkg -L g++-6
and it claimed that g++-6 isn't installed. I'm learning WSL/apt/g++ as I go here so I might be ignorant about obvious things I'm doing wrong.