windows compile new version linphone

directory

environment

Get the source code (use 5.0.0 version 5.3.0-alpha to compile but there is a problem)

Compilation environment preparation

compile (using ninja)

compile (not applicable using ninja)

Error resolution


linphone-desktop is a SIP-based standard open source Internet phone system, which uses Qt and mediastreamer2 open source multimedia library, and supports most audio and video formats, including H263 and H264. linphone-desktop allows users to communicate with others via voice, video and instant text messages over the Internet. It can query your friend's IP address and dial. It has powerful functions and supports multiple platforms. It can be used on desktop systems or mobile devices, and even supports WEB browsers. linphone-desktop complies with the GPL open source code agreement, and can be downloaded and re-developed freely.
With the kamailio signaling server, point-to-point calls can be realized

environment

    1. Visual Studio 2019
    2. Qt 5.15.2版本
    3. msys2
    4. ninja (可选)
    5. python

Get the source code (use 5.0.0 version 5.3.0-alpha to compile but there is a problem)

    git clone --recursive https://gitlab.linphone.org/BC/public/linphone-desktop.git -b 5.0.0

Compilation environment preparation

  1. Install msys2 and start msys2_shell.cmd Install mingw64 tool chain with pacman tool
  2. Install Qt5
  3. install doxygen
  4. Install anaconda to configure environment variables and install the toolkit pip install pystache six graphviz

compile (using ninja)

REM 配置环境变量
set PATH=D:\QtNew\5.15.2\msvc2019_64\bin;D:\msys64;D:\msys64\usr\bin;C:\Program Files\doxygen\bin;%PATH%
set Qt5_DIR=D:\QtNew\5.15.2\msvc2019_64\lib\cmake\Qt5

REM 启动一个vs环境
%comspec% /k "D:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsx86_amd64.bat"

REM 生成解决方案
cmake -GNinja -Bbuild_ninja -DCMAKE_BUILD_PARALLEL_LEVEL=10 -DCMAKE_BUILD_TYPE=RelWithDebInfo
REM 编译
cmake --build build_ninja

compile (not applicable using ninja)

REM 配置环境变量
set PATH=D:\QtNew\5.15.2\msvc2019_64\bin;D:\msys64;D:\msys64\usr\bin;C:\Program Files\doxygen\bin;%PATH%
set Qt5_DIR=D:\QtNew\5.15.2\msvc2019_64\lib\cmake\Qt5

REM 生成解决方案
cmake -Bbuild_vs -DCMAKE_BUILD_PARALLEL_LEVEL=10 -DCMAKE_BUILD_TYPE=RelWithDebInfo
REM 编译
cmake --build build_vs

Error resolution

  1. linphone-sdk compiles an error, and prompts that warnings are regarded as errors
    # 打开文件linphone-desktop/linphone-sdk/liblinphone/CMakeLists.txt
    option(ENABLE_STRICT "Build with strict compile options." YES)
    option(ENABLE_STRICT "Build with strict compile options." NO)

Guess you like

Origin blog.csdn.net/CHNIM/article/details/132040092