Thread Previous • Date Previous • Date Next • Thread Next |
On 12/30/2014 04:57 AM, LordBlick wrote:
In response to a message written on 30.12.2014, 05:30, from inkblotter:I have my own pet peeve to complain about. I have a directory in my HOME director called 'sitepkgs'. This directory is on my PYTHON_PATH and indeed IThis already exist since around rev. 5148 - -DPYTHON_SITE_PACKAGE_PATH=<pypath> and earlier was -DPYTHON_DEST=<pypath|>can Import kicad packages in python. But, when I do a make install after doing a make clean && make -j10 I do a make install, which always fails because pcbnew/cmake_install.cmake insists on looking in/usr/lib/site-packages when it should be looking in ~/sitepkgs. So I edit that file and replace the offending lines and then I do not need to be root to install a kicad build. I first think about kicad looking in the variable PYTHON_PATH but I reject that since the PYTHON_PATH can include many paths,not just one. Would you consider yet another cmake variable like-DKICAD_SITE_PKGS=<some path>? Then people like me could use that flag and everyone else could use the default. This has the effect that one need notinstall as root to install kicad.|
| In response to bzr up to rev 5344 I did a make clean and reran cmakecmake -DKICAD_SCRIPTING=ON -DKICAD_SCRIPTING_MODULES=ON -DUSE_FP_LIB_TABLE=HARD_CODED_ON -DBUILD_GITHUB_PLUGIN=ON -DKICAD_USE_WEBKIT=OFF -DPYTHON_SITE_PACKAGE_PATH=/home/jfm/sitepkgs
Everything built OK jfm@localhost kicad.bzr]$ make install [ 0%] Built target boost [ 30%] Built target bitmaps [ 30%] Built target page_layout_lexer_source_files [ 30%] Built target lib-dependencies [ 30%] Built target netlist_lexer_source_files [ 38%] Built target common [ 38%] Built target fp_lib_table_lexer_source_files [ 38%] Built target shader_headers [ 39%] Built target gal [ 39%] Built target pcb_lexer_source_files [ 39%] Built target pcb_plot_lexer_source_files [ 39%] Built target specctra_lexer_source_files [ 43%] Built target pcbcommon [ 44%] Built target 3d-viewer [ 44%] Built target avhttp [ 44%] Built target github_plugin [ 45%] Built target pcad2kicadpcb etc -- Removed runtime path from "/home/jfm/kicad/bin/gerbview" -- Installing: /home/jfm/kicad/bin/_gerbview.kiface -- Removed runtime path from "/home/jfm/kicad/bin/_gerbview.kiface" -- Installing: /home/jfm/kicad/bin/pcbnew -- Removed runtime path from "/home/jfm/kicad/bin/pcbnew" -- Installing: /home/jfm/kicad/bin/_pcbnew.kiface -- Removed runtime path from "/home/jfm/kicad/bin/_pcbnew.kiface" -- Installing: /usr/lib/python2.7/site-packages/pcbnew.py CMake Error at pcbnew/cmake_install.cmake:80 (FILE): file INSTALL cannot copy file "/home/jfm/build/kicad/kicad.bzr/pcbnew/pcbnew.py" to "/usr/lib/python2.7/site-packages/pcbnew.py". Call Stack (most recent call first): cmake_install.cmake:100 (INCLUDE) make: *** [install] Error 1 Any other ideas? |||pcbnew/cmake_install.cmake is a generated file and hasn't heard of this cmake flag apparently.|
|
Thread Previous • Date Previous • Date Next • Thread Next |