LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   Many GTK Installation problems (https://www.linuxquestions.org/questions/mandriva-30/many-gtk-installation-problems-283870/)

bunnadik 02-02-2005 08:25 AM

Well, it wasn't the reason you couldn't compile it. Freetype-1.3.1 should compile just fine.
But according to it's initial error message it's missing Xlib.h, Xutil.h and cursorfont.h.

You'll have to urpmf those files and find out which devel to install. (I think they're in the same rpm.)

- Peder

simeandrews 02-02-2005 02:52 PM

Fontconfig wasnt in Mandrake Control Center under Software Install, so I downloaded and installed freetype, then I downloaded fontconfig untarred it, and when I did ./configure, here's what I got:
Code:

[simon@localhost fontconfig-2.2.3]$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag  works... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
appending configuration tag "F77" to libtool
checking whether make sets $(MAKE)... (cached) yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for ANSI C header files... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for pid_t... yes
checking for vprintf... yes
checking for _doprnt... no
checking for geteuid... yes
checking for getuid... yes
checking for link... yes
checking for memmove... yes
checking for memset... yes
checking for mkstemp... yes
checking for strchr... yes
checking for strrchr... yes
checking for strtol... yes
checking for getopt... yes
checking for getopt_long... yes
checking for freetype-config... /usr/local/bin/freetype-config
checking for FT_Get_First_Char... yes
checking for FT_Get_Next_Char... yes
checking for FT_Get_BDF_Property... yes
checking for FT_Bitmap_Size.y_ppem... yes
checking expat.h usability... no
checking expat.h presence... no
checking for expat.h... no
checking xmlparse.h usability... no
checking xmlparse.h presence... no
checking for xmlparse.h... no
configure: error: cannot find expat library
[simon@localhost fontconfig-2.2.3]$


simeandrews 02-02-2005 04:15 PM

I just tried urpmi expat, everything already installed. It's almost like when Mandrake installs it installs to the wrong places.

Micro420 02-02-2005 04:38 PM

Quote:

Originally posted by simeandrews
I just tried urpmi expat, everything already installed. It's almost like when Mandrake installs it installs to the wrong places.
Boy, this is turning into a nightmare for you, isn't it? :(
Perhaps try downloading expat from source and ./configure it.
Then go back and try freetype and see if that works.

I don't know why you're running into so many problems. :(

simeandrews 02-02-2005 07:25 PM

My computer has something against me lol! But seriously, over the last month even windows has gone all bad. Windoze was slow before, but NOW...

simeandrews 02-02-2005 07:48 PM

We have now gotten somewhere!

Fontconfig has been installed! My only problem is that my computer doesn't know that, I still have the same pango error. Maybe some paths have to be exported.

Micro420 02-02-2005 08:18 PM

Quote:

Originally posted by simeandrews
We have now gotten somewhere!

Fontconfig has been installed! My only problem is that my computer doesn't know that, I still have the same pango error. Maybe some paths have to be exported.

Well, that's some progress! I don't know much about exporting paths and telling your computer where files are, but try running AS ROOT

Code:

ldconfig
It does something with updating libraries on your computer. See if that solves the problem.

bunnadik 02-03-2005 01:51 AM

Either you're not describing what you're doing accurately, or you haven't understood my previous posts.

If a compilation can't find something you need to install the -devel package.
Instead of compiling fontconfig you could have run 'urpmi libfontconfig1-devel'
(or possibly just 'urpmi fontconfig-devel')

So when it couldn't find the expat package you should've installed the expat-devel
(it might possibly be called libexpat-devel or something similar).

If you have compiled and installed something successfully into /usr you shouldn't have to
do anything, the system should find the files.
If you're compiling to /usr/local you have to make sure you have "/usr/local/lib" in /etc/ld.so.conf.d/local.conf

As for it not finding pango : make sure there is a /usr/lib/pkgconfig/pango.pc file. If not you probably
forgot to add --prefix=usr when you configured pango, and if so you need to run
'export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig' and fix /etc/ld.so.conf.d/local.conf as described.

- Peder

simeandrews 02-03-2005 05:36 AM

Thanks bunnadik, but I tried all of those and it said either everything already installed or package not found. I'll try the other things later, I have to go out right now.

Tormented 02-03-2005 06:33 AM

All the devel packages you need are available with urpmi, so maybe your urpmi sources aren't properly configured.

Go to Easy Urpmi and check the box that says "show specific sources too" then click on the "proceed to step 2" button. Then choose a source contrib, source main, and source updates and click on the "proceed to step 3" button and copy and paste the commands it shows into a terminal as root.

Once you've got the sources configured you can open the package installer and search for "devel" and you will be able to find everything you need.

simeandrews 02-03-2005 01:24 PM

AHH! My cd and dvd drive have disappeared! Do I have to mount them, and if I do, how? This happened when I restarted my computer with my SD card in my drive which is installed in my system. When Linux turned on and found the card, it must have gotten confused, and now I have no CD and DVD in Linux, meaning I can't do urpmi.

BTW, ldconfig didnt work, should I have installed fontconfig to /usr?

Micro420 02-03-2005 03:01 PM

Quote:

Originally posted by simeandrews
AHH! My cd and dvd drive have disappeared! Do I have to mount them, and if I do, how? This happened when I restarted my computer with my SD card in my drive which is installed in my system. When Linux turned on and found the card, it must have gotten confused, and now I have no CD and DVD in Linux, meaning I can't do urpmi.

BTW, ldconfig didnt work, should I have installed fontconfig to /usr?

For URPMI, you don't need your CD & DVD drives anymore because they grab all the packages off the URPMI internet sources. That way, it will be up-to-date (soft of) rather than a fixed CD. So there may be new packages.

So when you say that your CD & DVD drive is gone, do you mean in general? If that's the case, then copy/paste your /etc/lilo.conf file for us.

Things just seem to get more messier and messier!

simeandrews 02-03-2005 03:51 PM

Ok, wait for it, you arent going to beleive it...








IT WORKED!!! PANGO IS INSTALLED AFTER AT LEAST 1-2 WEEKS OF HARD WORK AND EXAMS IN THE MIDDLE! IT WORKED!!! After I did easyurpmi, I tried urpmi libfontconfig1-devel, and I'd like to say sorry to peder because he had the answer the whole time, I just didnt know how to follow it because urpmi didnt install it at first.

EDIT: I'm getting a few errors in GTK install, like Tiff loader not found (i fixed it) PNG loader (fixing it) I'll get back to you, this may not be over.

simeandrews 02-03-2005 04:10 PM

Here's my new error:

Code:

[simon@localhost gtk+-2.6.1]$ ./configure --prefix=/usr
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for native Win32... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag  works... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
appending configuration tag "F77" to libtool
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for _LARGE_FILES value needed for large files... no
checking whether to enable maintainer-specific portions of Makefiles... no
checking for some Win32 platform... no
checking whether build environment is sane... yes
checking for strerror in -lcposix... no
checking for gcc option to accept ANSI C... none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... (cached) yes
checking for pkg-config... /usr/bin/pkg-config
checking for glib-2.0 >= 2.6.0    atk >= 1.0.1    pango >= 1.7.0... yes
checking BASE_DEPENDENCIES_CFLAGS... -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0
checking BASE_DEPENDENCIES_LIBS... -Wl,--export-dynamic -latk-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
checking Whether to write dependencies into .pc files... no
checking for perl5... /usr/bin/perl5
checking for indent... no
checking for lstat... yes
checking for mkstemp... yes
checking for flockfile... yes
checking for sigsetjmp... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for LC_MESSAGES... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for ngettext in libc... yes
checking for dgettext in libc... yes
checking for bind_textdomain_codeset... yes
checking for msgfmt... /usr/bin/msgfmt
checking for dcgettext... yes
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for catalogs to be installed...  af am ar az az_IR be bg bn br bs ca cs cy da de el en_CA en_GB es et eu fa fi fr ga gl gu he hi hr hu ia id is it ja ko li lt lv mi mk ml mn mr ms nb ne nl nn no nso pa pl pt pt_BR ro ru rw sk sl sq sr sr@ije sr@Latn sv ta th tk tr uk uz uz@Latn vi wa yi zh_CN zh_TW
checking for extra flags to get ANSI library prototypes... none needed
checking for the BeOS... no
checking for extra flags for POSIX compliance... none needed
checking for pkg-config... (cached) /usr/bin/pkg-config
checking for GLIB - version >= 2.6.0... yes (version 2.6.1)
checking for bind_textdomain_codeset... (cached) yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking for ANSI C header files... (cached) yes
checking for an ANSI C-conforming const... yes
checking return type of signal handlers... void
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking for mallinfo... yes
checking for getresuid... yes
checking for uid_t in sys/types.h... yes
checking for fd_set... yes, found in sys/types.h
checking for wchar.h... yes
checking for wctype.h... yes
checking for iswalnum... yes
checking if iswalnum() and friends are properly defined... yes
checking for uxtheme.h... no
checking whether to build gmodulized gdk-pixbuf... yes
checking whether dynamic modules work... yes
checking for TIFFReadScanline in -ltiff... yes
checking tiffio.h usability... yes
checking tiffio.h presence... yes
checking for tiffio.h... yes
checking for jpeg_destroy_decompress in -ljpeg... yes
checking for jpeglib.h... yes
checking for jpeg_simple_progression in -ljpeg... yes
checking for libpng12... yes
checking pixbuf loaders to build...
checking for sys/wait.h that is POSIX.1 compatible... yes
checking return type of signal handlers... (cached) void
checking for x86 platform... yes
checking compiler support for MMX... yes
checking for freetype-config... /usr/bin/freetype-config
checking For sufficiently new FreeType (at least 2.0.1)... yes
configure: error: Xft Pango backend is required for x11 target
[simon@localhost gtk+-2.6.1]$

This is getting so annoying, but Im getting so close!

simeandrews 02-03-2005 07:39 PM

I figured out that the CD and DVD drives just disappeared off the desktop, they do actually work even in Linux.


All times are GMT -5. The time now is 12:51 AM.