openframeworks / openframeworks/openFrameworks
gtk2 gtk3 incompatibilty crashes app that includes ofxOpenCV and ofSystemUtils on ubuntu, since include of libopencv-dev in install_dependencies.sh
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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