Do you have both gtk2 che gtk3 installed on your Slackware box and sometimes gtk3 based programs compilation fails because the building script can’t find the right version of the library?
If the answer to the question is “Yes” maybe you can find a solution to your problem using the following trick.
Create a new file /usr/local/bin/wx-config-gtk3 and put into it
1 2 3 4 5 6 7 8 9 10 11 12 |
WX3CONFIG=$(find /usr -type f -name gtk2-unicode-3.0) if [ "${WX3CONFIG}" != "" ]; then rm -f /tmp/wx-config 2>/dev/null >/dev/null && \ ln -s ${WX3CONFIG} /tmp/wx-config && \ export PATH=/tmp/:$PATH echo "GTK3: wx-config found at ${WX3CONFIG}" echo "" else echo "GTK3: wx-config not found" echo "" fi |
From now on every time you fall into the “wrong gtk version” problem you can execute . /usr/local/bin/wx-config-gtk3 in the same shell you are using to compile programs.