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

Reply via email to