Compiling a simple example on PDF/A with Lualatex returns the following error:
! Undefined control sequence.
l.660 \ifnum\shellescape
Or, for a PDF/X:
! Undefined control sequence.
l.333 \pdfobjcompresslevel
=0 \relax
How can I compile a document under Lualatex with PDFx compliance?
Example code, running on Texlive 2018:
\documentclass{scrbook}
\usepackage[x-4]{pdfx}
\begin{document}
\chapter{Intro}
Things and stuff.
\end{document}