Black-cross following pointer moves in eeschema

Asked by Pierre Mege

Hello,

Since i would like to participate to the development of Kicad, I've downloaded the revisions corresponding to eiher the stable 4.0 branch (BZR 6188) or the latest one (BZR 6271) to compile both under my Linux centos-7 distribution. In order to complete the build I have also had to install the wxwidget library and its development headers which i grabbed from Fedora EPEL repository (https://fedoraproject.org/wiki/EPEL)

wxBase3.x86_64 3.0.2-2.el7 @epel
wxGTK3.x86_64 3.0.2-2.el7 @epel
wxGTK3-devel.x86_64 3.0.2-2.el7 @epel
wxGTK3-gl.x86_64 3.0.2-2.el7 @epel
wxGTK3-media.x86_64 3.0.2-2.el7 @epel

wx-config-3.0 --version: 3.0.2

and replace wx-config by wx-config-3.0 in FindwxWidgets.cmake script. Then I followed cmake/make build instructions. Everything compiled apparently well but as a result when I open a new schematics I get a big black cross at the center of the sheet. Any pointer move from let's say point A to point B is rendered as a sequence of crosses materializing sampled intermediate pointer positions. Such sequences end in completely overfilling the screen (observed for both code revisions).
It appears to be a clipboard/wxCursor issue...

I can not even imagine this to be a bug so what did i miss in the compilation process ? A problem of dependency with cairo wxwidget gtk ? and if this is the case what are the requirements for these libraries ? Some help would be appreciated,
please.

Cheers,
Pierre.

Question information

Language:
English Edit question
Status:
Solved
For:
KiCad Edit question
Assignee:
No assignee Edit question
Solved by:
Pierre Mege
Solved:
Last query:
Last reply:
Revision history for this message
Pierre Mege (pierre-mege) said :
#1

Ok i found the answer after some intense googling:

https://bugzilla.redhat.com/show_bug.cgi?id=1228254

The combination of KiCad + wxwidget3 + GTK3 is broken.

So one has to use wxwidget library builds against GTK2 provided by

compat-wxBase3.x86_64 3.0.2-2.el7 @epel
compat-wxGTK3-gtk2.x86_64 3.0.2-4.1.el7 @epel
compat-wxGTK3-gtk2-devel.x86_64 3.0.2-4.1.el7 @epel
compat-wxGTK3-gtk2-docs.noarch 3.0.2-4.1.el7 @epel
compat-wxGTK3-gtk2-gl.x86_64 3.0.2-4.1.el7 @epel
compat-wxGTK3-gtk2-media.x86_64 3.0.2-4.1.el7 @epel

and make wx-config point to wx-config-3.0-gtk2 either by modifying FindwxWidgets.cmake script
directly or better using a symbolic link,

ln -s /usr/bin/wx-config-3.0-gtk2 /usr/bin/wx-config

which fixes the clipboard/wxcursor isssue.

It could be interesting to display build instructions suite intented for RHEL-based distributions users on the Kicad official download page.

 Pierre

Revision history for this message
jean-pierre charras (jp-charras) said :
#2

wxwidget3 + GTK3 is broken, not only with Kicad.

On KDE, radio boxes are truncated, and are incorrectly displayed.
The wxWidget graphic sample is not working very well. Only basic drawings works.