glvis icon indicating copy to clipboard operation
glvis copied to clipboard

CMake tries to install GLVis, although it build glvis

Open sshiraiwa opened this issue 2 years ago • 1 comments

I am trying to build GLvis. and seeing a strange error. I am using a linux box (Rocky8.6) and cnmake

I did call cmake, first $ cmake .. -DCMAKE_VERBOSE_MAKEFILE=1 -DCMAKE_INSTALL_PREFIX=${TwoPiRoot} -DMFEM_DIR=${TwoPiRoot}/src/mfem/cmbuild_ser -DCMAKE_BUILD_TYPE="Release"

Then, "make -j" works fine, and it create glvis. $ make -j

However, "make install" spits out the following error. It seems it is looking for GLVis instead of glvis.

Install the project... /home/sshiraiw/twopi_roots/20220725/lib/python3.9/site-packages/cmake/data/bin/cmake -P cmake_install.cmake -- Install configuration: "Release" -- Installing: /home/sshiraiw/twopi_roots/20220725/bin/glvis -- Set runtime path of "/home/sshiraiw/twopi_roots/20220725/bin/glvis" to "/home/sshiraiw/twopi_roots/20220725/src/mfem/cmbuild_ser" CMake Error at cmake_install.cmake:72 (file): file INSTALL cannot find "/home/sshiraiw/twopi_roots/20220725/src/glvis/cmbuild/GLVis": No such file or directory.

Am I missing something?

sshiraiwa avatar Jul 26 '22 15:07 sshiraiwa

It looks like we have some CMake commands related to building a MacOS app that are not properly guarded/skipped on other platforms: https://github.com/GLVis/glvis/blob/0b8d5547e027f8ff26d38415206541f1ecfb870b/CMakeLists.txt#L319-L339

Maybe you can just comment out this part: https://github.com/GLVis/glvis/blob/0b8d5547e027f8ff26d38415206541f1ecfb870b/CMakeLists.txt#L333-L339

We'll probably need to create a PR to fix this. Thanks for reporting the issue!

v-dobrev avatar Jul 26 '22 23:07 v-dobrev

Same here on FreeBSD. The 4.2 release is broken.

yurivict avatar Aug 24 '22 16:08 yurivict

Can you please try #239? It worked for me on my Linux desktop.

v-dobrev avatar Aug 24 '22 19:08 v-dobrev

I worked around the issue on FreeBSD by installing the executable manually. Thanks!

yurivict avatar Aug 24 '22 20:08 yurivict