Skip to content

Commit 0fec611

Browse files
committed
fix: linux crashes caused by unlinked libraries
1 parent 1bcdf69 commit 0fec611

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webrtc-jni/src/main/cpp/dependencies/webrtc/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ elseif(LINUX)
159159

160160
target_include_directories(${PROJECT_NAME} PUBLIC ${DBUS_INCLUDE_DIRS})
161161
target_compile_definitions(${PROJECT_NAME} PUBLIC WEBRTC_LINUX WEBRTC_POSIX)
162-
target_link_libraries(${PROJECT_NAME} X11 dbus-1)
162+
target_link_libraries(${PROJECT_NAME} X11 Xfixes Xrandr Xcomposite dbus-1)
163163
elseif(WIN32)
164164
target_compile_definitions(${PROJECT_NAME} PUBLIC WEBRTC_WIN NOMINMAX WIN32_LEAN_AND_MEAN)
165165
target_link_libraries(${PROJECT_NAME} D3D11 DXGI user32 gdi32 iphlpapi dmoguids msdmo secur32 strmiids winmm wmcodecdspuuid ws2_32)

0 commit comments

Comments
 (0)