[<<] [<] Page 1 of 1 [>] [>>] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
how to cross compile FreeType font freetype1.3.1
From: "Allen Yang" ####@####.#### Date: 27 Jun 2007 19:54:55 +0100 Message-Id: <33B07717EB1E594F934D63BE3BDA5A3F824D5C@itexch01.nucomm.local> HI, I am working with a ColdFire microprocessor MCF5329. OS I am using is uClinux. Basically nano-x is working on my board. I can display the window and some built-in fonts. Right now I am trying to add freetype font into my application so that I can use different size of fonts. I downloaded FreeType library 1.3.1 from microwindows.org. However, I could not figure out how to cross compile this library. It seems that the configration file is complicated. Any one here made it work? Would you please give me a direction? Any suggestions will be highly appreciated. Regards, Allen The information contained in this email and attachments to this email are the proprietary and confidential property of Nucomm, Inc. The information is provided in strict confidence and shall not be reproduced, copied, or used (partially or wholly) in any manner without prior, express written authorization of Nucomm, Inc. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
AW: [nanogui] how to cross compile FreeType font freetype1.3.1
From: "Thomas Malkus" ####@####.#### Date: 1 Jul 2007 17:16:22 +0100 Message-Id: <001401c7bbfb$235a3bd0$6a0eb370$@de> Hi, > Right now I am trying to add freetype font into my application so that I > can use different size of fonts. I downloaded FreeType library 1.3.1 > from microwindows.org. However, I could not figure out how to cross > compile this library. It seems that the configration file is > complicated. > Any one here made it work? Would you please give me a direction? Yes, with a ARM9 (AT91RM9200) but not with freetype 1.3.1. I had much trouble with freetype and nano-X, too. Now it is ok. I use microwindows 0.91 (or CVS source) and freetype 2.0.9 (you must search with Google for freetype-2.0.9.tar.gz) For compiling freetype2 define the exports for your toolchain. Example: export CC=arm-linux-3.4.2-gcc export CXX=arm-linux-3.4.2-g++ export CPP=arm-linux-3.4.2-cpp export AR=arm-linux-3.4.2-ar export RANLIB=arm-linux-3.4.2-ranlib export STRIP=arm-linux-3.4.2-strip Change to the freetype-2.0.9 directory and use (with the option for your processor architecture. ./configure --host=arm-linux --enable-static make After build of freetype2 change the config of microwindows: FREETYPE_FONT_DIR=$(YOURPATH)/fonts/truetype HAVE_FREETYPE_2_SUPPORT = Y INCFT2LIB = $(YOURPATH)/freetype-2.0.9/include LIBFT2LIB = $(YOURPATH)/freetype-2.0.9/objs/.libs/libfreetype.a and do a rebuild on microwindows. You could also use MWFONTDIR as path to the font directory. Regards, Tom | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
RE: [nanogui] how to cross compile FreeType font freetype1.3.1
From: "Allen Yang" ####@####.#### Date: 3 Jul 2007 17:37:48 +0100 Message-Id: <33B07717EB1E594F934D63BE3BDA5A3F87F28F@itexch01.nucomm.local> Hi, Thomas. Thank you very much for your info. It's very helpful. I am using microwindows 0.90, freetype-2.1.7, ColdFire MCF5329 and uClinux 2.6.17. I used the following commands to configure my toolchain: export CC=/opt/freescale/usr/local/gcc-4.1-uclibc-0.9/m68k-uclibc/bin/m68k-ucli nux-gcc export CXX=/opt/freescale/usr/local/gcc-4.1-uclibc-0.9/m68k-uclibc/bin/m68k-ucl inux-g++ export CPP=/opt/freescale/usr/local/gcc-4.1-uclibc-0.9/m68k-uclibc/bin/m68k-ucl inux-cpp export AR=/opt/freescale/usr/local/gcc-4.1-uclibc-0.9/m68k-uclibc/bin/m68k-ucli nux-ar export RANLIB=/opt/freescale/usr/local/gcc-4.1-uclibc-0.9/m68k-uclibc/bin/m68k- uclinux-ranlib export STRIP=/opt/freescale/usr/local/gcc-4.1-uclibc-0.9/m68k-uclibc/bin/m68k-u clinux-strip Then I use the following line to configure freetype-2.1.7: ./configure --host=m68k-uclinux --enable-static I am not sure if "--host=m68k-uclinux" is correct. Can you give your opinion? Then I did "make". The compilation was successful. Then I changed config of microwindows like this: FREETYPE_FONT_DIR=/home/hiren/work/RemoteControl/fonts/truetype HAVE_FREETYPE_2_SUPPORT = Y INCFT2LIB = /home/hiren/work/ltib-m532xevb-20061117/rpm/BUILD/freetype-2.1.7/include LIBFT2LIB = /home/hiren/work/ltib-m532xevb-20061117/rpm/BUILD/freetype-2.1.7/objs/.l ibs/libfreetype.a Then I rebuilt microwindows. The compilation was successful. Once I downloaded the file into my ColdFire board. My file was located in "/tmp". I got the following error messages once I ran my application. I did NOT see the FreeType fonts. Some small built-in fonts were shown on the screen. fnt_createfont: /tmp/times.ttf,25 not found Nano-X-Freetype2: Freetype 2 error 1 trying to load font. freetype2_createfont: /tmp/times.ttf,25 not found Then I copied "times.ttf" to "/tmp". I got the following error message once I ran my application. But I saw the big fonts of FreeType. It's working!!! fnt_createfont: /tmp/times.ttf,25 not found In my application, I call the following function to create the font: font_times = GrCreateFont((GR_CHAR *)"/tmp/times.ttf", 25, NULL); Any idea about this issue? Or I don't need to care about it since it's working? Do I need to copy "times.ttf" to the file system on my uClinux board? Thanks and Regards, Allen Yang -----Original Message----- From: Thomas Malkus ####@####.#### Sent: Sunday, July 01, 2007 12:16 PM To: ####@####.#### Subject: AW: [nanogui] how to cross compile FreeType font freetype1.3.1 Hi, > Right now I am trying to add freetype font into my application so that I > can use different size of fonts. I downloaded FreeType library 1.3.1 > from microwindows.org. However, I could not figure out how to cross > compile this library. It seems that the configration file is > complicated. > Any one here made it work? Would you please give me a direction? Yes, with a ARM9 (AT91RM9200) but not with freetype 1.3.1. I had much trouble with freetype and nano-X, too. Now it is ok. I use microwindows 0.91 (or CVS source) and freetype 2.0.9 (you must search with Google for freetype-2.0.9.tar.gz) For compiling freetype2 define the exports for your toolchain. Example: export CC=arm-linux-3.4.2-gcc export CXX=arm-linux-3.4.2-g++ export CPP=arm-linux-3.4.2-cpp export AR=arm-linux-3.4.2-ar export RANLIB=arm-linux-3.4.2-ranlib export STRIP=arm-linux-3.4.2-strip Change to the freetype-2.0.9 directory and use (with the option for your processor architecture. ./configure --host=arm-linux --enable-static make After build of freetype2 change the config of microwindows: FREETYPE_FONT_DIR=$(YOURPATH)/fonts/truetype HAVE_FREETYPE_2_SUPPORT = Y INCFT2LIB = $(YOURPATH)/freetype-2.0.9/include LIBFT2LIB = $(YOURPATH)/freetype-2.0.9/objs/.libs/libfreetype.a and do a rebuild on microwindows. You could also use MWFONTDIR as path to the font directory. Regards, Tom --------------------------------------------------------------------- To unsubscribe, e-mail: ####@####.#### For additional commands, e-mail: ####@####.#### The information contained in this email and attachments to this email are the proprietary and confidential property of Nucomm, Inc. The information is provided in strict confidence and shall not be reproduced, copied, or used (partially or wholly) in any manner without prior, express written authorization of Nucomm, Inc. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
AW: [nanogui] how to cross compile FreeType font freetype1.3.1
From: "Thomas Malkus" ####@####.#### Date: 3 Jul 2007 19:31:15 +0100 Message-Id: <004b01c7bda0$4256cbb0$c7046310$@de> Hi, Allen, > Then I use the following line to configure freetype-2.1.7: > ./configure --host=m68k-uclinux --enable-static Fine that it compiles also freetype 2.1.7, I had found a message that the changes to the structure are in version > 2.1, so I tried 2.0.9. > I am not sure if "--host=m68k-uclinux" is correct. Can you give your > opinion? I think it is ok, because if the configure script does not know this option you will get an error message. You could have a look at configure. > Then I copied "times.ttf" to "/tmp". I got the following error message > once I ran my application. But I saw the big fonts of FreeType. It's > working!!! Fine! > fnt_createfont: /tmp/times.ttf,25 not found > In my application, I call the following function to create the font: > font_times = GrCreateFont((GR_CHAR *)"/tmp/times.ttf", 25, NULL); > Any idea about this issue? Or I don't need to care about it since it's > working? Do I need to copy "times.ttf" to the file system on my uClinux > board? I mean that this error message is normal. I have also configured microwin for bdf-Fonts and get two error messages. You could disable the usage of these font types in the config of microwindows. I use a SD-Card for my complete application, libs and fonts. You must have the ttf fonts on your board or a extern medium so that your application/ microwin can find them. If you need a widget toolset you can try flnx-0.45 (FLTK for nano-x). That works fine. I have not found a newer version of flnx until yet and with nxlib and fltk 1.1.7 I have much trouble with unresolved symbols. Regards, Tom | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[<<] [<] Page 1 of 1 [>] [>>] |