Hi,

> Dirk,
> I figured out the patch for the Makefile to find the SerializeClass lib. I
> just
> added a -I../../../staging/arm-linux/lib and a
> -L../../../staging/arm-linux/lib/
> and it compiled. I tried making a patch file by copying the DCE dir to
> DCE_orig made the change and then did:
>
> diff -Nurd ../DCE_orig/Makefile Makefile > dce_make.patch
> cp dce_make.patch ~/oe/org.openembedded.oz354x/packages/DCE/dce_make.patch

create a patch:
- install quilt
- cd into your source dir ${S}
- type 'quilt new patchname'
- add files: 'quilt add file'
- edit your file(s)
- type 'quilt refresh' to refresh your patch
- 'quilt diff -u > patchname.patch' extracts the patch


You are using the host compiler instead of the oe crosscompiler in your
files.
You have to patch your makefiles to remove the host compiler. Example for
dce:
===================================================================
--- DCE.orig/Makefile   2006-08-08 08:54:42.000000000 +0200
+++ DCE/Makefile        2006-08-08 09:52:11.807921000 +0200
@@ -1,11 +1,7 @@
 ROOT = ..
 VIP = ../VIPShared
 GDEV = ./Gen_Devices
-CXXFLAGS = -Wall -ggdb3
-CPPFLAGS = -I./ -I../ -I../DCE/ -I../VIPShared/ -I/usr/include/mysql
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_DEVEL_DEFINES -DUSE_
LZO_DATAGRID -D_GNU_SOURCE $(EXTRA)
-CXX = g++
-LDFLAGS = -L$(ROOT)/lib
-LDLIBS = -lpthread -lmysqlclient_r -lSerializeClass
+LDLIBS = -lpthread -lmysqlclient -lSerializeClass

and instead set the flags in your bbs
CXXFLAGS_append = "-Wall -ggdb3"
CPPFLAGS_append = "-I./ -I../ -I../DCE/ -I../VIPShared/
-I${STAGING_INCDIR}/mysql -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-D_DEVEL_DE
FINES -DUSE_LZO_DATAGRID -D_GNU_SOURCE"


also your serializeclass needs these changes. You can check the libs using
the file command:

file libSerializeClass.so
should generate something like
ELF 32-bit LSB shared object, ARM, version 1 (ARM), not stripped


Dirk

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

Reply via email to