1

So when I run:

gcc `pkg-config --cflags --libs gtk+-3.0` -o program-name code.cpp

to compile my program against the gtk3 libraries, I get the following error:

Package 'xfixes' requires 'fixesproto >= 6.0' but version of fixesproto is 5.0

This error only shows up when trying to compile against gtk+3.0, not against any of the other libraries with compatible .pc files for pkg-config.

I installed gtk+3.0 libraries through synaptic package manager, so I assume everything needed was installed, so I don't really have any idea what this error message means, or how to fix it.

3
  • Are you trying to compile a C program or a C++ program? I ask because of the ".cpp" extension in your example. C++ programs using GTK3 usually use library "gtkmm-3.0" instead of "gtk-3.0".
    – NoDakker
    May 25, 2022 at 15:25
  • It's the same error regardless of C or C++. In this example, I could use gtkmm-3.0 for cpp and gtk+-3.0 for C and it's the same error. In fact if I just run pkg-config --cflags gtk+3.0 on the command line without invoking gcc or g++ at all, it gives me the same error: "Package 'xfixes' requires 'fixesproto >= 6.0' but version of fixesproto is 5.0" May 26, 2022 at 3:36
  • I don't know what might of happened on your system, but my best guess is that something got installed on your system that updated your "xfixes.pc" configuration. I poked around on my machine and in my "xfixes.pc" file, it states "Requires: xproto fixesproto >= 5.0". You might check the verbiage in that file on your system.
    – NoDakker
    May 26, 2022 at 14:33

1 Answer 1

0

I had a similar issue when deploying an app on Ubuntu 20.04, which was fixed by installing the latest xorgproto library from sources: https://xorg.freedesktop.org/archive/individual/proto/xorgproto-2022.2.tar.xz

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.