xiph / flac

Free Lossless Audio Codec
https://xiph.org/flac/
GNU Free Documentation License v1.3
1.58k stars 278 forks source link

`make install` appears to not generate required docs or the install command is outdated. #684

Closed jonathan-alvaro closed 1 month ago

jonathan-alvaro commented 3 months ago

As the title says, when I'm trying to run make install with sudo make install, I get the following error.

CMake Error at doc/cmake_install.cmake:46 (file):
  file INSTALL cannot find "/home/username/libs/flac/doc/api": No such file or
  directory.
Call Stack (most recent call first):
  cmake_install.cmake:113 (include)

Running find /home/usrname/libs -name api returns nothing, implying that there is no such file at all.

But, taking a look at the generated install file in the build/doc directory, there are the following lines:

if("x${CMAKE_INSTALL_COMPONENT}x" STREQUAL "xUnspecifiedx" OR NOT CMAKE_INSTALL_COMPONENT)
    file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/share/doc/FLAC/api" TYPE DIRECTORY FILES "/home/username/libs/flac/doc/api/")
endif()

I'm sorry if it's not related since I'm not that proficient in CMake. But, to me it seems that the install script is trying to copy the contents of libs/flac/doc/api, which is nonexistent. Is it possible that there are some steps in-between that I missed?

Thanks.