I am running a Ubuntu 12.04 installation with the latest Qt SDK. I've compiled OpenCV and imported the libraries into the QtSDK folders.
Qt recognizes the libraries and allows me to build the project if I include the following:
The project runs correctly with no errors from the OpenCV until I try to get it to save an image as QImage.
unix: LIBS += -lopencv_core \
If that wasn't enough, I've also got QML files serving as the user interface, and if I include any "Image" element in them, the program "unexpectedly exits". If I remove the OpenCV code, the program runs correctly with the Image element. If I remove the Image element and re-insert the OpenCV code, the program runs correctly (as long as I do not have QImage anywhere in my code).
I've tried to rebuild OpenCV, and try new Qt projects, but this "conflict" still remains between OpenCV and QImage (and QML Image element).
My colleagues are able to run the project without problems on their Windows 7 machines.