As I use debian I’m not able to get any package of kicad >= 7.x
so I use following procédure : Linux | Developer Documentation | KiCad
BUT it is missing so many prerequisites that it is a mess in fact …
so fail to fail I’m able to find & manage first-ones my self
949 mkdir -p build/release
950 mkdir -p build/debug
951 cd build/release
952 cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ../../
953 aptitude install cmake
954 sudo aptitude install cmake
955 cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ../../
956 sudo apt install libglew-dev
957 sudo aptitude install cmake
958 cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ../../
959 sudo aptitude search glm
960 sudo aptitude install libcglm-dev
961 cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ../../
962 ■■■■
963 sudo aptitude install libcglm-dev*
964 sudo aptitude search *glm*
965 sudo aptitude search glm*
966 sudo aptitude search glm
967 sudo aptitude install libglm-dev*
968 sudo aptitude install libglm-dev
969 cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ../../
970 sudo apt-get install libssl-dev libcurl4-openssl-dev curl
971 cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ../../
972 sudo apt-get search cairo
973 sudo aptitude search cairo
974 sudo aptitude search cairo | grep lib
975 sudo aptitude search cairo | grep lib | grep -v ^v
976 sudo aptitude search cairo | grep lib | grep -v ^v | grep -dev
977 sudo aptitude search cairo | grep lib | grep -v ^v | grep -- -dev
978 sudo aptitude install libghc-cairo-dev libghc-gi-cairo-dev libcairo-5c-dev libcairo2-dev
979 cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ../../
but then the are some variables to determinate but still not documented
so I BRUTE FORCED INSTALL ALL RANDOMLY FOUND from debian/control · dailybuild · KiCad / KiCad Packaging / kicad-ubuntu-builder / KiCad Daily Package · GitLab instead of either the INSTALL file or Linux | Developer Documentation | KiCad
this is a real missing on official documentation
255-1012-78-~/kicad7/build/release $ sudo aptitude install mesa-common-dev pkg-config libssl-dev build-essential cmake-curses-gui debhelper grep python3-dev swig4.0 dblatex po4a asciidoc python3-wxgtk4.0 source-highlight libboost-all-dev libglm-dev libcurl4-openssl-dev libgtk-3-dev libocct-modeling-algorithms-dev libocct-modeling-data-dev libocct-data-exchange-dev libocct-visualization-dev libocct-foundation-dev libocct-ocaf-dev unixodbc-dev zlib1g-dev shared-mime-info python3-pytest python3-cairosvg
this list must be on front of all procedure before install as prerequisites
but doing that I can’t finish installing that because the list is false and few of thoses packages are not available for distribution debian
[...]
Prendre : 127 http://deb.debian.org/debian testing/main amd64 libocct-data-exchange-dev amd64 7.6.3+dfsg1-5 [693 kB]
Prendre : 128 http://deb.debian.org/debian testing/main amd64 libodbccr2 amd64 2.3.11-2 [28,1 kB]
Prendre : 129 http://deb.debian.org/debian testing/main amd64 libpod-parser-perl all 1.65-1 [96,3 kB]
Prendre : 130 http://deb.debian.org/debian testing/main amd64 libxs-parse-keyword-perl amd64 0.33-1 [58,4 kB]
Prendre : 131 http://deb.debian.org/debian testing/main amd64 libsyntax-keyword-try-perl amd64 0.28-1 [28,6 kB]
Prendre : 132 http://deb.debian.org/debian testing/main amd64 mesa-common-dev amd64 22.3.6-1+deb12u1 [2 002 kB]
Prendre : 133 http://deb.debian.org/debian testing/main amd64 po4a all 0.69-1 [2 218 kB]
Prendre : 134 http://deb.debian.org/debian testing/main amd64 python3-xcffib all 0.11.1-4 [63,6 kB]
Prendre : 135 http://deb.debian.org/debian testing/main amd64 python3-cairocffi all 1.4.0-1 [68,3 kB]
Prendre : 136 http://deb.debian.org/debian testing/main amd64 python3-cssselect2 all 0.7.0-1 [16,5 kB]
Prendre : 137 http://deb.debian.org/debian testing/main amd64 python3-cairosvg all 2.5.2-1.1 [35,2 kB]
Prendre : 138 http://deb.debian.org/debian testing/main amd64 source-highlight amd64 3.1.9-4.2+b3 [295 kB]
Prendre : 139 http://deb.debian.org/debian testing/main amd64 swig4.0 amd64 4.1.0-0.2 [1 388 kB]
Prendre : 140 http://deb.debian.org/debian testing/main amd64 unixodbc-dev amd64 2.3.11-2 [241 kB]
Prendre : 141 http://deb.debian.org/debian testing/main amd64 xmlto amd64 0.0.28-2.1 [33,6 kB]
229 Mo téléchargés en 5s (44,4 Mo/s)
E: impossible de récupérer http://deb.debian.org/debian/pool/main/o/opencascade/libocct-foundation-dev_7.6.3%2bdfsg1-5_amd64.deb : 404 Not Found [IP : 2a04:4e42:6a::644 80]
E: Unable to fetch some packages; try '-o APT::Get::Fix-Missing=true' to continue with missing packages
so I try to force it all again adding the fix-missing=true option just like indicated
and then
0-1017-83-~/kicad7/build/release $ cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ../../
-- KiCad install dir: </usr/local>
-- Enabling warning -Wsuggest-override
-- Enabling warning -Wduplicated-branches
-- Enabling warning -Wduplicated-cond
-- Enabling error for -Wvla
-- Enabling warning -Wimplicit-fallthrough
-- Enabling error for -Wreturn-type
-- Enabling warning -Wshadow
-- Enabling warning -Wsign-compare
-- Enabling warning -Wmissing-field-initializers
-- Enabling warning -Wempty-body
-- Enabling warning -Wreorder
-- Enabling warning -Wmismatched-tags
-- Disabling warning -Wpsabi
-- Initializing trivial variables (-ftrivial-auto-var-init=zero)
-- Check for installed GLEW -- found
-- Found the following HarfBuzz libraries:
-- HarfBuzz (required): /usr/lib/x86_64-linux-gnu/libharfbuzz.so
-- Checking for module 'ngspice'
-- Package 'ngspice', required by 'virtual:world', not found
*** NGSPICE library missing ***
Most of ngspice packages do not provide the required libngspice library.
You can either compile ngspice configured with --with-ngshared parameter
or run a script that does the job for you:
cd ./tools/build
chmod +x get_libngspice_so.sh
./get_libngspice_so.sh
sudo ./get_libngspice_so.sh install
CMake Error at /usr/share/cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find ngspice (missing: NGSPICE_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/share/cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
cmake/Findngspice.cmake:162 (find_package_handle_standard_args)
CMakeLists.txt:775 (find_package)
so I have to set NGSPICE_INCLUDE_DIR
BUT WHAT CONTENT CAN I PUT IN ?? (to be real I tested all existing /usr/*/ngspice/ directories existing ) whitout results whatever I put in NGSPICE_INCLUDE_DIR fails