--- components/printers/osprinters.pas	2024-05-26 14:21:16
+++ components/printers/osprinters.pas	2024-09-15 15:48:16
@@ -47,6 +47,9 @@
     {$IF DEFINED(LCLQt) OR DEFINED(LCLQt5) OR DEFINED(LCLQt6)}
       {$I qtprinters_h.inc}
     {$ENDIF}
+    {$IFDEF LCLnogui}
+      {$I cupsprinters_h.inc}
+    {$ENDIF}
     {$IFDEF LCLGtk2}
       {$I cupsprinters_h.inc}
     {$ENDIF}
@@ -84,6 +87,9 @@
     {$IF DEFINED(LCLQt) OR DEFINED(LCLQt5) OR DEFINED(LCLQt6)}
       {$I qtprinters.inc}
     {$ENDIF}
+    {$IFDEF LCLnogui}
+      {$I cupsprinters.inc}
+    {$ENDIF}
     {$IFDEF LCLGtk2}
       {$I cupsprinters.inc}
     {$ENDIF}
--- components/printers/printersdlgs.pp	2024-05-26 14:21:16
+++ components/printers/printersdlgs.pp	2024-09-15 15:47:57
@@ -164,6 +164,10 @@
       uses qtobjects, qt6, qtint, LazUTF8;
       {$I qtprndialogs.inc}
     {$ENDIF}
+    {$IFDEF LCLnogui}
+      uses udlgSelectPrinter, udlgPropertiesPrinter, udlgPageSetup;
+      {$I cupsprndialogs.inc}
+    {$ENDIF}
     {$IFDEF LCLGtk2}
       uses udlgSelectPrinter, udlgPropertiesPrinter, udlgPageSetup, Printer4LazStrConst;
       {$I cupsprndialogs.inc}
