OpenCV on Host install ERROR!

Install JetPack4.2 through SDKManager error when installing OpenCVonHost:

16:56:58 INFO : OpenCV on Host : exec_command: sudo dpkg -i /home/ai/Downloads/nvidia/sdkm_downloads/libopencv_3.3.1-2-gd6a8916_amd64.deb
16:57:00 INFO : OpenCV on Host : (Reading database … 584570 files and directories currently installed.)
16:57:00 INFO : OpenCV on Host : Preparing to unpack …/libopencv_3.3.1-2-gd6a8916_amd64.deb …
16:57:00 INFO : OpenCV on Host : Unpacking libopencv (3.3.1-2-gd6a8916) over (3.3.1-2-gd6a8916) …
16:57:01 INFO : OpenCV on Host : Setting up libopencv (3.3.1-2-gd6a8916) …
16:57:01 INFO : OpenCV on Host : Processing triggers for libc-bin (2.23-0ubuntu10) …
16:57:02 INFO : OpenCV on Host : exec_command: dpkg-query -W -f=’{db:Status-abbrev} {Version}’ libopencv
16:57:02 INFO : OpenCV on Host : NV_OPENCV_HOST_COMP libopencv_3.3.1-2-gd6a8916_amd64.deb installed successfully.
16:57:02 INFO : OpenCV on Host : [ Package Install Finished Successfully ]
16:57:02 INFO : OpenCV on Host : [ Package Install Started ]
16:57:02 INFO : OpenCV on Host : deb installer start to install
16:57:02 INFO : OpenCV on Host : exec_command: dpkg -f /home/ai/Downloads/nvidia/sdkm_downloads/libopencv-dev_3.3.1-2-gd6a8916_amd64.deb Package | tr -d ’
16:57:02 INFO : OpenCV on Host : ’
16:57:02 INFO : OpenCV on Host : exec_command: dpkg -f /home/ai/Downloads/nvidia/sdkm_downloads/libopencv-dev_3.3.1-2-gd6a8916_amd64.deb Version | tr -d ’
16:57:02 INFO : OpenCV on Host : ’
16:57:02 INFO : OpenCV on Host : deb file /home/ai/Downloads/nvidia/sdkm_downloads/libopencv-dev_3.3.1-2-gd6a8916_amd64.deb, package name [libopencv-dev], package version [3.3.1-2-gd6a8916]
16:57:02 INFO : OpenCV on Host : infer package info from file name libopencv-dev_3.3.1-2-gd6a8916_amd64.deb [ name: libopencv-dev, version: 3.3.1-2-gd6a8916 ]
16:57:02 INFO : OpenCV on Host : exec_command: sudo dpkg -i /home/ai/Downloads/nvidia/sdkm_downloads/libopencv-dev_3.3.1-2-gd6a8916_amd64.deb
16:57:02 ERROR : OpenCV on Host : dpkg: considering removing libopencv-calib3d-dev:amd64 in favour of libopencv-dev …
16:57:02 INFO : OpenCV on Host : dpkg: no, cannot proceed with removal of libopencv-calib3d-dev:amd64 (–auto-deconfigure will help):
16:57:02 INFO : OpenCV on Host : libopencv-contrib-dev:amd64 depends on libopencv-calib3d-dev (= 2.4.9.1+dfsg-1.5ubuntu1.1)
16:57:02 INFO : OpenCV on Host : libopencv-calib3d-dev:amd64 is to be removed.
16:57:02 INFO : OpenCV on Host :
16:57:02 INFO : OpenCV on Host : dpkg: regarding …/libopencv-dev_3.3.1-2-gd6a8916_amd64.deb containing libopencv-dev:
16:57:02 INFO : OpenCV on Host : libopencv-dev conflicts with libopencv-calib3d-dev
16:57:02 INFO : OpenCV on Host : libopencv-calib3d-dev:amd64 (version 2.4.9.1+dfsg-1.5ubuntu1.1) is present and installed.
16:57:02 INFO : OpenCV on Host :
16:57:02 INFO : OpenCV on Host : dpkg: error processing archive /home/ai/Downloads/nvidia/sdkm_downloads/libopencv-dev_3.3.1-2-gd6a8916_amd64.deb (–install):
16:57:02 INFO : OpenCV on Host : conflicting packages - not installing libopencv-dev
16:57:02 ERROR : OpenCV on Host : Errors were encountered while processing:
16:57:02 INFO : OpenCV on Host : /home/ai/Downloads/nvidia/sdkm_downloads/libopencv-dev_3.3.1-2-gd6a8916_amd64.deb
16:57:02 INFO : OpenCV on Host : exit status 1
16:57:02 INFO : OpenCV on Host : exec_command: sudo apt-get check
16:57:03 INFO : OpenCV on Host : Reading package lists…
16:57:03 INFO : OpenCV on Host : Building dependency tree…
16:57:03 INFO : OpenCV on Host : Reading state information…
16:57:04 INFO : OpenCV on Host : exec_command: dpkg-query -W -f=’{db:Status-abbrev} {Version}’ libopencv-dev
16:57:04 INFO : OpenCV on Host : [ Package Install Finished with Error ]
16:57:04 ERROR : OpenCV on Host : NV_OPENCV_HOST_COMP package [{libopencv-dev 3.3.1}] not installed
16:57:04 INFO : OpenCV on Host :
16:57:04 INFO : OpenCV on Host : [ 8.00 KB used. Disk Avail: 352.28 GB ]
16:57:04 INFO : OpenCV on Host : [ NV_OPENCV_HOST_COMP Install took 6s ]
16:57:04 INFO : OpenCV on Host : package [{libopencv-dev 3.3.1}] not installed
16:57:04 ERROR : OpenCV on Host : command terminated with error
16:57:04 ERROR : OpenCV on Host : install ‘OpenCV on Host’ failure, command…

I have installed OpenCV 3.4.3 on the Host-PC.

I got the same error. Just unchecked the installation on host machine on the first side of sdk manager.

Then I was able to flash our Xavier without any problems.

Hi jonny21, thanks for your answer. But what’s your mean of ‘unchecked the installation on host machine on the first side of sdk manager’? Can you tell the details please?

  1. login into SDK Manager
  2. Step 01: in the second row “HARDWARE CONFIGURATION” you can uncheck the hook for “Host Machine”.
  3. Continue to Step 02

This procedure worked for me.

I’ve previouly installed Intel’s OpenVino toolkit and it installs OpenCV 4.1. When I execute sdkmanager 0.9.14.4961 to install OpenCV on localhost (OpenCV 3.3) I get the same error.

Does sdkmanager require OpenCV 3.3 specific features not found in OpenCV 4.1?

@jonny21 I have the same problem. I think it was because I have opencv 3.2 already install. What does it mean to uncheck “Host Machine”?

@AutoCar see image below