Skip to content

Latest commit

 

History

History
29 lines (28 loc) · 795 Bytes

build_with_msvc.md

File metadata and controls

29 lines (28 loc) · 795 Bytes

Compilation environment:

  1. windows 11
  2. visual studio 2022

Compilation steps:

  1. Install miniconda
  2. Install cmake, delete the FindProtobuf.cmake file in the C:\Program Files\CMake\share\cmake-3.27\Modules folder, otherwise it will conflict with protobuf under conan
  3. Install conan in the conda environment
    pip install conan
    conan profile detect --force
    # set compiler.cppstd=17 in ~/.conan2/profiles/default
  4. Use conan to install dependencies
    mkdir build
    conan install . --build=missing 
  5. Compile
    cd build
    cmake ..
    cmake --build . --config Release 
    Or use visual studio to open the mediapipelite.sln in the build folder for compilation
  6. Run unit tests
    ctest -V