Comments (8)
I did a test. When I build libevent
by myself, /usr/local/lib/cmake/libevent/LibeventConfig.cmake
is generated, which results in line 41
being judged to be true. COMMON_LIBS
does not add libevent::pthreads
, which will cause compilation errors.
When I use apt-get install libevent-dev
to install libevent
, apt-get
does not install LibeventConfig.cmake
for me. It will use coturn/cmake/LibeventConfig.cmake
.
The key point is that lines 44-50
will be executed and used. This will add all components of libevent, core extra openssl pthreads
, so it can work normally.
# src/apps/common/CMakeLists.txt
find_package(Libevent CONFIG)
if(Libevent_FOUND)
list(APPEND COMMON_LIBS libevent::core libevent::extra libevent::openssl)
else()
find_package(Libevent MODULE)
if(Libevent_FOUND)
list(APPEND COMMON_LIBS ${Libevent_LIBRARIES})
list(APPEND COMMON_INCLUDE_DIR ${Libevent_INCLUDE_DIRS})
else()
message(FATAL_ERROR "Must set Libevent")
endif()
endif()
from coturn.
Related Issues (20)
- Access to field 'fd' results in a dereference of a null pointer (loaded from variable 'clnet_info_rtcp') [clang-analyzer-core.NullDereference]
- [Question] Deny TURN own peer IP HOT 1
- CI lacks tests for the database drivers
- sqlite dbdriver shouldn't require mutexes to coordinate DB access
- upgrade to 4.6.2 HOT 7
- Proposal: Switch to opening braces on next line
- Alias IP Setup and External Address
- Review turn_random_number and turn_random implementation and usage
- How to run coturn on private network on AWS HOT 1
- Setting up coturn for stun-only service behind AWS ELB HOT 1
- Ignore failure on binding to listener address HOT 1
- Nextcloud with Coturn and Nginx Reverse Proxy HOT 4
- Coturn relay not working on Firefox HOT 2
- Enabling UDP-CR Forwarding with Coturn STUN Server HOT 1
- Intermittent Connectivity Issues and Delayed Audio with COTURN Server in Android App HOT 1
- ERROR: Cannot open log file for writing: HOT 2
- How to reload coturn when ssl certificates are renewed? HOT 1
- Support UDP proxy protocol HOT 1
- Empty else branch in ns_turn_server.c HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from coturn.