Aste compiling error

Received error while compiling:
cmake_log.txt (5.0 KB)
make_log.txt (962 Bytes)
build.make.txt (32.3 KB)

make[2]: *** No rule to make target ‘/usr/lib/libGL.so’, needed by ‘precice-aste-run’. Stop.

locate -b libGL.so returns:
/scratcha-fdgs/lux/softwares/ParaView-5.9.1-RC1-MPI-Linux-Python3.8-64bit/lib/mesa/libGL.so
/scratcha-fdgs/lux/softwares/ParaView-5.9.1-RC1-MPI-Linux-Python3.8-64bit/lib/mesa/libGL.so.1
/scratcha-fdgs/lux/softwares/ParaView-5.9.1-RC1-MPI-Linux-Python3.8-64bit/lib/mesa/libGL.so.1.5.0
/usr/lib/libGL.so.1
/usr/lib/libGL.so.1.7.0
/usr/lib64/libGL.so
/usr/lib64/libGL.so.1
/usr/lib64/libGL.so.1.7.0

How to resolve this? thanks!

Hi @Ya_Squall,
the error you show usually happens because the OpenGL library, which provides libGL.so, is not installed or not found in the expected location. Here, OpenGL is an implicit dependency via VTK. It looks for libGL.so in /usr/lib/libGL.so. Either the library is not there or not visible for your compiler. How did you install VTK?

Thanks. I did the installation within miniForge by conda install vtk.

I have learned to avoid installing common system dependencies via Conda, as it is very easy to get into a situation where conflicting versions of dependencies are used together (version A from the system, and version B from Conda).

In any case, could it be that the VTK package does not install libGL.so?

Is that file present in your system?

Do you have other ways to install VTK, such as via Spack?