Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
*** Could not run GTK test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GTK was incorrectly installed
*** or that you have moved GTK since it was installed. In the latter case, you
*** may want to edit the gtk-config script: gtk12-config
I checked the conifg.log
configure:11088: checking for gtk-config
configure:11120: result: gtk12-config
configure:11128: checking for GTK - version >= 1.2.0
configure:11231: gcc -o conftest conftest.c >&5
configure:11153:21: gtk/gtk.h: No such file or directory
configure: In function `main':
configure:11166: warning: assignment makes pointer from integer without a cast
configure:11172: `gtk_major_version' undeclared (first use in this function)
configure:11172: (Each undeclared identifier is reported only once
configure:11172: for each function it appears in.)
configure:11172: parse error before ')' token
configure:11173: `gtk_minor_version' undeclared (first use in this function)
configure:11173: parse error before ')' token
configure:11174: `gtk_micro_version' undeclared (first use in this function)
configure:11174: parse error before ')' token
configure:11177: parse error before ',' token
configure:11234: $? = 1
configure: program exited with status 1
configure: failed program was:
#line 11151 "configure"
#include "confdefs.h"
int
main ()
{
int major, minor, micro;
char *tmp_version;
system ("touch conf.gtktest");
/* HP/UX 9 (%@#!) writes to sscanf strings */
tmp_version = g_strdup("1.2.0");
if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
printf("%s, bad version string\n", "1.2.0");
exit(1);
}
if ((gtk_major_version != ) ||
(gtk_minor_version != ) ||
(gtk_micro_version != ))
{
printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
, , ,
gtk_major_version, gtk_minor_version, gtk_micro_version);
printf ("*** was found! If gtk-config was correct, then it is best\n");
printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
printf("*** required on your system.\n");
printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
printf("*** before re-running configure\n");
}
If the app you're compiling supports GTK2.0, use the second... that way it will use your usual gnome fonts, antialiasing, and other nice stuff... otherwise use the first... you could just add both of the dirs to ld.so.conf, like this:
/usr/include/gtk-1.2
/usr/include/gtk-2.0
in which case it should find both... BTW anyone that has read the thread here about which distro for newbies to use, this is EXACTLY the sort of thing I'm talking about when I mention standards compliance.
oh wait I forgot to mention, RTFM to see if you can just specify the location of gtk headers on the command line... this is the better way to do it... see if you can do something like
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.