Problem in Cross compiling Pwlib for LINUX

2004-02-05 Thread Antonello Lombardinilo

Hi all,
I work on embedded system based on MPC860L. I cross compiled PWLIB 1.5.2 in
the
following way:
1) Edit file ~/pwlib/configure, commenting the sentences => "cannot check"
2) $ ./configure --host=ppc-linux --target=ppc-linux
3) Edit file ~/pwlib/include/ptbuildopts.h and undefine:
 #undefine P_LDAP
 #undefine P_EXPAT
 //#define P_SSL 1
 //#define USE_SYSTEM_SWAB 1
4) Edit file ~/pwlib/ptbuildopts.mak:
 CC=ppc-linux-gcc
 CPLUS=ppc-linux-g++
  change ENDLIBS flag in this way:
 ENDLIBS += -lpthread -lcrypto -lresolv
  and setting flag as following:
 HAS_OPENSSL =
 HAS_OPENLDAP =
 HAS_EXPAT =
 HAS_SDL =
 TRY_1394AVC =
 TRY_1394DC =
5) Alter ~/pwlib/src/ptlib/unix/Makefile this:
repalce:
VIDEO_CAPTURE_SOURCE = video4linux.cxx
with:
VIDEO_CAPTURE_SOURCE = dummyvideo.cxx
6) $ make optnoshared

I then compiled OpenH323 in the following way:
1) Edit file ~/pwlib/configure, commenting the sentences => "cannot check"
2) copy file for asnparser for x86 patform in PWLIB directory
3) add LDFLAGS  += -L/opt/eldk/ppc_8xx/usr/lib/gcc-lib/ppc-linux/2.95.4/
  to file ~/opnh323/openh323u.mak
3) make optnoshared

The problem is that when I lanch example application
~/opnh323/samples/simple/obj_linux_ppc_r/simph323
a segnemtation fault verified.
Do we have any suggestion?
Do we have cross compiled in correct way? (I'am using eldk from denx)
Could anyone explain me how I have to cross compile?

Thanks

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





Problem in Cross compiling Pwlib for LINUX

2004-01-30 Thread Ale ppc

Hi Arunkumar,


I have changed ptbuildopts.mak in this way :

ENDLDLIBS += -lpthread -lcrypto -lresolv

HAS_OPENSSL =
HAS_OPENLDAP =
HAS_EXPAT =
HAS_SDL =
TRY_1394AVC =
TRY_1394DC =

and in ptbuildopts.h undefine :

#define P_LDAP 1
#define P_EXPAT 1
#define P_SSL 1
#define P_USE_SYSTEM_SWAB 1

I have erased the default library lber, dap, dap_r, ssl, expat, dl because I
did not need of them.
In fact then I have well cross-compiled openH323 src file.
To test my board I have used the callgen323 (v 1.2.6) application program
that came from openh323 sourceforge site.
I don't test other application prg.

Because I work fine with Motorola MPC82xx and ARM7TDMI tecnology, and we are
interested to port H323 on uClinux for ARM7 too. But we have found several
problems using siap-uClinx-xx cross-compile tool. If you know about related
problem can give me a search path to solve the question?

Regards,
Alessandro


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





Problem in Cross compiling Pwlib for LINUX

2004-01-29 Thread Arun Kumar

Hi all,

I am cross compiling the pwlib of release 1.1pl19 in linux for the MPC8xx 
target using i386 as host.
I got a problem while cross compiling the pwlib and the problem is in ldap.h. 
No such file/directory is there. Even though it exists in /usr/include 
directory and I copied that file in /usr/local/include directory and also to 
/usr/local/lib directory. but the problem still exists. I had seen a mail in 
mailarchives for the month of Aug'2003 (with Subject LDAP.h memory leak) and 
the program code in file pldap.cxx has some code changes which are not there in 
new version and after equalto sign I had noticed 3D which is also not there in 
current version.

Are those really required for rosscompilation is that problem persists me.

Hope an early reply from u,
Thanks in advance,
Arunkumar.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/