Setting the file. One moment.
Subchapter 144.17
troubleshooting/build-errors.mdMarkdown2 KBView on GitHub
examples/10 filessudo apt install -y libglib2.0-dev# Install latest CMake
wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc | gpg --dearmor - | sudo tee /etc/apt/trusted.gpg.d/kitware.gpg
sudo apt-add-repository 'deb https://apt.kitware.com/ubuntu/ focal main'
sudo apt update
sudo apt install -y cmakeCause: Not linking libvideosdk.so
Solution:
link_directories(${CMAKE_SOURCE_DIR}/lib/zoom_video_sdk)
target_link_libraries(${PROJECT_NAME} videosdk)Solution: Link Qt5 libraries:
target_link_libraries(${PROJECT_NAME}
videosdk
Qt5Core Qt5Gui Qt5Network Qt5Qml Qt5Quick
)Solution:
include_directories(
${CMAKE_SOURCE_DIR}/include
${CMAKE_SOURCE_DIR}/include/zoom_video_sdk
)Solution: Include both paths:
include_directories(
${CMAKE_SOURCE_DIR}/include
${CMAKE_SOURCE_DIR}/include/zoom_video_sdk # For helpers/ relative includes
)Solution:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/lib/zoom_video_sdkOr set RPATH:
set_target_properties(${PROJECT_NAME} PROPERTIES
BUILD_RPATH "${CMAKE_SOURCE_DIR}/lib/zoom_video_sdk"
INSTALL_RPATH "${CMAKE_SOURCE_DIR}/lib/zoom_video_sdk"
)Solution: SDK requires C++17:
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)Cause: Missing IZoomVideoSDKDelegate method implementations.
Solution: Implement ALL delegate methods (even empty stubs).