LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-14-2004, 12:37 AM   #1
tnunamak
LQ Newbie
 
Registered: Sep 2004
Posts: 7

Rep: Reputation: 0
freetype installed or not


I tried to install freetype but got some wierd errors (too many to list), so then I went and downloaded the freetype rpm but it says freetype is installed already. when I try to install fontconfig for pango, it says freetype is not installed. How do I get rid of the old freetype to just use the rpm?
 
Old 09-14-2004, 07:57 AM   #2
tnunamak
LQ Newbie
 
Registered: Sep 2004
Posts: 7

Original Poster
Rep: Reputation: 0
anyone?
 
Old 09-14-2004, 10:16 AM   #3
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Don't fiddle with freetype or fontconfig. If you want to compile things (like pango) against them you need to install the development libs, they may be called something like libfreetype2-dev.rpm and should be on your Linux CD's
 
Old 12-21-2004, 09:38 AM   #4
jayjwa
Member
 
Registered: Jul 2003
Location: NY
Distribution: Slackware, Termux
Posts: 771

Rep: Reputation: 242Reputation: 242Reputation: 242
There's two "freetypes": freetype and freetype2. Likely your packaged freetype came with only the shared libraries used by applications when they run, and not the other files needed to actually compile something that wants to make use of freetype. Like the other post says, sometimes there's a "devel" version of the package as well which you may be able to install in addition to what you have already. Or you can build freetype from source yourself, which will then include the whole kit & kaboodle. If you do go that route, you'll have to uninstall any old freetype packages before you put the source built ones in its place. Be careful, as sometimes some of your apps will use those libraries that would get uninstalled. To make sure, check and see which files will be removed, then save a copy of the .so (shared object) libraries that would be removed. Go about your build, and install the new, complete freetype in the place of the old one. Run ldconfig to update the shared object cache, and test out some apps. that use freetype. They should work, but if anything goes wrong, you still have the old .so libs and can put them back temporarily, just make sure anything you're building from here on in uses the new libraries and not the old one, so that you can eventually phase the old version out. An alternative is to recompile things that used the old libraries using the new ones. This may end up being quite a bit of work, depending on the libraries you're dealing with. You can use
Code:
ldd <dynamically linked application>
to find out which libraries a certain application is needing.
If you are using GCC and it's a newer version, you may have trouble compiling freetype 1.3.1, in particular the file ftdump.c. However, I just posted a patch for this taken from the composite of several other patches I found while researching why my own freetype 1.3.1 build was failing on the make of ftdump.c.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Freetype... Linux~Powered Slackware 3 03-02-2005 11:06 AM
recompiling freetype eel Fedora 1 11-11-2003 06:14 AM
recompiling freetype eel Red Hat 1 11-10-2003 10:20 AM
Freetype-devel for freetype-2.1.4-1 (redhat 9) Goog Linux - Distributions 0 05-05-2003 06:55 PM
freetype no1d Linux - Software 0 02-28-2003 04:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration