We had a program, mcjl, that appeared to run on GTK 2.6, but the vendor said it needed GTK 2.8. To show what libraries the program uses, use ldd:
root:~/newmcj# ldd mcjl linux-gate.so.1 => (0xb808d000) libgtk-x11-2.0.so.0 => /usr/lib/libgtk-x11-2.0.so.0 (0xb7daf000) libgdk-x11-2.0.so.0 => /usr/lib/libgdk-x11-2.0.so.0 (0xb7d43000) libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0xb7d3f000) libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0xb7cbd000) libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0xb7cb8000) libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0xb7c7f000) libgdk_pixbuf-2.0.so.0 => /usr/lib/libgdk_pixbuf-2.0.so.0 (0xb7c6a000) libpango-1.0.so.0 => /usr/lib/libpango-1.0.so.0 (0xb7c32000) libpangocairo-1.0.so.0 => /usr/lib/libpangocairo-1.0.so.0 (0xb7c2b000) libpangoft2-1.0.so.0 => /usr/lib/libpangoft2-1.0.so.0 (0xb7c05000) libpthread.so.0 => /usr/lib/libpthread.so.0 (0xb7bf4000) libdl.so.2 => /usr/lib/libdl.so.2 (0xb7bf1000) libXi.so.6 => /usr/X11R6/lib/libXi.so.6 (0xb7be9000) libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0xb7bdb000) libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0xb7b0f000) libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7a3e000) libm.so.6 => /usr/lib/libm.so.6 (0xb7a1c000) libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0xb7a13000) libc.so.6 => /lib/libc.so.6 (0xb78f5000) libcairo.so.2 => /usr/lib/libcairo.so.2 (0xb78ab000) libpangoxft-1.0.so.0 => /usr/lib/libpangoxft-1.0.so.0 (0xb78a4000) libpangox-1.0.so.0 => /usr/lib/libpangox-1.0.so.0 (0xb7898000) libatk-1.0.so.0 => /usr/lib/libatk-1.0.so.0 (0xb787e000) libXrandr.so.2 => /usr/X11R6/lib/libXrandr.so.2 (0xb787a000) libXinerama.so.1 => /usr/X11R6/lib/libXinerama.so.1 (0xb7877000) libXft.so.2 => /usr/X11R6/lib/libXft.so.2 (0xb7865000) libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb77f1000) libXrender.so.1 => /usr/X11R6/lib/libXrender.so.1 (0xb77e9000) libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb77bf000) libXcursor.so.1 => /usr/X11R6/lib/libXcursor.so.1 (0xb77b6000) /lib/ld-linux.so.2 (0xb808e000) libpng12.so.0 => /usr/lib/libpng12.so.0 (0xb777c000) libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb775b000) |
The pkg-config command will list the version of GTK:
root:~/newmcj# pkg-config --modversion gtk+-x11-2.0 2.6.1 root:~/newmcj# pkg-config --modversion gtk+-2.0 2.6.1 root:~/newmcj# |