Am Freitag 25 August 2006 01:50 schrieb Norma Angélica Serrano De Ita:
> My name is Norma Angelica Serrano De Ita. I am writing you because I need
> to install open-obex-1.2 in my PC but I am having some problems with the
> complete installation of the library. I am making the following
> Cross-Compilation ./configure --prefix=/home/x0052729/norma
> --exec-prefix=/home/x0052729/norma --disable-usb
> CC=/data/omapts/linux/arm-tc/mv-latest/bin/arm_v5t_le-gcc --enable-apps &&
> make clean && make && make install

First, when cross-compiling for your portable device, you have to consider a 
bit more than using the proper compiler. For win32 cross-compiling of 
programs, I use the following script (I have it at ~/bin/cross-configure):
------------------snip-----------------------
#!/bin/sh
TARGET_HOST="i586-mingw32msvc"

BASE=$(echo ~/win32)
CFLAGS="-I${BASE}/include"
LDFLAGS="-L${BASE}/lib"
export CFLAGS
export LDFLAGS

./configure \
  --target=${TARGET_HOST} --host=${TARGET_HOST} --build=$(uname -m)-linux \
  --prefix=${BASE} "$@"
------------------snip-----------------------
You have to adjust BASE and TARGET_HOST. Base should point to a directory 
where libs for the target systems are (for proper linking).
Note: --target is optional here but it doesn't hurt.

> The --enable-apps allows the creation of 
> irpc, but when compiling irpc it fails showing the following message:
> /data/omapts/linux/arm-tc/mv-latest/bin/arm_v5t_le-gcc -Wall -O2
> -D_FORTIFY_SOURCE=2 -o ircp ircp.o  ../lib/.libs/libopenobex.a
> -L/home/x0052729/norma/lib libircp.a
>
> libircp.a(ircp_client.o)(.text+0x50): In function `$a':
> : undefined reference to `OBEX_ObjectAddHeader'

The linking somehow fails. Try again with the script above, maybe some 
variable was incorrect.

HS

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Openobex-users mailing list
[email protected]
http://lists.sourceforge.net/lists/listinfo/openobex-users

Reply via email to