Link error with cross compile

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have been trying to cross compile PJSIP for QNX and have been using the
following script cobbled together from a blackberry playbook example shell
script.
My full shell scripts is:

RANLIB="${QNX_HOST}/usr/bin/ntoarmv7-ranlib " \

CPP="${QNX_HOST}/usr/bin/qcc -V4.4.2,gcc_ntoarmv7le_cpp -E "\
CC="${QNX_HOST}/usr/bin/qcc -V4.4.2,gcc_ntoarmv7le_cpp " \
LD="${QNX_HOST}/usr/bin/ntoarmv7-ld " \
LDFLAGS=" -L${QNX_TARGET}/armle-v7/lib -L{$QNX_TARGET}/armle-v7/usr/lib
-lc" \
CFLAGS=" -g " \
./configure --build=i686-pc-linux \
--host=arm-unknown-nto-qnx6.5.0eabi \
--disable-audio \
--disable-oss \
--disable-speex-aec \
--disable-g711-codec \
--disable-l16-codec \
--disable-gsm-codec \
--disable-g722-codec \
--disable-g7221-codec \
--disable-speex-codec \
--disable-sdl \
--disable-ffmpeg \
--disable-v4l2 \
--disable-ilbc-codec \
--disable-oss \
--disable-speex-aec \
--disable-g711-codec \
--disable-l16-codec \
--disable-gsm-codec \
--disable-g722-codec \
--disable-g7221-codec \
--disable-speex-codec \
--disable-sdl \
--disable-ffmpeg \
--disable-v4l2 \
--disable-ilbc-codec




I am now down to a link error when linking PJLIB.
I have seen a PJSIP post which suggests >export AR+= -rcs
This is reflected in the auto-generated mak files when I run my script but
I still get the link error below
The link to the QNX forum post is:
http://supportforums.blackberry.com/t5/Native-SDK-for-BlackBerry-Tablet/PJSIP-Build/m-p/1563459#M1465

All help greatly appreciated
Cheers
Bob


/opt/qnx650/host/linux/x86/usr/bin/ntoarmv7-ld: warning: cannot find entry
symbol _start; defaulting to 00102e50

../lib/libpj-arm-unknown-nto-qnx6.5.0eabi.a(os_timestamp_common.o): In
function `get_elapsed':
/home/bcripps/dev/qcc-pj/pjproject-2.0-beta/pjlib/build/../src/pj/os_timestamp_common.c:36:
undefined reference to `__aeabi_l2d'
../lib/libpj-arm-unknown-nto-qnx6.5.0eabi.a(os_timestamp_common.o): In
function `elapsed_msec':
/home/bcripps/dev/qcc-pj/pjproject-2.0-beta/pjlib/build/../src/pj/os_timestamp_common.c:61:
undefined reference to `__aeabi_l2d'
../lib/libpj-arm-unknown-nto-qnx6.5.0eabi.a(os_timestamp_common.o): In
function `elapsed_usec':
/home/bcripps/dev/qcc-pj/pjproject-2.0-beta/pjlib/build/../src/pj/os_timestamp_common.c:92:
undefined reference to `__aeabi_l2d'
../lib/libpj-arm-unknown-nto-qnx6.5.0eabi.a(os_timestamp_common.o): In
function `pj_elapsed_nanosec':
/home/bcripps/dev/qcc-pj/pjproject-2.0-beta/pjlib/build/../src/pj/os_timestamp_common.c:123:
undefined reference to `__aeabi_l2d'
make[2]: *** [../bin/pjlib-test-arm-unknown-nto-qnx6.5.0eabi] Error 1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20120214/216a746d/attachment.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux