GLVis / glvis

Lightweight OpenGL tool for accurate and flexible finite element visualization
http://glvis.org
BSD 3-Clause "New" or "Revised" License
249 stars 51 forks source link

Fatal error building GLVis #276

Closed Wayne901 closed 6 months ago

Wayne901 commented 6 months ago

I have built MFEM 4.6 serially with CMake. Then I build GLVis 4.2 with "make ../MFEM_DIR=xxx -j" and it first says "make: cc: command not found". So i link /usr/bin/cc to /usr/bin/gcc, with gcc version 10.1.0. However, it then returns the error ![Uploading Snipaste_2024-02-24_20-31-09.png…]()

Or when i install GLVis with CMake with "tar -zxvf glvis.tgz cd glvis mkdir build cd build cmake xxxx", it doesn not generate a Makefile in build directory.

Wayne901 commented 6 months ago

The error is Snipaste_2024-02-24_20-31-09

v-dobrev commented 6 months ago

If you used CMake to build MFEM, you should use CMake to build GLVis too.

If you are on Ubuntu, try installing the package libxi-dev which contains the file /usr/include/X11/extensions/XInput2.h, see e.g. https://packages.ubuntu.com/mantic/amd64/libxi-dev/filelist.

If you are using a different distribution, try to find which package provides the missing file, X11/extensions/XInput2.h.

v-dobrev commented 6 months ago

One remark: since you are using MFEM v4.6, it's probably best to use the latest master branch of GLVis instead of v4.2 since it is older than MFEM v4.6.

Wayne901 commented 6 months ago

Thank you. Installing libXi-devel solved the problem.