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.7747)
| 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.7747
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"

EXTRA_OEMAKE = "'STAGING_INCDIR=-I${STAGING_INCDIR}' \
                'STAGING_LIBDIR=-L${STAGING_LIBDIR}'"

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
_______________________________________________
Oe mailing list
[email protected]
https://www.handhelds.org/mailman/listinfo/oe

Reply via email to