在Linux中构建pjsip时出错 [英] error while building pjsip in linux

查看:228
本文介绍了在Linux中构建pjsip时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在构建pjsip时遇到以下错误,如所述此链接 .

I am getting following error while building pjsip as mentioned in this link.

当我运行make命令时:

In file included from /usr/lib/gcc/x86_64-linux-gnu/5/include/errno.h:28:0,      
                 from ../include/pj/compat/socket.h:131,  
                 from ../src/pj/ioqueue_select.c:38:    
../src/pj/ioqueue_common_abs.c: In function ‘pj_ioqueue_recv’:  
../include/pj/compat/os_auto.h:149:31: error: ‘EAGAIN’ undeclared (first use in this function)   
 #define PJ_BLOCKING_ERROR_VAL EAGAIN
                               ^  

    操作系统名称:Ubuntu 16.04 LTS&& 64位
  1. 构建命令:

  1. OS Name: Ubuntu 16.04 LTS && 64 bit
  2. Build Command:

cd pjproject-2.7.2/
chmod 777 configure
chmod 777 aconfigure
./configure  
make dep  
make  

并从此链接

推荐答案

Ubuntu 16.04-amd64

Ubuntu 16.04 - amd64

git clone https://github.com/svn2github/pjsip.git ...或pjproject-2.7.2.tar.bz2:两者都将在此处构建,版本为gcc 4.8→sudo apt install g++-4.8

git clone https://github.com/svn2github/pjsip.git ... or pjproject-2.7.2.tar.bz2 : Both will build OK here, with gcc version 4.8 → sudo apt install g++-4.8

构建示例,参考. https://trac.pjsip.org/repos/wiki/入门/自动配置

export CC=gcc-4.8 CXX=g++-4.8 && ./configure --enable-shared --disable-static --enable-memalign-hack
make dep && make

有趣的是,pjsip可以在基于rpm的OS上使用gcc,g ++ v.7.3构建.但是话又说回来,Ubuntu gcc的补丁程序非常不同.

Interesting is that pjsip can be built with gcc, g++ v. 7.3 on an rpm based OS. But then again, the Ubuntu gcc´s have a very different patching.

这篇关于在Linux中构建pjsip时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆