glvis
glvis copied to clipboard
CMake tries to install GLVis, although it build glvis
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?
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!
Same here on FreeBSD. The 4.2 release is broken.
Can you please try #239? It worked for me on my Linux desktop.
I worked around the issue on FreeBSD by installing the executable manually. Thanks!