2009-10-02 12:17:09     Error building Qt

Document created by Aaronwu Employee on Aug 19, 2013
Version 1Show Document
  • View in full screen mode

2009-10-02 12:17:09     Error building Qt

Jay Ku (UNITED STATES)

Message: 80806   

 

I'm having trouble building Qt with my 2009R1-RC6 installation.  In menuconfig, I've selected Build Qt and, under that, Build demos/examples.  The error seems to be here:

 

qt-embedded-linux-opensource-src-4.5.1/src/gui/text/qfontengine_ft_p.h:59:10: error: #include expects "FILENAME" or <FILENAME>

 

The line in question is:

 

#include FT_FREETYPE_H

 

Has anyone else seen this?

 

- jay

QuoteReplyEditDelete

 

 

2009-10-02 13:59:14     Re: Error building Qt

Mike Frysinger (UNITED STATES)

Message: 80810   

 

i imagine you should enable the freetype librarry in the menuconfig

QuoteReplyEditDelete

 

 

2009-10-02 14:21:42     Re: Error building Qt

Jay Ku (UNITED STATES)

Message: 80811   

 

I did... now I get:

 

uClinux-dist-2009R1-RC6/staging/usr/include/ft2build.h:56:38: error: freetype/config/ftheader.h: No such file or directory

 

Everything it needs is down in freetype2/freetype, but something isn't set correctly.

QuoteReplyEditDelete

 

 

2009-10-05 01:54:27     Re: Error building Qt

Jay Ku (UNITED STATES)

Message: 80826   

 

I managed to get Qt to build, but my method was pretty ugly.  When the build failed, I went to staging/usr/include and did 'cp -r freetype2/freetype .' (it seems the include dir at usr/include/freetype2/freetype should actually be at usr/include/freetype).  After this the build completes (I couldn't figure out just was what going on with the Makefiles).  Unfortunately the final image was ~10MB.  I took the stuff out of /usr/lib and copied it to my NAND flash volume (this got the image down below 4MB), but when I try to run any of the demos on my 32MB (256Mbit) board, I get memory allocation errors (at one point it tries to allocate an 8MB block!).  Maybe if I knew more about Qt I could widdle it down to run on my board, but for now I'm just going to shelve it in favor of something that takes less memory.

QuoteReplyEditDelete

 

 

2009-10-05 02:22:43     Re: Error building Qt

Mike Frysinger (UNITED STATES)

Message: 80827   

 

maybe doing `make lib/qt-embedded_clean` first would force a re-run of the configure script and properly find the freetype headers.  the install in the staging dir by freetype itself is correct.

 

yes, QT itself currently takes quite a bit of memory to use.  this might be something that can be addressed, but i dont know how -- QT is a pain to build and the docs dont seem to cover this.

Attachments

    Outcomes