openframeworks / openframeworks/openFrameworks

ofxOpenCv missing libpng, libjpeg, libtiff

Open
#3,678 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Attempting to call cvSaveImage/cvLoadImage from highgui.h results in linker errors on Windows (possibly other platforms) because the OpenCV libs are missing libpng, libjpeg and libtiff.

This issue was discovered while trying to compile ofxFerns on Windows, because the FERNS code uses these two functions.

The simplest fix would probably be to include precompiled versions of these libs with the OpenCV libs.

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 linker errors from cvSaveImage and cvLoadImage in highgui.h while compiling ofxFerns on Windows. Inspect how the OpenCV libraries are packaged and linked, including the missing libpng, libjpeg, and libtiff dependencies. Done means the affected functions link successfully for ofxFerns on Windows.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, opencv
Domain
build-system, computer-vision
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.