Dear All,
I attempted to build the TexGen open-source code on an Ubuntu Linux machine. Before building the source code, I needed to install the following dependencies: CMake, SWIG, and VTK. While I successfully installed CMake and SWIG, I encountered issues while compiling VTK6.3.
/usr/include/c++/13/bits/stl_tree.h:772:15: error: static assertion failed: comparison object must be invocable as const 772 | is_invocable_v, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I believe this error is due to a compatibility issue with the C++ compiler version, which may not be compatible with VTK 6.30 for building its source code.
By default, my machine uses GCC 7.5.0 as the C++ compiler. To address the compatibility issues, I installed newer versions of GCC, specifically GCC 13.0 and 14.0. However, despite installing these updated C++ compilers, my machine continues to use the older GCC version (7.5.0) when building the VTK source code, which in turn affects both VTK6.3 and TexGen source build.
Could anyone advise on how to resolve this issue and ensure that my machine uses the updated GCC compiler for building VTK and TexGen? . Thanks in advance Pandi P