Inconsistent building error "error: expected a ";" "

I doubt it, as VTK 9.4.2 does not use glew at all.

Also the error you shared show ParaView, not VTK.