Javacpp-presets: Can't build tensorrt on Windows x86_64

Created on 30 Mar 2020  路  6Comments  路  Source: bytedeco/javacpp-presets

bash cppbuild.sh -platform windows-x86_64 -extension "-gpu" install tensorrt

Detected platform "windows-x86_64"
Building for platform "windows-x86_64" with extension "-gpu"
Installing "tensorrt"
/d/javacpp/javacpp-presets/tensorrt/cppbuild /d/javacpp/javacpp-presets
Error: Platform "windows-x86_64" is not supported
/d/javacpp/javacpp-presets

How to build tensorrt for windows x86_64? I think tensorrt's headfile and interface are same on Windows and Linux.

enhancement

All 6 comments

It's not currently supported, but it might just be a question of adding the right paths to these files for @Platform(value = "windows", ...):
https://github.com/bytedeco/javacpp-presets/blob/master/tensorrt/cppbuild.sh
https://github.com/bytedeco/javacpp-presets/blob/master/tensorrt/src/main/java/org/bytedeco/tensorrt/presets/nvinfer.java

thx for your reply.

i have one more question.

if i add win tensorrt header file path and win platform string to nvinfer.java and remove the condition statement in cppbuild.sh.
can i build on windows?

If the cppbuild.sh script fails, the build is going to fail. Please read the following page:
https://github.com/bytedeco/javacpp-presets/wiki/Create-New-Presets

thank you! i added new windows preset to tensorrt module.

now, i can use tensorrt on windows!

Please send a pull request with your modifications!

ok! i will send pr tomorrow(because, i want clean my code)

Was this page helpful?
0 / 5 - 0 ratings