_pcbnew.kiface

Bug #1633844 reported by Bernd Wiebus
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KiCad
Invalid
Undecided
Unassigned

Bug Description

Hello

I just installed
Application: kicad
Version: (2016-10-15 revision d1e4399)-master, release build
Libraries: wxWidgets 3.0.2
           libcurl/7.38.0 OpenSSL/1.0.1t zlib/1.2.8 libidn/1.29 libssh2/1.4.3 librtmp/2.3
Platform: Linux 3.16.0-4-686-pae i686, 32 bit, Little endian, wxGTK
- Build Info -
wxWidgets: 3.0.2 (wchar_t,wx containers,compatible with 2.8)
Boost: 1.55.0
Curl: 7.38.0
KiCad - Compiler: GCC 4.9.2 with C++ ABI 1002
        Settings: USE_WX_GRAPHICS_CONTEXT=OFF
                  USE_WX_OVERLAY=OFF
                  KICAD_SCRIPTING=ON
                  KICAD_SCRIPTING_MODULES=ON
                  KICAD_SCRIPTING_WXPYTHON=ON
                  BUILD_GITHUB_PLUGIN=ON
                  KICAD_USE_SCH_IO_MANAGER=OFF
                  KICAD_USE_OCE=OFF

Kicad and eeschema runs, as far i can see at moment, but pcbnew crashes with an error on start from kicad itsself and standalone, too.

The error message at standalone is:
IO-ERROR: Failed to load kiface-library 'usr/local/bin/_pcbnew.kiface'.
from kiway.cpp : KiFACE() line:1...

Starting from kicad creates two error messages at opening on a project:

The last but quitting first:
libkicad_3dsg.so.2.0.0: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden

"Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden" is german for:
"Cannot open the Shared-Object-File: File or Folder not found"

Interestingly i get this error message in german, despite i switched kicad to english, and have a english toolbar in kicad. But german is my default language here at debian.
But that is not my problem, because i can work with kicad in english and german, too.

The first error message, which is quitted at last:
Pcbnew failed to load:
IO_ERROR: Failed to load kiface library '/usr/local/bin/_pcbnew.kiface'.
 from kiway.cpp : KiFACE() line:187

_pcbnew.kiface exists at /usr/local/bin/ and is the same as from the installation folder.

The problem occurs with existing projects and new, empty projects, too.
It also occurs with the demo projekts.

With best regards: Bernd Wiebus alias dl1eic

Revision history for this message
Bernd Wiebus (bernd-wiebus) wrote :

Update:

The error occurs also with the footprint editor.

I tried a workaround by compiling kicad without the Python scripting and some other capabilities, but the problem persists. I used only "cmake -DCMAKE_BUILD_TYPE=Release"

Application: kicad
Version: (2016-10-15 revision d1e4399)-master, release build
Libraries: wxWidgets 3.0.2
           libcurl/7.38.0 OpenSSL/1.0.1t zlib/1.2.8 libidn/1.29 libssh2/1.4.3 librtmp/2.3
Platform: Linux 3.16.0-4-686-pae i686, 32 bit, Little endian, wxGTK
- Build Info -
wxWidgets: 3.0.2 (wchar_t,wx containers,compatible with 2.8)
Boost: 1.55.0
Curl: 7.38.0
KiCad - Compiler: GCC 4.9.2 with C++ ABI 1002
        Settings: USE_WX_GRAPHICS_CONTEXT=OFF
                  USE_WX_OVERLAY=OFF
                  KICAD_SCRIPTING=OFF
                  KICAD_SCRIPTING_MODULES=OFF
                  KICAD_SCRIPTING_WXPYTHON=OFF
                  BUILD_GITHUB_PLUGIN=ON
                  KICAD_USE_SCH_IO_MANAGER=OFF
                  KICAD_USE_OCE=OFF

With best regards: Bernd Wiebus alias dl1eic

Revision history for this message
jean-pierre charras (jp-charras) wrote :

I don't think there is no problem with _pcbnew.kiface itself.

libkicad_3dsg.so.2.0.0 (the 3d viewer dll) is just not found by the dynamic linker (ld), because libkicad_3dsg was not installed, or installed in a path which is not in the pathlist of ld.
(see ld.so.conf) (the error message is "libkicad_3dsg.so.2.0.0: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden")

Revision history for this message
Bernd Wiebus (bernd-wiebus) wrote :

Hello Mister Charras.

> libkicad_3dsg.so.2.0.0 (the 3d viewer dll) is just not found by the
> dynamic linker (ld), because libkicad_3dsg was not installed, or
> installed in a path which is not in the pathlist of ld.

I found libkicad_3dsg.so.2.0.0 and libkicad_3dsg.so at the
path /home/myself/kicad-1/build/release/3d-viewer/3d_cache/sg

They both are also in /usr/local/lib after installing.
but yet there is a folder "kicad" at this path, too, and it contains one
folder "plugins".

All rights for the folders and files are "root" as owner (read and
write) and "staff" as group (read only).

Should i expect the files somehow inside the folder "plugin"?

With best regards: Bernd Wiebus alias dl1eic

Revision history for this message
Bernd Wiebus (bernd-wiebus) wrote :

Hello Mister Charras.

> but yet there is a folder "kicad" at this path, too, and it contains one
> folder "plugins".

The folder "plugin" contains some xyz.xsl plugins and a folder "3d". This folder "3d" contains only two files: libs3d_plugin_idf.so and libs3d_plugin_vrml.so.

All rights for the folders and files are "root" as owner (read and
write) and "staff" as group (read only).

I copied libkicad_3dsg.so.2.0.0 and libkicad_3dsg.so into "3d" and set rights to "root" as owner (read and write) and "staff" as group (read only), but this didnt work.

Some advices or suggestions?

With best regards: Bernd Wiebus alias dl1eic

Revision history for this message
Jon Neal (reportingsjr) wrote :

Bernd,

I think you need to run ldconfig after intsalling kicad with make to update your ld.so.cache.

Let me know if that works.

Revision history for this message
Bernd Wiebus (bernd-wiebus) wrote :

Hello Jon.

> I think you need to run ldconfig after intsalling kicad with make to update your ld.so.cache.

I tried, but i dont know enough about ldconfig, to use it correct.

I started ldconfig after installing kicad as superuser from the same folder, where i started ste make install.

SEEMS TO WORK!
I can open my old projekts with pcbnew!

But for deeper tests, i cannot do any more, because i have run out of time and have to go. But i will try it in the next week, and tell about my findings.

For now, i think it is ok.

Thank you for your help!

Perhaps it would be helpful, to make some notices about this at http://kicad-pcb.org/download/debian/
Also i had to install swig, bzrtools and wxPython before a sucessful install.

With best regards: Bernd Wiebus alias dl1eic

Revision history for this message
Jon Neal (reportingsjr) wrote :

All ldconfig does is update the cache for where linux looks for shared objects (.so files). When you install kicad manually it puts the 3d viewer shared objects in one of the normal spots (/usr/lib, or /usr/local/lib), but doesn't update the cache. Hence needing to run ldconfig!

Changed in kicad:
status: New → Invalid
Revision history for this message
Bernd Wiebus (bernd-wiebus) wrote :

Hello

I reinstalled KiCad with full standard features, and it worked well.

Yes, using ldconfig as root was the key.

Thank you all for the help.

With best regards: Bernd Wiebus alias dl1eic

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.