try install libX11 development packages using synaptic or using command line(ubuntu 7.04): sudo apt-get install libx11-dev
आलोक कुमार 写道: > Hi list, > I'm building gtk+-2.12.0 on ubuntu 6.06 > > ./configure gets me - > > checking for x86 platform... yes > checking compiler support for MMX... yes > checking for X... libraries /usr/X11R6/lib, headers > checking for gethostbyname... yes > checking for connect... yes > checking for remove... yes > checking for shmat... yes > checking for IceConnectionNumber in -lICE... no > checking for XOpenDisplay... no > configure: error: *** libX11 not found. Check 'config.log' for more details. > > Do I need some header files? Which package would they be available in? > I understand that IceConnectionNumber and XOpenDisplay are both > functions whose declarations were being searched in some header files. > Alok > > The config.log says this: > > configure:32363: checking for XOpenDisplay > configure:32419: gcc -o conftest -g -O2 -Wall conftest.c > -L/usr/X11R6/lib -lXext -lXrender -lX11 >&5 > /usr/bin/ld: cannot find -lXext > collect2: ld returned 1 exit status > configure:32425: $? = 1 > configure: failed program was: > | /* confdefs.h. */ > | #define PACKAGE_NAME "gtk+" > | #define PACKAGE_TARNAME "gtk+" > | #define PACKAGE_VERSION "2.12.0" > | #define PACKAGE_STRING "gtk+ 2.12.0" > | #define PACKAGE_BUGREPORT > "http://bugzilla.gnome.org/enter_bug.cgi?product=gtk%2B" > | #define GETTEXT_PACKAGE "gtk20" > | #define STDC_HEADERS 1 > | #define HAVE_SYS_TYPES_H 1 > | #define HAVE_SYS_STAT_H 1 > | #define HAVE_STDLIB_H 1 > | #define HAVE_STRING_H 1 > | #define HAVE_MEMORY_H 1 > | #define HAVE_STRINGS_H 1 > | #define HAVE_INTTYPES_H 1 > | #define HAVE_STDINT_H 1 > | #define HAVE_UNISTD_H 1 > | #define HAVE_DLFCN_H 1 > | #define _FILE_OFFSET_BITS 64 > | #define GTK_COMPILED_WITH_DEBUGGING "minimum" > | #define HAVE_LSTAT 1 > | #define HAVE_MKSTEMP 1 > | #define HAVE_FLOCKFILE 1 > | #define HAVE_GETC_UNLOCKED 1 > | #define HAVE_LOCALTIME_R 1 > | #define HAVE__NL_TIME_FIRST_WEEKDAY 1 > | #define HAVE__NL_MEASUREMENT_MEASUREMENT 1 > | #define HAVE__NL_PAPER_HEIGHT 1 > | #define HAVE__NL_PAPER_WIDTH 1 > | #define HAVE_SIGSETJMP 1 > | #define HAVE_LOCALE_H 1 > | #define HAVE_LC_MESSAGES 1 > | #define HAVE_BIND_TEXTDOMAIN_CODESET 1 > | #define HAVE_GETTEXT 1 > | #define HAVE_DCGETTEXT 1 > | #define ENABLE_NLS 1 > | #define GTK_LOCALEDIR "/usr/local/share/locale" > | #define HAVE_BIND_TEXTDOMAIN_CODESET 1 > | #define HAVE_PWD_H 1 > | #define HAVE_PWD_H 1 > | #define HAVE_SYS_TIME_H 1 > | #define HAVE_SYS_TIME_H 1 > | #define HAVE_UNISTD_H 1 > | #define HAVE_UNISTD_H 1 > | #define HAVE_FTW_H 1 > | #define HAVE_FTW_H 1 > | #define HAVE_GNU_FTW 1 > | #define STDC_HEADERS 1 > | #define RETSIGTYPE void > | #define HAVE_STDLIB_H 1 > | #define HAVE_UNISTD_H 1 > | #define HAVE_GETPAGESIZE 1 > | #define HAVE_MMAP 1 > | #define HAVE_MALLINFO 1 > | #define HAVE_GETRESUID 1 > | #define HAVE_WCHAR_H 1 > | #define HAVE_WCTYPE_H 1 > | #define USE_GMODULE 1 > | #define HAVE_SYS_WAIT_H 1 > | #define RETSIGTYPE void > | #define HAVE_SYS_SYSINFO_H 1 > | #define USE_MMX 1 > | /* end confdefs.h. */ > | /* Define XOpenDisplay to an innocuous variant, in case <limits.h> > declares XOpenDisplay. > | For example, HP-UX 11i <limits.h> declares gettimeofday. */ > | #define XOpenDisplay innocuous_XOpenDisplay > | > | /* System header to define __stub macros and hopefully few prototypes, > | which can conflict with char XOpenDisplay (); below. > | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since > | <limits.h> exists even on freestanding compilers. */ > | > | #ifdef __STDC__ > | # include <limits.h> > | #else > | # include <assert.h> > | #endif > | > | #undef XOpenDisplay > | > | /* Override any GCC internal prototype to avoid an error. > | Use char because int might match the return type of a GCC > | builtin and then its argument prototype would still apply. */ > | #ifdef __cplusplus > | extern "C" > | #endif > | char XOpenDisplay (); > | /* The GNU C library defines this for functions which it implements > | to always fail with ENOSYS. Some functions are actually named > | something starting with __ and the normal name is an alias. */ > | #if defined __stub_XOpenDisplay || defined __stub___XOpenDisplay > | choke me > | #endif > | > | int > | main () > | { > | return XOpenDisplay (); > | ; > | return 0; > | } > configure:32458: result: no > configure:32463: error: *** libX11 not found. Check 'config.log' for > more details. > > -- ubuntu-in mailing list ubuntu-in@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-in