[CMake] Windows package config references missing bin/tensorrt_player.exe (tensorrt_capture_player)
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 13.4k
- Forks
- 2.4k
- Avg merge
- 5d 3h
- Merged PRs (30d)
- 2
Description
Description
The Windows package of TensorRT-Enterprise 11.3.0.99 ships a CMake package config that imports a file the package does
not contain. find_package fails on an unmodified package.
cmake/TensorRT-EnterpriseTargets-release.cmake (lines 131-138) imports TRT::tensorrt_capture_player from
${_IMPORT_PREFIX}/bin/tensorrt_player.exe and adds that file to _cmake_import_check_files_for_*. The package's
bin/ contains trtexec.exe and the nvinfer*/nvonnxparser DLLs, but no tensorrt_player.exe.
CMake Error at .../cmake/TensorRT-EnterpriseTargets.cmake:167 (message):
The imported target "TRT::tensorrt_capture_player" references the file
".../bin/tensorrt_player.exe"
but this file does not exist.
The issue was also present in 11.2.1.2. The same issue exists in TensorRT-RTX 1.6.1.120 for Windows:
TensorRT-RTXConfig-release.cmake imports TRTRTX::tensorrt_capture_player from the missing
bin/tensorrt_player.exe. The Linux TensorRT-RTX 1.6.1.120 package ships bin/tensorrt_player and is not affected.
Expected: ship bin/tensorrt_player.exe in the Windows packages, or leave tensorrt_capture_player out of their
exported targets.
Workaround: create an empty bin/tensorrt_player.exe.
Environment
TensorRT Version: TensorRT-Enterprise 11.3.0.99
(TensorRT-Enterprise-11.3.0.99-Windows-amd64-cuda-13.4-Release-external). Same issue in TensorRT-Enterprise 11.2.1.2
and TensorRT-RTX 1.6.1.120 (Windows).
NVIDIA GPU: NVIDIA RTX 3500 Ada Generation Laptop GPU
NVIDIA Driver Version: 596.86
CUDA Version: 13.3 toolkit (13.3.73)
CUDNN Version: N/A
Operating System: Windows 11 Pro 10.0.26200
Python Version (if applicable): N/A
Tensorflow Version (if applicable): N/A
PyTorch Version (if applicable): N/A
Baremetal or Container (if so, version): Baremetal. CMake 4.2.3 and 4.3.1, Ninja, MSVC 14.51.
Relevant Files
Model link: N/A. No model is involved; the problem is in the package's CMake config.
Steps To Reproduce
Commands or scripts:
CMakeLists.txt:
cmake_minimum_required(VERSION 3.27)
project(trt_probe LANGUAGES CXX)
find_package(CUDAToolkit REQUIRED)
find_package(TensorRT-Enterprise CONFIG REQUIRED)
Configure:
cmake -S . -B build -G Ninja "-DTensorRT-Enterprise_DIR=<package>/cmake"
The configure fails with the error above, on CMake 4.2.3 and 4.3.1. For TensorRT-RTX, use find_package(TensorRT-RTX CONFIG REQUIRED) and TensorRT-RTX_DIR.
Have you tried the latest release?: Yes, 11.3.0.99.
Can this model run on other frameworks?: N/A
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by inspecting cmake/TensorRT-EnterpriseTargets-release.cmake at lines 131-138 and the TensorRT-RTXConfig-release.cmake export referenced in the report. Reproduce the failure with the provided minimal CMakeLists.txt and find_package commands; done means the Windows package configuration no longer references a missing tensorrt_player.exe and configure succeeds.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake, cpp
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100