diff --git a/technical/7.-Jami-plugins.md b/technical/7.-Jami-plugins.md index 73b46d22..ef64a163 100644 --- a/technical/7.-Jami-plugins.md +++ b/technical/7.-Jami-plugins.md @@ -214,18 +214,41 @@ make .onnx #### Windows +* Pre-build: ```bash mkdir pluginsEnv +export PLUGIN_ENV= cd pluginsEnv +mkdir onnxruntime +mkdir onnxruntime/cpu +mkdir onnxruntime/nvidia-gpu +mkdir onnxruntime/include git clone https://github.com/microsoft/onnxruntime.git onnx cd onnx +git checkout v1.6.0 && git checkout -b v1.6.0 ``` -* Without acceleration: `.\build.bat --config Release --build_shared_lib --parallel --cmake_generator "Visual Studio 16 2019"` -* With CUDA acceleration (CUDA 10.2): `.\build.bat --config Release --build_shared_lib --parallel --cmake_generator "Visual Studio 16 2019" --use_cuda --cudnn_home --cuda_home --cuda_version 10.2` +* Without acceleration: -For further build instructions, please refer to onnruntime official [GitHub](https://github.com/microsoft/onnxruntime/blob/master/BUILD.md). +``` +.\build.bat --config Release --build_shared_lib --parallel --cmake_generator "Visual Studio 16 2019" +cp ./build/Windows/Release/Release/onnxruntime.dll ../onnxruntime/cpu/onnxruntime.dll +``` +* With CUDA acceleration (CUDA 10.2): + +``` +.\build.bat --config Release --build_shared_lib --parallel --cmake_generator "Visual Studio 16 2019" +--use_cuda --cudnn_home --cuda_home --cuda_version 10.2 +cp ./build/Windows/Release/Release/onnxruntime.dll ../onnxruntime/nvidia-gpu/onnxruntime.dll +``` +* Post-build: + +```bash +cp -r ./include/onnxruntime/core/ ../onnxruntime/include/ +``` + +For further build instructions, please refer to onnxruntime official [GitHub](https://github.com/microsoft/onnxruntime/blob/master/BUILD.md). ### Plugin To exemplify a plugin build, we will use the GreenScreen plugin available [here](https://git.jami.net/savoirfairelinux/jami-plugins).