openframeworks / openframeworks/openFrameworks

gtk2 gtk3 incompatibilty crashes app that includes ofxOpenCV and ofSystemUtils on ubuntu, since include of libopencv-dev in install_dependencies.sh

Open
#3,487 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

hi,

running through a problem that crashes app using ofxOpenCV when calling ofSystemLoadDialog.

as i try to explain in this forum thread http://forum.openframeworks.cc/t/gtk2-gtk3-error-when-calling-ofsystemloaddialog-seems-related-with-ofxopencv-and-opencv-dependencies-on-gtk2/17964/3

to make it short, by default OF core use GTK major version (3 on ubuntu).
In the github repo, install_dependencies.sh install libopencv-dev which depends indirectly on libgtk2-dev (it's not needed in OF0.8.3).

So when you try to run your app containing calls to ofxOpencv, and calls to ofSystemLoadDialog, you need to link gtk3 and gtk2 libs in the same app, which crashes it...

Don't really know how to get further

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 with install_dependencies.sh and trace how libopencv-dev brings in GTK dependencies on Ubuntu. Reproduce the crash in an app using ofxOpenCV together with ofSystemLoadDialog, then inspect the related forum thread for the reported GTK2/GTK3 interaction. Done means the dependency setup no longer causes the application to link conflicting GTK versions and the reproduction no longer crashes.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, opencv, ubuntu
Domain
build-system, computer-vision, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.