Search

Technical Discussion Group Forum

This forum is provided for user discussion. While Beacon EmbeddedWorks support staff and engineers participate, Beacon EmbeddedWorks does not guarantee the accuracy of all information within in the Technical Discussion Group (TDG).

The "Articles" forums provide brief Articles written by Beacon EmbeddedWorks engineers that address the most frequently asked technical questions.

To receive email notifications when updates are posted for a Beacon EmbeddedWorks product download, please subscribe to the TDG Forum of interest.

TDG Forum

PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 28 Jan 2016 08:51 AM by  Kyle Cote
DirectFB Compilation Error During Build
 2 Replies
Sort:
You are not authorized to post a reply.
Author Messages
Kyle Cote
New Member
New Member
Posts:6


--
29 Dec 2015 02:11 PM

    I'm investigating an issue that's occuring when building the defconfig (config/platform/omap_logic/defconfig) and it seems to be directly related to the package DirectFB. I've successfully built the same configuration by disabling the package but wonder how this is used in the configuration and what effects it would have in leaving it out of the build on the system.

     

    Error output:

    In file included from mkdgiff.c:42:
    /opt/bamboo_agent_home/xml-data/build-dir/BESW-PBT-JOB1/rootfs/usr/include/ft2build.h:56:38: error: freetype/config/ftheader.h: No such file or directory
    mkdgiff.c:43:10: error: #include expects "FILENAME" or
    /bin/sh ../libtool --tag=CC   --mode=link gcc -I/usr/include/freetype2 -O3 -ffast-math -pipe  -D_GNU_SOURCE  -Werror-implicit-function-declaration   -o directfb-csource directfb-csource.o -lpng12 -ldl -lpthread 
    /bin/sh ../libtool --tag=CC   --mode=link gcc -I/usr/include/freetype2 -O3 -ffast-math -pipe  -D_GNU_SOURCE  -Werror-implicit-function-declaration   -o dfbdump dfbdump.o ../src/libdirectfb.la ../lib/fusion/libfusion.la ../lib/direct/libdirect.la -ldl -lpthread 
    mv -f .deps/fx.Tpo .deps/fx.Po
    /bin/sh ../libtool --tag=CC   --mode=link gcc -I/usr/include/freetype2 -O3 -ffast-math -pipe  -D_GNU_SOURCE  -Werror-implicit-function-declaration   -o dfbg dfbg.o ../src/libdirectfb.la ../lib/fusion/libfusion.la ../lib/direct/libdirect.la  -ldl -lpthread 
    /bin/sh ../libtool --tag=CC   --mode=link gcc -I/usr/include/freetype2 -O3 -ffast-math -pipe  -D_GNU_SOURCE  -Werror-implicit-function-declaration   -o dfbinfo dfbinfo.o ../src/libdirectfb.la ../lib/fusion/libfusion.la ../lib/direct/libdirect.la  -ldl -lpthread 
    /bin/sh ../libtool --tag=CC   --mode=link gcc -I/usr/include/freetype2 -O3 -ffast-math -pipe  -D_GNU_SOURCE  -Werror-implicit-function-declaration   -o dfbinput dfbinput.o ../src/libdirectfb.la ../lib/fusion/libfusion.la ../lib/direct/libdirect.la  -ldl -lpthread 
    /bin/sh ../libtool --tag=CC   --mode=link gcc -I/usr/include/freetype2 -O3 -ffast-math -pipe  -D_GNU_SOURCE  -Werror-implicit-function-declaration   -o dfblayer dfblayer.o ../src/libdirectfb.la ../lib/fusion/libfusion.la ../lib/direct/libdirect.la  -ldl -lpthread 
    mkdgiff.c:230: error: expected declaration specifiers or '...' before 'FT_GlyphSlot'
    mkdgiff.c: In function 'write_glyph':
    mkdgiff.c:233: error: 'slot' undeclared (first use in this function)
    mkdgiff.c:233: error: (Each undeclared identifier is reported only once
    mkdgiff.c:233: error: for each function it appears in.)
    mkdgiff.c:245: error: 'ft_pixel_mode_grays' undeclared (first use in this function)
    mkdgiff.c:296: error: 'ft_pixel_mode_mono' undeclared (first use in this function)
    mkdgiff.c: At top level:
    mkdgiff.c:354: error: expected ')' before 'face'
    mkdgiff.c: In function 'main':
    mkdgiff.c:539: error: 'FT_Library' undeclared (first use in this function)
    mkdgiff.c:539: error: expected ';' before 'library'
    mkdgiff.c:540: error: 'FT_Face' undeclared (first use in this function)
    mkdgiff.c:540: error: expected ';' before 'face'
    mkdgiff.c:567: error: implicit declaration of function 'FT_Init_FreeType'
    mkdgiff.c:567: error: 'library' undeclared (first use in this function)
    mkdgiff.c:573: error: implicit declaration of function 'FT_New_Face'
    mkdgiff.c:573: error: 'face' undeclared (first use in this function)
    mkdgiff.c:575: error: 'FT_Err_Unknown_File_Format' undeclared (first use in this function)
    mkdgiff.c:583: error: implicit declaration of function 'FT_Select_Charmap'
    mkdgiff.c:583: error: 'ft_encoding_unicode' undeclared (first use in this function)
    mkdgiff.c:587: error: 'ft_encoding_latin_1' undeclared (first use in this function)
    mkdgiff.c:595: error: implicit declaration of function 'do_face'
    mkdgiff.c:603: error: implicit declaration of function 'FT_Done_Face'
    mkdgiff.c:606: error: implicit declaration of function 'FT_Done_FreeType'
    make[2]: *** [mkdgiff.o] Error 1


    I've searched for a fix and none have led to any answers. I'm not sure if it's fixed in a later version of DirectFB but would determine how it could affect anything running on the system. Any help/insight would be appreciated on the issue.

     

    Thanks,

    Kyle C.

     

     

    Adam Ford
    Advanced Member
    Advanced Member
    Posts:794


    --
    04 Jan 2016 09:38 AM
    The video driver uses a Frame Buffer interface. The stock BSP has a few test applications that use the DirectFB libraries to exercise the video system. If you don't use Video, the Direct FB stuff won't be needed.

    Based on the error message you're seeing, it looks like you're missing a library. The Linux User Guide has some instructions for making sure all the base libraries are setup when used with Ubuntu 12.04. We've tested the BSP against the virutal machine that we publish, and we know it works there. Based on the filename it appears to be Freetype.

    libfreetype6-dev and libfreetype6 packages may be missing on your build machine.

    Can you tell me what Linux Distribution you are using on your build machine and which version?

    adam



    Kyle Cote
    New Member
    New Member
    Posts:6


    --
    28 Jan 2016 08:51 AM

    On this current iteration I was working on a 14.04 VM but have since moved passed the problem by disabling the package for the build since we won't be using any Video as you mentioned. I've since moved from 12.04 (Logic PD Dist. VM) and have no problems so it must have been one of the packages you mentioned. Thanks for the input on the issue as it helped during the time.

     

    Kyle

    You are not authorized to post a reply.