webrtc compile problem

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

 



Hi Per,

On Mon, 8 Jan 2018, at 11:57 AM, Per Gunnarsson wrote:
> Hello!
> 
> I am trying to compile webrtc on FreeBSD 11.1-RELEASE-p4.
> 
> When I try to make, I get:
> 
> Making all in webrtc
> Making all in .
> Making all in base
>    CXX      libbase_la-criticalsection.lo
> criticalsection.cc: In constructor 
> 'rtc::CriticalSection::CriticalSection()':
> criticalsection.cc:24:23: error: 'mutex_' was not declared in this scope
>     pthread_mutex_init(&mutex_, &mutex_attribute);
>                         ^~~~~~
> criticalsection.cc: In destructor 
> 'rtc::CriticalSection::~CriticalSection()':
> criticalsection.cc:35:26: error: 'mutex_' was not declared in this scope
>     pthread_mutex_destroy(&mutex_);
>                            ^~~~~~
> criticalsection.cc: In member function 'void rtc::CriticalSection::Enter()':
> criticalsection.cc:43:23: error: 'mutex_' was not declared in this scope
>     pthread_mutex_lock(&mutex_);
>                         ^~~~~~
> criticalsection.cc: In member function 'bool 
> rtc::CriticalSection::TryEnter()':
> criticalsection.cc:60:30: error: 'mutex_' was not declared in this scope
>     if (pthread_mutex_trylock(&mutex_) != 0)
>                                ^~~~~~
> criticalsection.cc: In member function 'void rtc::CriticalSection::Leave()':
> criticalsection.cc:85:25: error: 'mutex_' was not declared in this scope
>     pthread_mutex_unlock(&mutex_);
>                           ^~~~~~
> *** Error code 1
> 
> Stop.
> make[2]: stopped in 
> /home/per/tmp/test/webrtc-audio-processing-0.3/webrtc/base
> *** Error code 1
> 
> Stop.
> make[1]: stopped in /home/per/tmp/test/webrtc-audio-processing-0.3/webrtc
> *** Error code 1
> 
> Stop.
> make: stopped in /home/per/tmp/test/webrtc-audio-processing-0.3

You might need to modify configure.ac to add support for FreeBSD (look at the sections that define HAVE_POSIX).

Cheers,
Arun


[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux