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 devlist+unsubscr...@kicad.org.
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.

Reply via email to