C++ Compilation error on f36 (X11/Xlib.h: No such file or directory)

I am using Fedora 36 and trying to compile a C++ program which fails upon this error.

I tried to install @base-x and xorg-x11-drv-armsoc but my system cannot find these packages

I’m running on a laptop with Nvidia GPU so perhaps there is some conflict? I read this could be an issue in some other threads.

Thank you for your help!

A Google search suggests you may need to install the libX11-devel package.

3 Likes