You are not logged in.
Hi, I have been using kicad on my computer but for some reason it partially stopped working. kicad opens, but the schematic layout editor doesnt open when I try I get two error messages "/usr/lib/libngspice.so.0: undefined symbol: history_file" and "Eeschema failed to load: Failed to load kiface library "/usr/bin/_eeschema.kiface".". I have tried to reinstall kicad via yay and pacman, in both cases I get the same errors. The last thing I did on my computer was to build unreal engine from source and run pacman -Syy. How can I get kicad to start working again, short of reinstalling arch linux?
Offline
Same issue here. ngspice was updated a couple of days ago. The kicad package has already been marked out of date and needs a rebuild
Offline
Offline
thanks. so should I build kicad from source or just wait for someone to update the package? There is something about building I dont quite understand when I download source in a tar.gz and extract it in, lets say, /home/account/Documents/packageSource and open a terminal in that directory and run make. The program is installed in /home/account/Documents/packageSource, right? if so where would be a better directory to have the programs files built in and how would I set the destination? Thanks
Offline
If you try and rebuild kicad it fails:
==> Retrieving sources...
-> Found kicad-5.1.9.tar.gz
-> Found kicad-i18n-5.1.9.tar.gz
==> WARNING: Skipping all source file integrity checks.
==> Extracting sources...
-> Extracting kicad-5.1.9.tar.gz with bsdtar
-> Extracting kicad-i18n-5.1.9.tar.gz with bsdtar
==> Starting prepare()...
==> Starting build()...
-- The C compiler identification is GNU 10.2.0
-- The CXX compiler identification is GNU 10.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- KiCad install dir: </usr>
-- Looking for malloc.h
-- Looking for malloc.h - found
-- Looking for iso646.h
-- Looking for iso646.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for strcasecmp
-- Looking for strcasecmp - found
-- Looking for strncasecmp
-- Looking for strncasecmp - found
-- Looking for strtok_r
-- Looking for strtok_r - found
-- Looking for malloc
-- Looking for malloc - found
-- Looking for math.h
-- Looking for math.h - found
-- Looking for C++ include cmath
-- Looking for C++ include cmath - found
-- Looking for asinh
-- Looking for asinh - found
-- Looking for acosh
-- Looking for acosh - found
-- Looking for atanh
-- Looking for atanh - found
-- Performing Test HAVE_CMATH_ISINF
-- Performing Test HAVE_CMATH_ISINF - Success
-- Looking for clock_gettime in rt
-- Looking for clock_gettime in rt - found
-- Looking for gettimeofday
-- Looking for gettimeofday - found
-- Looking for getc_unlocked
-- Looking for getc_unlocked - found
-- Performing Test COMPILER_SUPPORTS_WSUGGEST_OVERRIDE
-- Performing Test COMPILER_SUPPORTS_WSUGGEST_OVERRIDE - Success
-- Performing Test COMPILER_SUPPORTS_WVLA
-- Performing Test COMPILER_SUPPORTS_WVLA - Success
-- Performing Test COMPILER_SUPPORTS_WSHADOW
-- Performing Test COMPILER_SUPPORTS_WSHADOW - Success
-- Found OpenGL: /usr/lib/libOpenGL.so
-- Found GLEW: /usr/include
-- Check for installed GLEW -- found
-- Found GLM: /usr/include (found suitable version "0.9.9.8", minimum required is "0.9.5.1")
-- Found CURL: /usr/lib/libcurl.so (found version "7.76.1")
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.7.3")
-- Checking for module 'cairo'
-- Found cairo, version 1.17.4
-- Found Cairo: /usr/lib/libcairo.so (found suitable version "1.17.4", minimum required is "1.12")
-- Checking for module 'pixman-1'
-- Found pixman-1, version 0.40.0
-- Found Pixman: /usr/lib/libpixman-1.so (found suitable version "0.40.0", minimum required is "0.30")
-- Found Boost: /usr/lib64/cmake/Boost-1.75.0/BoostConfig.cmake (found suitable version "1.75.0", minimum required is "1.54.0")
-- Checking for module 'ngspice'
-- Package 'ngspice', required by 'virtual:world', not found
-- ngspice configuration file NGSPICE_CONFIG_H-NOTFOUND 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 ./scripting/build_tools
chmod +x get_libngspice_so.sh
./get_libngspice_so.sh
sudo ./get_libngspice_so.sh install
CMake Error at /usr/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find ngspice (missing: NGSPICE_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
CMakeModules/Findngspice.cmake:142 (find_package_handle_standard_args)
CMakeLists.txt:604 (find_package)
-- Configuring incomplete, errors occurred!
See also "/build/kicad/src/kicad-5.1.9/build/Release/CMakeFiles/CMakeOutput.log".This is due to an issue with ngspice missing its header file. The issue you are encountering is due to a different issue with ngspice, the shared library being broken.
I attached a fix to the bug report. You need to apply the fix to the PKGBUILD and then build the package:
git clone git://git.archlinux.org/svntogit/community.git --single-branch --branch "packages/ngspice" #obtain the PKGBUILD
Cloning into 'community'...
remote: Enumerating objects: 47, done.
remote: Counting objects: 100% (47/47), done.
remote: Compressing objects: 100% (44/44), done.
remote: Total 229 (delta 22), reused 3 (delta 3), pack-reused 182
Receiving objects: 100% (229/229), 35.31 KiB | 1.04 MiB/s, done.
Resolving deltas: 100% (42/42), done.
$ cd community/trunk/
$ curl -o PKGBUILD.diff 'https://bugs.archlinux.org/task/70563?getfile=20150' #obtain the fix
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 879 100 879 0 0 6416 0 --:--:-- --:--:-- --:--:-- 6369
$ git apply -v PKGBUILD.diff
Checking patch trunk/PKGBUILD...
Applied patch trunk/PKGBUILD cleanly.
makepkg -rsi #Build and install the updated packageWith the updated ngspice installed, the issue should be fixed.
See also Arch_Build_System#Retrieve_PKGBUILD_source_using_Git and Makepkg#Usage
Offline
I had the same problem.
I tried to fix like loqs described, but got an error according my installed version 1.16.3 of automake, automake 1.15 was expected.
I compiled and installed the git version (git://git.code.sf.net/p/ngspice/ngspice) of ngspice myself with the configure options
"--disable-debug --enable-openmp --with-ngshared --with-readline=yes --enable-cider --enable-xspice". I had to add /usr/local/lib to the search path of ldconfig.
That does the trick, KiCad is working since then - i'm happy, since i need it at the moment...
I think, the ngspice package has to be rebuild with the above options. Not much work, but it's the newbie corner (i'm quite new to archlinux)...
Offline
@loqs, thanks I tried doing what you said but got the same error as doktorno, ie "... installed version 1.16.3 of automake, automake 1.15 was expected."
I am going to try and compile ngspice like doktorno, though I never had to add something to idconfig`s search path, though learning is part of the fun
Offline
Install the package devtools then instead of running makepkg -rsi run:
extra-x86_64-build
# pacman -U ngspice-34-1-x86_64.pkg.tar.zstOffline
thanks loqs it is working now. Is it safe to delete the folder that I did everything in (/home/account/Documents/ngspice)?
Offline
Yes once the package installed the build folder and produced package are not required.
Offline