Skip to content

Updating installation instructions, adding package manager installation and macOS #13822

Open

Description

@janek

https://docs.opencv.org/3.4.5/df/d65/tutorial_table_of_content_introduction.html

This link contains links to installation instructions for Linux, Windows and iOS, but not macOS.

A lot of macOS users will know that they can probably use the instructions for Linux (they can right? I'm not 100% sure) - but it's not safe to assume that they all will. Also, the Linux instructions do not mention that they can work on macOS, too (they only sayThe following steps have been tested for Ubuntu 10.04 but should work with other distros as well.).

I don't have too much knowledge about OpenCV, but I feel like those instructions (for Linux, for example) should be updated. The fact that they mention testing on Ubuntu 10.04 is a hint towards that. They are also 100 lines long (if counting a few whitespace-only lines) and yet never mention installing via something like apt-get opencv. Is there a reason there isn't a package manager installation? I found instructions to install with brew on macOS, could that just be added there?

Activity

  1. alalek commented on Feb 13, 2019

    @alalek
    Member

    Is there a reason there isn't a package manager installation

    We don't build official packages for Linux distributions.
    Ubuntu 18.04 ships OpenCV 3.2 (released 2+ years ago, can't be updated due several reasons - compatibility at first). This may work for some part of users, but we recommend using fresh releases with latest bugfixes and optimizations.

    Installation from package managers (apt, homebrew, pip) are usually covered by package managers documentation.
    It would be useful to describe how to build OpenCV from the source code.


    I believe we can add separate instruction for MacOSX.
    Lets avoid mess with Linux guide. 50 duplicated lines usually look better than 200 lines of text "under" many conditions.

  2. janek commented on Feb 14, 2019

    @janek
    Author

    I understand. In that case, in my opinion it would be very helpful to mention that a package manager installation is possible (but not officially supported, if that's the case) - and perhaps link to the corresponding places in some popular package managers' documentation.

    I agree with the sentiment you expressed about nesting conditional instructions in a tutorial/documentation. Glad that my suggestion for macOS instuction found some ground, too.

  3. kmuchmore commented on Feb 28, 2019

    @kmuchmore

    The docs on https://docs.opencv.org/3.4/d2/de6/tutorial_py_setup_in_ubuntu.html contain package names like ffmpeg-devel, and libpng-devel. If I run through those instructions I get many unable to locate package <package-name>-devel errors. I think many of those package names are CentOS/Redhat yum package names and not Ubuntu/Debian apt package names.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    category: documentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions