pjsip cross compile

FS
Farzan Shojaee
Sat, May 7, 2016 4:24 AM

Hi

I want to cross compile PJSIP from my Ubuntu machine running on x86, for
raspberry pi, arm architecture.

But there's some problems.

I've installed "gcc-arm-linux-gnueabi", to cross compile the PJSIP using it
for 'arm'.

I ran "./configure -hostname=arm-linux-gnueabi" and it seems it's ok :

(part of the above command result)

checking build system type... x86_64-unknown-linux-gnu

checking host system type... arm-unknown-linux-gnueabi

checking target system type... arm-unknown-linux-gnueabi

checking for arm-linux-gnueabi-gcc... arm-linux-gnueabi-gcc

checking whether the C compiler works... yes

checking for C compiler default output file name... a.out

checking for suffix of executables...

checking whether we are cross compiling... yes

checking for suffix of object files... o

checking whether we are using the GNU C compiler... yes

checking whether arm-linux-gnueabi-gcc accepts -g... yes

the following is the result of "make dep" :

make[2]: Leaving directory /home/farzan/pjproject-2.4.5/pjsip-apps/build' make -f Samples.mak depend make[2]: Entering directory /home/farzan/pjproject-2.4.5/pjsip-apps/build'
make[2]: Nothing to be done for depend'. make[2]: Leaving directory /home/farzan/pjproject-2.4.5/pjsip-apps/build'
make[1]: Leaving directory `/home/farzan/pjproject-2.4.5/pjsip-apps/build'

when I run "make" I get the following error:

/usr/lib/gcc-cross/arm-linux-gnueabi/4.7/../../../../arm-linux-gnueabi/bin/l
d: cannot find -lasound
/usr/lib/gcc-cross/arm-linux-gnueabi/4.7/../../../../arm-linux-gnueabi/bin/l
d: cannot find -lasound
/usr/lib/gcc-cross/arm-linux-gnueabi/4.7/../../../../arm-linux-gnueabi/bin/l
d: cannot find -lasound
collect2: error: ld returned 1 exit status
make[2]: *** [../bin/pjlib-test-arm-unknown-linux-gnueabi] Error 1
make[2]: Leaving directory /home/farzan/pjproject-2.4.5/pjlib/build' make[1]: *** [pjlib-test-arm-unknown-linux-gnueabi] Error 2 make[1]: Leaving directory /home/farzan/pjproject-2.4.5/pjlib/build'
make: *** [all] Error 1

has anybody no idea??

How can I solve it?

Hi I want to cross compile PJSIP from my Ubuntu machine running on x86, for raspberry pi, arm architecture. But there's some problems. I've installed "gcc-arm-linux-gnueabi", to cross compile the PJSIP using it for 'arm'. I ran "./configure -hostname=arm-linux-gnueabi" and it seems it's ok : (part of the above command result) checking build system type... x86_64-unknown-linux-gnu checking host system type... arm-unknown-linux-gnueabi checking target system type... arm-unknown-linux-gnueabi checking for arm-linux-gnueabi-gcc... arm-linux-gnueabi-gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... yes checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether arm-linux-gnueabi-gcc accepts -g... yes the following is the result of "make dep" : make[2]: Leaving directory `/home/farzan/pjproject-2.4.5/pjsip-apps/build' make -f Samples.mak depend make[2]: Entering directory `/home/farzan/pjproject-2.4.5/pjsip-apps/build' make[2]: Nothing to be done for `depend'. make[2]: Leaving directory `/home/farzan/pjproject-2.4.5/pjsip-apps/build' make[1]: Leaving directory `/home/farzan/pjproject-2.4.5/pjsip-apps/build' when I run "make" I get the following error: /usr/lib/gcc-cross/arm-linux-gnueabi/4.7/../../../../arm-linux-gnueabi/bin/l d: cannot find -lasound /usr/lib/gcc-cross/arm-linux-gnueabi/4.7/../../../../arm-linux-gnueabi/bin/l d: cannot find -lasound /usr/lib/gcc-cross/arm-linux-gnueabi/4.7/../../../../arm-linux-gnueabi/bin/l d: cannot find -lasound collect2: error: ld returned 1 exit status make[2]: *** [../bin/pjlib-test-arm-unknown-linux-gnueabi] Error 1 make[2]: Leaving directory `/home/farzan/pjproject-2.4.5/pjlib/build' make[1]: *** [pjlib-test-arm-unknown-linux-gnueabi] Error 2 make[1]: Leaving directory `/home/farzan/pjproject-2.4.5/pjlib/build' make: *** [all] Error 1 has anybody no idea?? How can I solve it?