Skip to content

Precompiled libraries of NVidia's NvPipe

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
LICENSE.nvpipe
Notifications You must be signed in to change notification settings

iimachines/nvpipe-build

Repository files navigation

How to build

  • Install the NVidia CUDA SDK

  • Clone NVidia NvPipe

  • webrtc requires static linking, so we must patch NvPipe

    • Change the cloned CMakeLists.txt to include:

      foreach(flag_var
              CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_DEBUG CMAKE_CXX_FLAGS_RELEASE
              CMAKE_CXX_FLAGS_MINSIZEREL CMAKE_CXX_FLAGS_RELWITHDEBINFO)
         if(${flag_var} MATCHES "/MD")
            string(REGEX REPLACE "/MD" "/MT" ${flag_var} "${${flag_var}}")
         endif(${flag_var} MATCHES "/MD")
      
      endforeach(flag_var)
      
      add_compile_definitions(_HAS_ITERATOR_DEBUGGING=0)
      add_compile_definitions(_ITERATOR_DEBUG_LEVEL=0)
    • make the cuda_add_library static:

      cuda_add_library(${PROJECT_NAME} STATIC ${NVPIPE_SOURCES})
  • Also see the example CMakeLists.txt in this repo.

  • Then build and install the cmake project as usual, and copy the include and libs

  • You might want to update the static CUDA libraries too

About

Precompiled libraries of NVidia's NvPipe

Resources

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
LICENSE.nvpipe

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published