microsoft / onnxruntime

ONNX Runtime: cross-platform, high performance ML inferencing and training accelerator
https://onnxruntime.ai
MIT License
14.11k stars 2.84k forks source link

Cannot build with Snap installed cmake #6533

Closed hyt589 closed 3 years ago

hyt589 commented 3 years ago

Describe the bug The build script does not work correctly when using cmake installed from snap. os.path.realpath(shutil('cmake')) evaluates to /usr/bin/snap

Urgency I am trying to build onnxruntime with tensorrt provider for a company project. I can work around this issue but it involves changing the build script.

System information

Note: this is a virtual machine.

To Reproduce

Expected behavior The build script should be able to build the project with a snap installed cmake.

snnn commented 3 years ago

I think it is due to #205

@edgchen1 Could you please take a look?

edgchen1 commented 3 years ago

Should be fixed by #6540. @hyt589 please re-open if it's still not working.