Andrew is correct. Many thanks. On Monday, January 23, 2023 at 10:44:45 AM UTC-8 [email protected] wrote:
> Hello, > > I don't think there is a bug. Some paths are calculated based on install > prefix and cached. If you change the install prefix you should clean cmake > cache before build. > > See > https://gitlab.com/kicad/code/kicad/-/blob/509b39e9e4523d053f7473bd8f755bc006e104ba/CMakeLists.txt#L556 > > Best, > Andrew > > On Sun, Jan 22, 2023 at 4:42 PM William Douglas <[email protected]> > wrote: > >> Just tried compiling the latest version of KiCad direct from source. For >> the "INSTALL_PREFIX" I specified a directory within my home directory. >> This was to prevent the new build from impacting my system. >> >> After building I attempted to install as the current user. This should >> be fine but it turned out to have problems. Looks like >> "/usr/local/share/kicad/resources" is being written to despite the newly >> provided installation prefix. Here is the result: >> >> -- Installing: >> /home/william/Applications/kicad/share/applications/org.kicad.pcbnew.desktop >> -- Installing: >> /home/william/Applications/kicad/share/applications/org.kicad.bitmap2component.desktop >> -- Installing: /home/william/Applications/kicad/share/metainfo >> -- Installing: >> /home/william/Applications/kicad/share/metainfo/org.kicad.kicad.metainfo.xml >> CMake Error at resources/bitmaps_png/cmake_install.cmake:54 (file): >> file cannot create directory: /usr/local/share/kicad/resources. Maybe need >> administrative privileges. >> Call Stack (most recent call first): >> resources/cmake_install.cmake:63 (include) >> cmake_install.cmake:57 (include) >> >> >> FAILED: CMakeFiles/install.util >> cd /home/william/Source/kicad/build/release && /usr/bin/cmake -P >> cmake_install.cmake >> ninja: build stopped: subcommand failed. >> >> It mostly works, but not all portions of the install script adhere to the >> requested install prefix. I used the build command: >> >> cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo >> -DCMAKE_INSTALL_PREFIX=/home/william/Applications/kicad -G Ninja ../../ >> >> Performing a build / install into a user home folder should not require >> superuser privileges. If there was a good reason then fine, but this error >> looks like an oversight so I thought I should make note of it here. >> >> Thanks for the great software, >> William >> >> -- >> You received this message because you are subscribed to the Google Groups >> "KiCad Developers" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/a/kicad.org/d/msgid/devlist/ba08aa7b-2cc4-4a41-ac29-ae4ea7c112dfn%40kicad.org >> >> <https://groups.google.com/a/kicad.org/d/msgid/devlist/ba08aa7b-2cc4-4a41-ac29-ae4ea7c112dfn%40kicad.org?utm_medium=email&utm_source=footer> >> . >> > -- You received this message because you are subscribed to the Google Groups "KiCad Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/a/kicad.org/d/msgid/devlist/775ca9fe-3ccf-469d-be88-f331222b6d49n%40kicad.org.
