Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMake build broken, tries to install man files in /man not in CMAKE_INSTALL_PREFIX #1083

Open
Vargol opened this issue Sep 16, 2023 · 0 comments

Comments

@Vargol
Copy link

Vargol commented Sep 16, 2023

Hi, I'm building brotli using the following configuration

cmake -DCMAKE_INSTALL_PREFIX:PATH=$3 -DINSTALL_PKGCONFIG_DIR=$3/lib/pkgconfig -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF ../${SOFTWARE}
checkStatus $? "configuration of ${SOFTWARE} failed"

$3 is /Users/xxxx/SSD/Source/BuildTest/build-ffmpeg/tool

${SOFTWARE} = brotli

And it tried to install the man files in root not the Install destination

Consolidate compiler generated dependencies of target brotli
[100%] Built target brotli
Install the project...
-- Install configuration: "Release"
-- Installing: /Users/xxxx/SSD/Source/BuildTest/build-ffmpeg/tool/bin/brotli
-- Installing: /Users/xxxx/SSD/Source/BuildTest/build-ffmpeg/tool/lib/libbrotlienc.a
-- Installing: /Users/xxxx/SSD/Source/BuildTest/build-ffmpeg/tool/lib/libbrotlidec.a
-- Installing: /Users/xxxx/SSD/Source/BuildTest/build-ffmpeg/tool/lib/libbrotlicommon.a
-- Up-to-date: /Users/xxxx/SSD/Source/BuildTest/build-ffmpeg/tool/include/brotli
-- Installing: /Users/xxxx/SSD/Source/BuildTest/build-ffmpeg/tool/include/brotli/shared_dictionary.h
-- Installing: /Users/xxxx/SSD/Source/BuildTest/build-ffmpeg/tool/include/brotli/port.h
-- Installing: /Users/xxxx/SSD/Source/BuildTest/build-ffmpeg/tool/include/brotli/types.h
-- Installing: /Users/xxxx/SSD/Source/BuildTest/build-ffmpeg/tool/include/brotli/encode.h
-- Installing: /Users/xxxx/SSD/Source/BuildTest/build-ffmpeg/tool/include/brotli/decode.h
-- Installing: /Users/xxxx/SSD/Source/BuildTest/build-ffmpeg/tool/lib/pkgconfig/libbrotlicommon.pc
-- Installing: /Users/xxxx/SSD/Source/BuildTest/build-ffmpeg/tool/lib/pkgconfig/libbrotlidec.pc
-- Installing: /Users/xxxx/SSD/Source/BuildTest/build-ffmpeg/tool/lib/pkgconfig/libbrotlienc.pc
CMake Error at cmake_install.cmake:99 (file):
file cannot create directory: /man/man1. Maybe need administrative
privileges.

This used to work, last confirmed successful build 16th August 2023

@Vargol Vargol changed the title CMakw build broken, tries to install man files in /man not in CMAKE_INSTALL_PREFIX CMake build broken, tries to install man files in /man not in CMAKE_INSTALL_PREFIX Sep 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant