When running the QCAD command line tools on a Linux server, an error message appears:
Fatal: QXcbConnection: Could not connect to display
QCAD Command Line Tools on a Linux Server
Moderator: andrew
Forum rules
Always indicate your operating system and QCAD version.
Attach drawing files and screenshots.
Post one question per topic.
Always indicate your operating system and QCAD version.
Attach drawing files and screenshots.
Post one question per topic.
QCAD Command Line Tools on a Linux Server
From a QCAD user:
Re: QCAD Command Line Tools on a Linux Server
If you are running the QCAD command line tools on a headless Linux server (i.e. a Linux server without a display, without an X11 server), you'll have to use the offscreen platform plugin (starting with Qt 5, QCAD 3.16):
You also might have to set the QT_QPA_FONTDIR environment variable to point to a directory with fonts to use:
Some fonts are included with your QCAD installation under fonts/qt:
However, you likely have more suitable fonts installed on your system unless you are running the command line tools on an embedded platform.
Code: Select all
./dwg2pdf -platform offscreen ...
Some fonts are included with your QCAD installation under fonts/qt:
Code: Select all
QT_QPA_FONTDIR=fonts/qt ./dwg2pdf -platform offscreen ...