On 25.06.19 19:50, fernando gonzalez wrote:
I'm trying to compile pjsip version 2.1 using yocto (rocko branch). I created the recipe to run the commands "./configure && make dep && make", but I get the output shown below. I succesfully compiled using the same recipe (with necessary changes of course) pjsip version 2.8. What could have changed between those versions that is keeping from compiling correctly with version 2.1.0? What adjustments could I implement from Yocto to be able to generate the libraries with version 2.1.0? Thanks for any help you can provide
Not sure if it helps you, but here's my recipe for pjproject 2.8 (you need to add your own config_site.h of course).
Regards, Andreas
diff -uNr pjproject-2.7.2/pjlib/include/pj/config_site.h pjproject-2.7.2.modified/pjlib/include/pj/config_site.h --- pjproject-2.8/pjlib/include/pj/config_site.h 1970-01-01 01:00:00.000000000 +0100 +++ pjproject-2.8.modified/pjlib/include/pj/config_site.h 2018-08-27 10:31:48.820271445 +0200 @@ -0,0 +1,27 @@ + + +#define PJ_IOQUEUE_MAX_HANDLES 128 +#define PJSIP_MAX_URL_SIZE 4096 +#define PJSIP_MAX_PKT_LEN 65535 + +#define PJ_ENABLE_EXTRA_CHECK 1 + +#define PJMEDIA_ADD_BANDWIDTH_TIAS_IN_SDP 0 + +#define PJMEDIA_RTP_PT_TELEPHONE_EVENTS 101 +#define PJMEDIA_RTP_PT_TELEPHONE_EVENTS_STR "101" + +#define PJMEDIA_AUDIO_DEV_HAS_ALSA 1 +#define PJMEDIA_AUDIO_DEV_HAS_NULL_AUDIO 0 + +#define PJMEDIA_HAS_G711_CODEC 1 +#define PJMEDIA_HAS_L16_CODEC 1 +#define PJMEDIA_CODEC_L16_HAS_8KHZ_MONO 1 +#define PJMEDIA_CODEC_L16_HAS_16KHZ_MONO 1 +#define PJMEDIA_HAS_GSM_CODEC 0 +#define PJMEDIA_HAS_SPEEX_CODEC 0 +#define PJMEDIA_HAS_ILBC_CODEC 0 +#define PJMEDIA_HAS_G722_CODEC 1 +#define PJMEDIA_HAS_G7221_CODEC 1 +#define PJMEDIA_HAS_SILK_CODEC 0 +#define PJMEDIA_HAS_OPUS_CODEC 0 +#define PJMEDIA_HAS_BCG729 0
SUMMARY = "PJSIP is a free and open source multimedia communication library written in C language" DESCRIPTION = "PJSIP is a free and open source multimedia communication library written in C language \ implementing standard based protocols such as SIP, SDP, RTP, STUN, TURN, and ICE. \ It combines signaling protocol (SIP) with rich multimedia framework and NAT traversal \ functionality into high level API that is portable and suitable for almost any type \ of systems ranging from desktops, embedded systems, to mobile handsets." HOMEPAGE = "http://www.pjsip.org" BUGTRACKER = "https://trac.pjsip.org/repos/report" PRIORITY = "optional" LICENSE = "GPLv2" LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6" DEPENDS = "alsa-lib openssl util-linux" PARALLEL_MAKE = "" SRC_URI = "http://www.pjsip.org/release/${PV}/pjproject-${PV}.tar.bz2" SRC_URI[md5sum] = "6487d54213f270d307eaa60efc9f56f3" SRC_URI[sha256sum] = "503d0bd7f9f13dc1492ac9b71b761b1089851fbb608b9a13996edc3c42006f79" #add patches to original pjproject here SRC_URI += "file://0001_pjproject_add_config_site.patch" inherit autotools-brokensep pkgconfig EXTRA_OECONF += "--enable-epoll --disable-video --disable-libwebrtc" do_configure_prepend() { export LD="${CC}" export CFLAGS="-DNDEBUG" } do_install_prepend() { install -d ${D}/usr/bin install -m 755 ${S}/pjsip-apps/bin/pj* ${D}/usr/bin } do_install_append() { # remove the absolute path to the host's include dir sed -i 's:\-I/usr/include::' ${D}/usr/lib/pkgconfig/libpjproject.pc # remove the fdebug-prefix-map options sed -i 's:\-fdebug-prefix-map[a-zA-Z0-9\._\/=\-]*::g' ${D}/usr/lib/pkgconfig/libpjproject.pc #change user to root to stop QA from complaining about host contamination chown -R root:root ${D}${libdir} }
_______________________________________________ Visit our blog: http://blog.pjsip.org pjsip mailing list pjsip@xxxxxxxxxxxxxxx http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org