[SIP Beyond VoIP] Compiling issues with sipsimple (Dan Pascu)

Gurjeet Clair gurjeet.clair at newpace.com
Fri Nov 17 18:02:36 CET 2017

Even though its not needed it's still in there and I'm thinking that maybe the --disable-yuv wasn't passed to autoconfig.

I'm reasonably sure I'm building against the source that’s included since I haven't altered the darcs directory at all. From the looks of config.log in the build area that’s setup, its looking at the right version as well.

So I altered "setup_pjsip.py" to explicitly exclude yuv, and made sure I had the video4linux devel environment installed and it at least compiles this time😊 


            cmd = ["./configure"]
        ffmpeg_path = env.get("SIPSIMPLE_FFMPEG_PATH", None)


..Here's the error I was getting..

$  python setup.py build_ext --pjsip-clean-compile                                                                             [15/1849]
running build_ext
Compiling Cython extension sipsimple.core._core
Cleaning PJSIP
Configuring PJSIP
Compiling PJSIP
Traceback (most recent call last):
  File "setup.py", line 53, in <module>
  File "/usr/lib64/python2.7/distutils/core.py", line 152, in setup
  File "/usr/lib64/python2.7/distutils/dist.py", line 953, in run_commands
  File "/usr/lib64/python2.7/distutils/dist.py", line 972, in run_command
  File "/usr/lib64/python2.7/site-packages/Cython/Distutils/old_build_ext.py", line 186, in run
  File "/usr/lib64/python2.7/distutils/command/build_ext.py", line 339, in run
  File "/usr/lib64/python2.7/site-packages/Cython/Distutils/old_build_ext.py", line 193, in build_extensions
    ext.sources = self.cython_sources(ext.sources, ext)
  File "/home/gclair/sip-simple/python-sipsimple/setup_pjsip.py", line 218, in cython_sources
  File "/home/gclair/sip-simple/python-sipsimple/setup_pjsip.py", line 175, in compile_pjsip
    self.distutils_exec_process([self.get_make_cmd()], silent=not self.pjsip_verbose_build, cwd=self.build_dir)
  File "/home/gclair/sip-simple/python-sipsimple/setup_pjsip.py", line 108, in distutils_exec_process
    raise RuntimeError('Got return value %d while executing "%s", stderr output was:\n%s' % (returncode, " ".join(cmdline), stderr.rstr$p("\n")))
RuntimeError: Got return value 2 while executing "make", stderr output was:
../src/pj/ssl_sock_ossl.c: In function ‘init_openssl’:
../src/pj/ssl_sock_ossl.c:308:17: warning: variable ‘status’ set but not used [-Wunused-but-set-variable]
     pj_status_t status;
ar: creating ../lib/libpj-x86_64-unknown-linux-gnu.a
../src/pjlib-util/errno.c: In function ‘pjlib_util_init’:
../src/pjlib-util/errno.c:180:17: warning: variable ‘status’ set but not used [-Wunused-but-set-variable]
     pj_status_t status;
ar: creating ../lib/libpjlib-util-x86_64-unknown-linux-gnu.a
../src/pjnath/errno.c: In function ‘pjnath_init’:
../src/pjnath/errno.c:176:17: warning: variable ‘status’ set but not used [-Wunused-but-set-variable]
     pj_status_t status;
ar: creating ../lib/libpjnath-x86_64-unknown-linux-gnu.a
ar: creating ../../lib/libresample-x86_64-unknown-linux-gnu.a
ar: creating ../../lib/libmilenage-x86_64-unknown-linux-gnu.a
ar: creating ../../lib/libsrtp-x86_64-unknown-linux-gnu.a
ar: creating ../../lib/libgsmcodec-x86_64-unknown-linux-gnu.a
../../ilbc/filter.c: In function ‘DownSample’:
../../ilbc/filter.c:159:15: warning: assuming signed overflow does not occur when assuming that (X + c) < X is always false [-Wstrict-o$erflow]
            if (i<lengthIn) {
ar: creating ../../lib/libilbccodec-x86_64-unknown-linux-gnu.a
ar: creating ../../lib/libspeex-x86_64-unknown-linux-gnu.a
../../webrtc/src/modules/audio_processing/agc/main/source/analog_agc.c: In function ‘WebRtcAgc_Init’:
../../webrtc/src/modules/audio_processing/agc/main/source/analog_agc.c:1651:24: warning: iteration 10u invokes undefined behavior [-Wagg
         stt->env[0][i] = 0;
../../webrtc/src/modules/audio_processing/agc/main/source/analog_agc.c:1649:5: note: containing loop
     for (i = 0; i < 20; i++)
ar: creating ../../lib/libwebrtcaec-x86_64-unknown-linux-gnu.a
ar: creating ../../lib/libopuscodec-x86_64-unknown-linux-gnu.a
ar: creating ../../lib/libzsrtp-x86_64-unknown-linux-gnu.a
../src/pjmedia/converter_libyuv.c:25:21: fatal error: libyuv.h: No such file or directory
 #include  <libyuv.h>
compilation terminated.
make[2]: *** [output/pjmedia-x86_64-unknown-linux-gnu/converter_libyuv.o] Error 1
make[1]: *** [pjmedia] Error 2
make: *** [all] Error 1


-----Original Message-----
From: sipbeyondvoip-bounces at lists.ag-projects.com [mailto:sipbeyondvoip-bounces at lists.ag-projects.com] On Behalf Of Dan Pascu
Sent: November 17, 2017 11:58 AM
To: SIP Beyond VoIP <sipbeyondvoip at lists.ag-projects.com>
Subject: Re: [SIP Beyond VoIP] Compiling issues with sipsimple (Dan Pascu)

On 16 Nov 2017, at 19:19, Gurjeet Clair wrote:

> Thanks for the reply Dan!
> So I grabbed the version from darcs and followed the install.linux as well as the dependencies, I’m getting a new compiling error for PJSIP, looks to be missing the YUV lib/directories out of the “third_party” directory of the included PJSIP. I checked out the latest PJSIP (2.7.1)  and was able to get that built and noticed it has yuv included.

sipsimple only works with the included pjsip, not with the latest version.

> Is a bug or is there a recommended way to getting libyuv installed? I didn’t see it mentioned in the install.linux or dependencies.txt files.

libyuv is not a dependency we need. there is no YUV lib/directory in third_party because it's not needed. the code uses ffmpeg and we use whatever ffmpeg uses.

Without seeing an error log and knowing what command you ran to build it, I can't say more, but I suspect your build environment is causing you troubles. It looks like it tries to build against a different pjsip than the included one.


SIPBeyondVoIP mailing list
SIPBeyondVoIP at lists.ag-projects.com

More information about the SIPBeyondVoIP mailing list