linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* RE: Problem in Cross compiling Pwlib for LINUX
@ 2004-02-05 15:59 Antonello Lombardinilo
  0 siblings, 0 replies; 4+ messages in thread
From: Antonello Lombardinilo @ 2004-02-05 15:59 UTC (permalink / raw)
  To: linuxppc-embedded


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/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-02-05 15:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <200401300952.AA178585798@actinium.org>
2004-01-30  8:43 ` Problem in Cross compiling Pwlib for LINUX Ale ppc
2004-01-30 10:22   ` question on PPC performance John Zhou
2004-01-30 11:32     ` John Zhou
2004-02-05 15:59 Problem in Cross compiling Pwlib for LINUX Antonello Lombardinilo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).