View Full Version : text
johnny_north
2003.03.14, 12:05 AM
I've read the faq for using ftgl for text in carbon apps. It seems as though I might need to manually compile the libfreetype.a and libcppunit.a in order to use ftgl. I'm sure libfreetype.a can be compiled from the freetype 2 files, but could someone tell me how to accomplish it? Also, what is libcppunit.a?
henryj
2003.03.14, 01:34 AM
FTGL doesn't need cppunit. It's a unit testing library and is there for people who want to modify the library and need to check they haven't broken anything.
Freetype has instructions for building the lib in the download. On os x you can run configure ; make ; make install
For os 9 there is a code warrior project.
The code warrior project in FTGL is out of date and unsupported.
johnny_north
2003.03.15, 01:48 AM
Would someone mind holding my hand on this one?
Is the GNU Make installed with 10.2.3? If I run a search, I see a gnumake directory and a GNUSource.make file. Do I need to build GNU Make?
Once this is done, do I need to use the terminal app to run GNUMake from the root of freetype-2.1.4rc2?
Any help would be appreciated.
Feanor
2003.03.15, 01:53 AM
gnu make is a standard part of the BSD install, yes. I have not used the freetype library, but try "configure", "make", "make install" if it uses the autoconf build system. Often, that will be enough. Otherwise, look for a Mac OS X make directory and run make from in there.
henryj
2003.03.15, 06:16 AM
First you need the dev tools installed for make. Then in the freetype-2.x directory type (in a terminal)
./configure
make
At this point you can choose to install the freetype dynamic libs or you can grab the static lib to link against.
to install the dylib...
sudo make install
otherwise the static lib is hidden in the obj/.lib directory (note the dot)
An alternative method is to use fink. I'm pretty sure there is a freetype package there. Or you could ask me nice and I could email you a static lib.
johnny_north
2003.03.15, 01:40 PM
./configure returns the message "command not found" I supose this means that the correct tools are not installed. I've looked at the GNU Make ftp, but I'm a little confused about what to download. I would greatly appreciate having you mail me a copy of the libfreetype.a. If you hit me with an e-mail from my profile address, I'll give you my private address that will accept a larger attachment.
Thanks Henry!
OneSadCookie
2003.03.15, 06:30 PM
You need to cd into the freetype directory before you run any of those commands.
henryj
2003.03.15, 07:38 PM
There is no reason for you to download any tools if you have Apple's developer tools installed.
I think you should try to get this working before I send you anything because it's important that you can built these sorts of libraries if you want to do any serious programming.
johnny_north
2003.03.16, 04:27 PM
I have been trying to run ./configure from the freetype directory. I was reading about unix paths last night. Do I need to do this from the Unix root, or can I do it from any user? The os x manual says to avoid using the root unless it's REALLY necessary (ok I know it's written for non-programmers.) Anyway, this is what I'm experiencing:
[dana-martins-Computer:~/desktop/freetype-2.0.9] danamart% make -v
GNU Make version 3.79, by Richard Stallman and Roland McGrath.
Built for powerpc-apple-darwin6.0
Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99
Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
[dana-martins-Computer:~/desktop/freetype-2.0.9] danamart% ./configure
./configure: Command not found.
[dana-martins-Computer:~/desktop/freetype-2.0.9] danamart% make
builds/win32/detect.mk:61: *** missing `endif'. Stop.
[dana-martins-Computer:~/desktop/freetype-2.0.9] danamart% make install
builds/win32/detect.mk:61: *** missing `endif'. Stop.
henryj
2003.03.16, 06:15 PM
Do an ls -l in the freetype directory. You should have a file called configure and it should be executable...
-rwxr-xr-x 1 henry staff 1475 Jun 14 2002 configure
If you don't have this file go and download freetype again. If you have the file but it doesn't have the x's in the permissions do a chmod...
chmod +x configure
and then try again.
swcrissman
2003.03.16, 06:40 PM
For what its worth, I am having the same issues as johnny. Using ls -l I checked the permissions on the file, and it is executable by anyone, but when I attempt to run it, alla ./configure I get the same error message he already has listed. I even have attempted to give it the full path to the file, but I always get the command not found error message.
Spencer
henryj
2003.03.16, 10:16 PM
Are you using 2.0.9 as well? maybe it's broken and yu shpuld get another version.
swcrissman
2003.03.16, 11:20 PM
I tried it using 2.1.3 and then 2.1.4rc2, with the same results each time. I'm fairly baffled as to what is different under my (and apparently johnny's) setups, as it seems as though you've given a fairly comprehensive set of things that could be wrong, and yet it just isnt working.
Spencer
henryj
2003.03.17, 12:18 AM
In the freetype directory...
ls -l builds/unix/
There should be a configure there too...
-rwxr-xr-x 1 henry staff 294250 Sep 11 2002 configure
Originally posted by swcrissman
I tried it using 2.1.3 and then 2.1.4rc2, with the same results each time. I'm fairly baffled as to what is different under my (and apparently johnny's) setups, as it seems as though you've given a fairly comprehensive set of things that could be wrong, and yet it just isnt working.
Spencer
One other possibility: configure is a /bin/sh script, is /bin/sh there and with proper permissions?
$ ls -l /bin/sh
-r-xr-xr-x 1 root wheel 540884 Dec 20 03:09 /bin/sh*
swcrissman
2003.03.17, 09:02 AM
The builds/unix directory is there, and has the file with the proper permissions.
There is no /bin/sh directory on my machine, let alone any scripts in it. Is that the problem?
Spencer
/bin/sh is actually the shell executable, not a directory; if this is really missing, that's bad. If missing, is /bin/bash also missing?
swcrissman
2003.03.18, 10:40 PM
My bad. /bin/sh is there alright. I have a ~/bin folder, and somehow I must have cd'd into that when looking before.
So, no, that's not it either. Dang.
Spencer
OneSadCookie
2003.03.18, 10:51 PM
I just went to
http://prdownloads.sourceforge.net/freetype/freetype-2.0.9.tar.bz2?download
to get the 2.0.9 release. Safari downloaded it to my desktop, bunzip2'ed it and untar'ed it. Then I went to the terminal:
[bauer:~] keith% cd ~/Desktop/freetype-2.0.9/
[bauer:~/Desktop/freetype-2.0.9] keith% ./configure
(here it prints lots of junk)
[bauer:~/Desktop/freetype-2.0.9] keith% make
(here it prints lots more junk)
Then you can either sudo make install, or cp objs/.libs/libfreetype.a ~/Desktop/ and add that file to your project.
Originally posted by swcrissman
My bad. /bin/sh is there alright. I have a ~/bin folder, and somehow I must have cd'd into that when looking before.
So, no, that's not it either. Dang.
Spencer
At least you're not missing /bin/sh, that could be a bad sign...anyway, since configure is a /bin/sh script, does
cd /some/path/freetype-x.y.z/
sh configure
work?
swcrissman
2003.03.19, 07:42 PM
Ok, I downloaded the file (again), and went through it. Here are my results:
[cblmdmYY-ZZZ-XX-YYY:~/Desktop] spencer% cd freetype*
[cblmdmYY-ZZZ-XX-YYY:~/Desktop/freetype-2.1.4rc2] spencer% sh configure
: command not found
configure: line 61: syntax error: unexpected end of file
[cblmdmYY-ZZZ-XX-YYY:~/Desktop/freetype-2.1.4rc2] spencer% ls
ChangeLog Jamrules README.UNX descrip.mms include src
Jamfile Makefile builds devel install tests
Jamfile.in README configure docs objs
[cblmdmYY-ZZZ-XX-YYY:~/Desktop/freetype-2.1.4rc2] spencer% ls -l configure
-rwxr-xr-x 1 spencer staff 1535 Mar 16 17:42 configure
[cblmdmYY-ZZZ-XX-YYY:~/Desktop/freetype-2.1.4rc2] spencer% ./configure
./configure: Command not found.
I really don't see anything done differently than what you've all suggested, but maybe I'm blind...
Spencer
OneSadCookie
2003.03.19, 07:49 PM
Use 2.0.9 rather than 2.1.4.
henryj
2003.03.19, 08:02 PM
that's pretty weird. There must be something messed up on your system.
I'll post the static lib some where tonight for you to download.
henryj
2003.03.20, 04:26 AM
Try this...
http://203.79.110.215/~henry/Freetype.tgz
swcrissman
2003.03.20, 01:47 PM
Well, after much strangeness, here is that status:
2.1.3 and 2.1.4rc2 did not work. Doing the same things with version 2.0.9 did work. OSC, was there a reason for suggesting that over the others, or was that just good luck?
I still do not understand why I would end up with the results I did for the other versions. The errors I got back did not seem logical, IMHO.
In any case, later tonight I will try out the library and make sure I'm able to make use of it.
Thanks everyone for your time, help, and patience.
Spencer
OneSadCookie
2003.03.20, 03:38 PM
I just know that there's been a few times I've tried a later version than 2.0.9 and had problems (not, I think, the problems you've described, but it did seem like a reasonable suspicion...).
I also thought it was strange that 2.0.9 would have worked so easily for me and not at all for you.
vBulletin® v3.6.8, Copyright ©2000-2008, Jelsoft Enterprises Ltd.