To go a bit further (or trying to), i made a new project using PG, with just the foolowing in main :
ofSetupOpenGL(&window, 1024, 768, OF_FULLSCREEN); ofRunApp(new ofApp());
and in testApp.cpp just the following in mousePressed :
ofFileDialogResult res = ofSystemLoadDialog();
it does work without GTK error. So if there is a gtk2 symbol used, it’s definitly not due to ofSystemLoadDialog.
i then copied the addons.make of my app to this test project
recompile, it crashes.
after a bit of struggling removing addons one by one and testing, it seems that the guilty addon is ofxOpenCv.
Simple opendialog test crashes when ofxOpenCV is in addons.make, but works fine when ofxOpenCV is removed from addons.make
i think i’m loosing my mind
edit : since OF dependencies include libopencv-dev which depends on libopencv-highgui-dev which depends on libgtk2.0-dev, it seems to make sense that if you link ofxOpenCV, you link gtk2 as well…
But in OF 0.8.3 install_dependencies.sh script, libopencv-dev is not installed, in the current github, install_dependencies.sh install libopencv-dev, that may explain why i didn’t run into this problem using OF 0.8.3.
i don’t see any way to work around this, maybe removing libopencv-dev and dependencies and rebuilding OF?
Can anyone try to reproduce this, as it seems annoying not to use opencv with openframeworks because of gtk incompatibilities?
Or maybe there is a way to force the use of GTK2 in openframeworks core without recompiling all OF?
i am opening an issue on github.