This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/TMDSLCDK138: Cross Compiling pjsip for OMAPL138

Part Number: TMDSLCDK138
Other Parts Discussed in Thread: OMAPL138

Tool/software: Linux

Hello,

I am trying to cross compile PJSIP for my OMAPL138.

I am on Ubuntu 16.04, I have downloaded the arago toolchain here.

I add it into the PATH like so :

~$ export PATH=/home/usr/arago-2011.09-armv5te-linux-gnueabi-sdk/arago-2011.09/armv5te/bin/:$PATH

I tested it by doing :

~$ arm-arago-linux-gnueabi-gcc --version
arm-arago-linux-gnueabi-gcc (GCC) 4.5.3 20110311 (prerelease)
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Now in the pjsip folder I did :

~$ ./configure --build=x86_64-linux-gnu --host=arm-elf-linux --without-gcc --with-cxx-main=arm-arago-linux-gnueabi-gcc --disable-libyuv
~$ make dep
~$ make
~$ make install DESTDIR=OMAP_pjsip

I did a tar.bz2 containing pjsip/bin,etc. and all the libs (pjsip-apps, etc.) and I sent it to my board with a scp.

Then I past the pjsip/lib and include/ in /usr/ and I tried to launch an app like so :

~pjsip-apps/bin/samples/arm-elf-linux-gnu$ ./stereotest
-sh: ./stereotest: cannot execute binary file

It seems that pjsip has not been compiled for the proper host... Because When I try to launch the same script on my Ubuntu it works.

What do I have to do ?


Thank you in advance for your help !

  • Hi,

    Try using the toolchain provided with the BIOSLINUX MCSDK: www.ti.com/.../BIOSLINUXMCSDK

    It is located in: ~/ti/mcsdk_1_01_00_02/linux-devkit/sysroots/i686-arago-linux/usr/bin

    You may also need to specify: ARCH=arm, CROSS_COMPILE=arm-arago-linux-gnueabi-

    Best Regards,
    Yordan
  • I have installed mcsdk_1_01_00_02_setuplinux.bin and in the folder ~/ti/mcsdk_1_01_00_02/ I dont have the /linux-devkit/ folder.

  • Hello,

    I am still trying to compile and use pjsip on my board... I tried almost everything...

    Any ideas?
  • Hi,

    Have you tested with host=arm-arago-linux?

    Also about your previous comment:
    I have installed mcsdk_1_01_00_02_setuplinux.bin and in the folder ~/ti/mcsdk_1_01_00_02/ I dont have the /linux-devkit/ folder.


    You're using the mcsdk_1_01_00_02_setuplinux.bin, right? It should have the linux-devkit folder in it.

    Best Regards,
    Yordan
  • Hi,

    Thank you for your response !

    Yes I am using the mcsdk_1_01_00_02_setuplinux.bin and when you launch it, it installs a folder in /opt/ti/mcsdk_1_01_00_02/ but there is no folder named /linux-devkit/ in it.
    I was only working in a shell with cd command and tab for auto-completion, but during my umpteenth chekout I figure-out that there is a script called linux-devkit.sh. Launching it ask you to install the arago toolchain (2013! Why the version on your website is outdated ? 2011...). After doing so, in the arago folder there is another script called environment-setup that you launch by doing . ./environment-setup and there you have a [linux-devkit] shell in which I could cross-compile pjsip (by disabling 2 packages because there where causing issues and I don't need them).

    Ok now with this version of the arago toolchain I am able to launch pjsip on my board.

    This is my ./configure :

    ./configure --host=arm-arago-linux --exec-prefix=/home/user/Downloads/OMAP_pjsip --prefix=/home/user/Downloads/OMAP_pjsip --disable-libyuv --disable-libwebrtc

    I think you should do an update of your wiki... Maybe ?

    Thank you