stevenlovegrove / Pangolin

Pangolin is a lightweight portable rapid development library for managing OpenGL display / interaction and abstracting video input.
MIT License
2.39k stars 854 forks source link

Pangolin uninstall (reopened) #919

Closed dkobayas-cyber closed 7 months ago

dkobayas-cyber commented 7 months ago

I followed advice from @GoWest279 in https://github.com/stevenlovegrove/Pangolin/issues/438 but I cannot uninstall the Pangolin.

dkobayas@Ubuntu22:~/Documents/Pangolin/build$ ls
CMakeCache.txt         libpango_glgeometry.so    libpango_windowing.so
CMakeFiles             libpango_image.so         libtinyobj.so
cmake_install.cmake    libpango_opengl.so        Makefile
cmake_uninstall.cmake  libpango_packetstream.so  PangolinConfig.cmake
examples               libpango_plot.so          PangolinConfigVersion.cmake
fonts.cpp              libpango_python.so        PangolinTargets.cmake
include                libpango_scene.so         shaders.cpp
libpango_core.so       libpango_tools.so         tools
libpango_display.so    libpango_vars.so          xdg-shell-client-protocol.h
libpango_geometry.so   libpango_video.so         xdg-shell-protocol.c
dkobayas@Ubuntu22:~/Documents/Pangolin/build$ sudo make uninstall
[sudo] password for dkobayas: 
CMake Error at cmake_uninstall.cmake:2 (message):
  Cannot find install manifest:
  /home/dkobayas/Documents/Pangolin/build/install_manifest.txt

make[3]: *** [CMakeFiles/uninstall.dir/build.make:70: CMakeFiles/uninstall] Error 1
make[2]: *** [CMakeFiles/Makefile2:866: CMakeFiles/uninstall.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:873: CMakeFiles/uninstall.dir/rule] Error 2
make: *** [Makefile:364: uninstall] Error 2

Note: The reason why I want to uninstall in the first place is that I want to clean-install the Pangolin. I accidentally moved around the installed package, which causes ane error: libpango_display.so: cannot open shared object file: No such file or directory. If there is any other way to solve this issue, I won't have to uninstall the Pangolin.

christian-rauch commented 7 months ago

What generator did you use to build Pangolin? make uninstall will only work when you use the default "Unix Makefile" generator. Could it be that you are using the wrong generator?

In any case, installing and uninstalling like this wit the Ninja generator works:

cmake -B build -G Ninja -D CMAKE_INSTALL_PREFIX=$(pwd)/install
cmake --build build/ --target install
cmake --build build/ --target uninstall