FS#75429 - [kicad] pcbnew printing
Attached to Project:
Community Packages
Opened by Greg (Lucky Luke) - Tuesday, 26 July 2022, 15:56 GMT
Last edited by Antonio Rojas (arojas) - Saturday, 27 August 2022, 18:18 GMT
Opened by Greg (Lucky Luke) - Tuesday, 26 July 2022, 15:56 GMT
Last edited by Antonio Rojas (arojas) - Saturday, 27 August 2022, 18:18 GMT
|
Details
Description:
pcbnew Printing Dialog broken since needed package wxwidgets-common and wxwidgets-gtk3 Additional info: * kicad 6.0.7-1 i have a problem with kicad,pcbnew and the printing options. Since the new packages wxwidgets-common (3.2.0-4) and wxwidgets-gtk3 (3.2.0-4) a different printer dialog is displayed. Now only the possibility to create a ps file is offered. When doing so, kicad hangs and the ps file results in a black page. Starting kicad via console results in the following message: $ kicad terminate called after throwing an instance of 'std::runtime_error'. what(): Unhandled wxDC type Aborted (memory dump written) PDF and connected printers are no longer displayed. In the pictures kicad_druckerdialog3.png and kicad_druckerdialog4.png I have shown the printer dialog. See 4 pictures in kicad_printing_errors.tar.bz2 Do I downgrade as follows: # pacman -U wxgtk3-3.0.5.1-3-x86_64.pkg.tar.zst wxgtk-common-3.0.5.1-3-x86_64.pkg.tar.zst erlang-24.3.2-3-x86_64.pkg. tar.zst gnuplot-5.4.3-5-x86_64.pkg.tar.zst kicad-6.0.6-1-x86_64.pkg.tar.zst python-wxpython-1:4.0.7.2-1-x86_64.pkg.tar.zst the usual printer dialog appears as in pictures kicad_druckerdialog1.png and kicad_druckerdialog2.png. Do I have to install anything additional to get the usual printer options like in druckerdialog2.png again? kind Regards Lucky Luke |
This task depends upon
Closed by Antonio Rojas (arojas)
Saturday, 27 August 2022, 18:18 GMT
Reason for closing: Fixed
Additional comments about closing: wxwidgets 3.2.0-5
Saturday, 27 August 2022, 18:18 GMT
Reason for closing: Fixed
Additional comments about closing: wxwidgets 3.2.0-5
causing wxWidgets to fall back on its wxPostScriptPrinter.
The Arch build uses cmake nowadays and there's apparently no support for enabling GTK print in the wxWidgets cmake builds.
The cmake scripts don't use pkg-config to look up gtk+-unix-print-3.0 etc.
So the solution is to rebuild wxWidgets with GTK print support enabled.
A quick and dirty way to do this is by adding
set(wxUSE_GTKPRINT ON)
list(APPEND wxTOOLKIT_INCLUDE_DIRS "/usr/include/gtk-3.0/unix-print")
to build/cmake/toolkit.cmake
FS#75614. Leaving this one open for visibility.