On 8/11/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Still working on libsdl-sge. I have been hacking/patching a bunch of files. I 
am not even sure what the crap I've done anymore. But now I get an error make:

| ccache arm-linux-g++ -march=armv5te -mtune=xscale 
-I/home/oc60174/oe/build/tmp/staging/arm-linux/include 
-fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2 
-I/home/oc60174/oe/build/tmp/staging/arm-linux/include/SDL -D_REENTRANT -fPIC 
-I/home/oc60174/oe/build/tmp/staging/arm-linux/include/freetype2 
-I/home/oc60174/oe/build/tmp/staging/arm-linux/include -c sge_tt_text.cpp
| In file included from sge_tt_text.cpp:39:
| 
/home/oc60174/oe/build/tmp/staging/arm-linux/include/freetype2/freetype/freetype.h:20:2: 
#error "`ft2build.h' hasn't been included yet!"
| 
/home/oc60174/oe/build/tmp/staging/arm-linux/include/freetype2/freetype/freetype.h:21:2: 
#error "Please always use macros to include FreeType header files."
| 
/home/oc60174/oe/build/tmp/staging/arm-linux/include/freetype2/freetype/freetype.h:22:2: 
#error "Example:"
| /home/oc60174/oe/build/tmp/staging/arm-linux/include/freetype2/freetype/freetype.h:23:2: 
#error "  #include <ft2build.h>"
| 
/home/oc60174/oe/build/tmp/staging/arm-linux/include/freetype2/freetype/freetype.h:24:2: 
#error "  #include FT_FREETYPE_H"
| make: *** [sge_tt_text.o] Error 1
| FATAL: oe_runmake failed

This error is coming from freetype.h:
#ifndef FT_FREETYPE_H
#error "`ft2build.h' hasn't been included yet!"
#error "Please always use macros to include FreeType header files."
#error "Example:"
#error "  #include <ft2build.h>"
#error "  #include FT_FREETYPE_H"
#endif

I tried exporting FT_FREETYPE_H in the bb file like this:
do_compile() {
        export FT_FREETYPE_H=${STAGING_INCDIR}/ft2build.h

You shouldn't have to define this I think. The freetype files are
telling you to use that define which, apparently, is defined in some
freetype include file.

In fact, as it says, you need to:
#include <ft2build.h>
first. Then FT_FREETYPE_H is defined (yes, I grepped for it) so you can:
#include FT_FREETYPE_H

        export STAGING_INCDIR=${STAGING_INCDIR}
        export STAGING_LIBDIR=${STAGING_LIBDIR}
        export STAGING_BINDIR=~/oe/build/tmp/staging/arm-linux/bin
        oe_runmake install
}

And it still won't find it.

Any ideas?

Rob
 -------------- Original message ----------------------
From: "Justin Patrin" <[EMAIL PROTECTED]>
> On 8/11/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > I tried the following:
> > Removed:
> >  -I${STAGING_INCDIR}/freetype2 -I${STAGING_INCDIR}/freetype2/freetype from
> CPPFLAGS
> > and removed:
> > EXTRA_OEMAKE = "'STAGING_INCDIR=-I${STAGING_INCDIR}' \
> >                 'STAGING_LIBDIR=-L${STAGING_LIBDIR}'"
> >
> > Didn't make a difference. I still get the same
> > linker input  file unused because linking not done
> > error.
> >
> > And this one:
> > | cc1plus: /home/oc60174/oe/build/tmp/staging/arm-linux/include/freetype2: 
No
> > such file or directory
> >
> > I know that this directory exists and the .h files are in there under the
> freetype2/freetype directory.
> >
> > Any ideas?
> >
>
> Well, you shouldn't be trying to link an include directory. Try
> looking into the command and Makefile and find out why the include dir
> is trying to be linked.
>
> > Rob
> >
> >  -------------- Original message ----------------------
> > From: "Justin Patrin" <[EMAIL PROTECTED]>
> > > On 8/11/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > > > Ok, I made another stupid mistake. It was a "-" not "_".  I apologize 
for
> all
> > > these stupid questions and I appreciate your patience.
> > > >
> > > > libsdl-sge is still not building. I ran into another problem.
> > > >
> > > > Here is the error:
> > > > NOTE: package libsdl-sge-030809.0.0-r0: task do_compile: started
> > > > ERROR: function do_compile failed
> > > > ERROR: log data follows
> > >
> 
(/home/oc60174/oe/build/tmp/work/libsdl-sge-030809.0.0-r0/temp/log.do_compile.77
> > > 47)
> > > > | NOTE: make install
> > > > | == SGE r030809
> > > > | == Note: Trying to be C friendly.
> > > > | == FreeType2 support enabled.
> > > > | == SDL_Image (SFont) support enabled.
> > > > |
> > > > | ccache arm-linux-g++ -march=armv5te -mtune=xscale
> > > -I/home/oc60174/oe/build/tmp/staging/arm-linux/include
> -fexpensive-optimizations
> > > -fomit-frame-pointer -frename-registers -O2
> > > -I/home/oc60174/oe/build/tmp/staging/arm-linux/include/SDL -D_REENTRANT
> -fPIC
> > > /home/oc60174/oe/build/tmp/staging/arm-linux/include/freetype2 -c
> > > sge_surface.cpp
> > > > | arm-linux-g++:
> > > /home/oc60174/oe/build/tmp/staging/arm-linux/include/freetype2: linker 
input
> > > file unused because linking not done
> > > > | arm-linux-g++:
> > > /home/oc60174/oe/build/tmp/staging/arm-linux/include/freetype2: linker 
input
> > > file unused because linking not done
> > > > | cc1plus: 
/home/oc60174/oe/build/tmp/staging/arm-linux/include/freetype2:
> No
> > > such file or directory
> > > > | make: *** [sge_surface.o] Error 1
> > > > | FATAL: oe_runmake failed
> > > > NOTE: Task failed:
> > >
> 
/home/oc60174/oe/build/tmp/work/libsdl-sge-030809.0.0-r0/temp/log.do_compile.774
> > > 7
> > > > NOTE: package libsdl-sge-030809.0.0-r0: task do_compile: failed
> > > > ERROR: TaskFailed event exception, aborting
> > > > NOTE: package libsdl-sge-030809.0.0: failed
> > > > ERROR: Build of libsdl-sge failed
> > > >
> > > > /home/oc60174/oe/build/tmp/staging/arm-linux/include/freetype2 is there.
> Not
> > > sure why it is not finding it.  And what does this linker error mean?
> > > >
> > > > Here is the bb file for reference:
> > > > DESCRIPTION = "Simple DirectMedia Layer SGE library."
> > > > SECTION = "libs"
> > > > PRIORITY = "optional"
> > > > MAINTAINER = "me"
> > > > DEPENDS = "zlib freetype virtual/libsdl"
> > > > LICENSE = "LGPL"
> > > >
> > > > SRC_URI = 
"http://www.etek.chalmers.se/~e8cal1/sge/files/sge030809.tar.gz
> \
> > > >            file://makefileconf_make.patch;patch=1"
> > > >
> > > > S = "${WORKDIR}/sge030809"
> > > >
> > > > CXXFLAGS_append = "-Wall -ggdb3"
> > > > CPPFLAGS_append = "-I.. -I../ -I${STAGING_INCDIR} 
-I${STAGING_INCDIR}/SDL
> > > -I${STAGING_INCDIR}/freetype2 -I${STAGING_INCDIR}/freetype2/freetype \
> > > > -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_DEVEL_DEFINES 
-D_GNU_SOURCE"
> > >
> > > You normally should only need ${STAGING_INCDIR} here, the subdirs
> > > should be automatically part of the included file's path. Try removing
> > > the freetype ones and only add them back in if you absolutely need
> > > them. Make sure the files you neeed included are within the right
> > > path.
> > >
> > > >
> > > > EXTRA_OEMAKE = "'STAGING_INCDIR=-I${STAGING_INCDIR}' \
> > > >                 'STAGING_LIBDIR=-L${STAGING_LIBDIR}'"
> > >
> > > I don't know what this is but it shouldn't be needed.
> > >
> > > >
> > > > inherit autotools
> > > >
> > > > do_compile() {
> > > >         export STAGING_INCDIR=${STAGING_INCDIR}
> > > >         export STAGING_LIBDIR=${STAGING_LIBDIR}
> > > >         oe_runmake install
> > > > }
> > > >
> > > > do_stage() {
> > > >         oe_libinstall -so libSDL_sge ${STAGING_LIBDIR}
> > > >         install -m 0644 *.h ${STAGING_INCDIR}/SDL/
> > > > }
> > > >
> > > >
> > > > and here is the patch file:
> > > > Index: sge030809/Makefile.conf
> > > > ===================================================================
> > > > --- sge030809.orig/Makefile.conf
> > > > +++ sge030809/Makefile.conf
> > > > @@ -9,8 +9,8 @@ C_COMP = y
> > > >
> > > >
> > > >  # Compilers (C and C++)
> > > > -CC=gcc
> > > > -CXX=g++
> > > > +#CC=gcc
> > > > +#CXX=g++
> > > >
> > > >  # Make sure sdl-config is available
> > > >  HAVE_SDL =$(shell if (sdl-config --version) < /dev/null > /dev/null 
2>&1;
> > > then echo "y"; else echo "n"; fi;)
> > > > @@ -19,20 +19,22 @@ ifeq ($(HAVE_SDL),n)
> > > >  endif
> > > >
> > > >  # Where should SGE be installed?
> > > > +PREFIX =$(shell sdl-config --prefix=${STAGING_LIBDIR})
> > > >  PREFIX =$(shell sdl-config --prefix)
> > > >
> > > >  # Where should the headerfiles be installed?
> > > > -PREFIX_H =$(shell sdl-config --prefix)/include/SDL
> > > > +PREFIX_H =$(shell sdl-config --prefix=$STAGING_INCDIR)
> > > > +PREFIX_H =$(shell sdl-config --prefix)/SDL
> > > >
> > > >  # Flags passed to the compiler
> > > > -CFLAGS =-Wall -O3 -ffast-math
> > > > -SGE_CFLAGS =$(shell sdl-config --cflags)
> > > > +#CFLAGS =-Wall -O3 -ffast-math
> > > > +SGE_CFLAGS =-I${STAGING_INCDIR}/SDL -D_REENTRANT
> > > >  # Uncomment to make some more optimizations
> > > >  #CFLAGS =-Wall -O9 -ffast-math -march=i686
> > > >
> > > >
> > > >  # Libs config
> > > > -SGE_LIBS =$(shell sdl-config --libs) -lstdc++
> > > > +SGE_LIBS =${STAGING_LIBDIR} -lstdc++
> > > >
> > > >
> > > >  # Is freetype-config available?
> > > > @@ -43,8 +45,8 @@ endif
> > > >
> > > >  ifneq ($(USE_FT),n)
> > > >    USE_FT = y
> > > > -  SGE_LIBS +=$(shell freetype-config --libs)
> > > > -  FT_CFLAGS =$(shell freetype-config --cflags)
> > > > +  SGE_LIBS +=${STAGING_LIBDIR}
> > > > +  FT_CFLAGS =${STAGING_INCDIR}/freetype2
> > > >  endif
> > > >
> > > > Again, I appreciate all your help!
> > > >
> > > > Rob
> > > >
> > >
> > >
> > > --
> > > Justin Patrin
> > > _______________________________________________
> > > Oe mailing list
> > > [email protected]
> > > https://www.handhelds.org/mailman/listinfo/oe
> >
> >
> >
>
>
> --
> Justin Patrin
> _______________________________________________
> Oe mailing list
> [email protected]
> https://www.handhelds.org/mailman/listinfo/oe





--
Justin Patrin
_______________________________________________
Oe mailing list
[email protected]
https://www.handhelds.org/mailman/listinfo/oe

Reply via email to