From f197847f50622b6f20ade5ddae71d3c749cbd956 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Br=C3=BCns?= Date: Fri, 26 Oct 2018 23:35:13 +0200 Subject: [PATCH] Use fixed version for libngspice.so.0 CanonicalizeName only adds the lib prefix and .so suffix, so loading libngspice.so fails until the development package is installed. MAC/Windows code paths lookup soversion 0 of ngspice as well, as this is the only compatible version. --- eeschema/sim/ngspice.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/eeschema/sim/ngspice.cpp b/eeschema/sim/ngspice.cpp index 8818b50..3b6e4dd 100644 --- a/eeschema/sim/ngspice.cpp +++ b/eeschema/sim/ngspice.cpp @@ -318,8 +318,10 @@ void NGSPICE::init_dll() } if( !m_dll.IsLoaded() ) // try also the system libraries -#endif /* __WINDOWS || __WXMAC__ */ m_dll.Load( wxDynamicLibrary::CanonicalizeName( "ngspice" ) ); +#else + m_dll.Load("libngspice.so.0"); +#endif /* __WINDOWS || __WXMAC__ */ if( !m_dll.IsLoaded() ) throw std::runtime_error( "Missing ngspice shared library" ); -- 2.19.1