Troubleshooting installation on macOS

Users might experience problems installing the Cxx package and running the OpenCV package on macOS. Consider the following code:

julia> using OpenCVINFO: Precompiling module Cxx.ERROR: LoadError: Failed to precompile Cxx to /Users/<<username>>/.julia/lib/v0.6/Cxx.ji.

There is an issue in GitHub and a number of solutions provided. If you are experiencing a problem running using Cxx, complete the following set of steps:

  1. Run the following command in the Terminal on macOS brew install pkg-config and or use sudo apt-get install pkg-config on Linux.
  2. When the installation process is complete, start Julia and type Pkg.dir("Cxx").
  3. Navigate to the path displayed in the last step. Find the src folder and open the  ...

Get Hands-On Computer Vision with Julia now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.