openframeworks / openframeworks/openFrameworks

Can't use OpenCV 2 on iOS

Open
#5,439 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

addon iOS
Dominant language
C++
Stars
10.4k
Forks
2.6k
Avg merge
1d 21h
Merged PRs (30d)
9

Description

When I try to use OpenCV 2 I get an error about these two lines:

#include "opencv2/videoio.hpp"
#include "opencv2/highgui.hpp"

Inside opencv.hpp. I'm guessing they don't exist on iOS because they can't be compiled or aren't useful on iOS. I can workaround it by commenting these lines out, but is that the recommended solution? Or is there something smarter I can do?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the iOS build error from opencv.hpp, focusing on the included opencv2/videoio.hpp and opencv2/highgui.hpp headers. Check how OpenCV 2 is integrated for iOS and whether these headers are expected to be available there. Done means identifying and documenting the supported fix or confirming the correct platform-specific handling.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, ios, opencv
Domain
computer-vision, mobile-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.