I want to generate meshes for CCX on a computing cluster for which I do not have access to X headers or OpenGL. In this context, I don’t need to visualization capabilities of CGX. Is there a way to build CGX without its visualization toolkit and GUI ?
Using the -bg flag, you can run cgx without a graphics context.
So that is possible.
You could try building the binary on another machine (with the same hardware architacture) that does have the X11 headers and OpenGL installed, and then statically link it with all the X11 related libraries.